install of django 1.9

20 views
Skip to first unread message

Nicolas Favede

unread,
Jul 12, 2016, 7:28:30 AM7/12/16
to Django users
hi everybody
i install with difficulties but....django 1.9 on my imac
i am used to python 
   run on 2.7.6 coming with terminal but i also installed 3,4 version that i call and use when i want
django came there   library/frameworks/python frameworks/version3.4/lib/python3.4/django
don't ask me why
now i cannot import django  or if i can cannot use admincmd
i create a myvenv where i try to start project but very difficult
PLEASE SOME HELP
THANKS

ludovic coues

unread,
Jul 13, 2016, 5:48:03 AM7/13/16
to django...@googlegroups.com
Assuming you have created a virtual env with `virtualenv myvenv`
* activate the virtualenv: `source myvenv/bin/activate`
* install django: `pip install django`
* create a django project: `djang-admin startproject myproject`
* move into that project: `cd myproject`
* create an app for your project: `python manage.py myapp`
* start the django dev server: `python manage.py runserver`

Activating the virtualenv is important.
When myvenv is activated, you use pip and python from myvenv, not from
your system. Everything should be a lot easier if you do that.
Also, you only need to activate the virtualenv for using pip, python
and command installed with pip in the virtualenv. You don't need to
worry about that when editing file.
You need to activate the virtualenv for running pip, django-admin and manage.py.
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/99957129-04ad-4d5a-9bba-6819fd93e5af%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42
Reply all
Reply to author
Forward
0 new messages