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.
2016-07-12 11:23 GMT+02:00 Nicolas Favede <niko.icecreams@gmail.com>:
> 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
>
> --
> 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+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@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
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAEuG%2BTYwVEBJCWxQQFYwVE0hK4%3DN7P57AymRsSGEsN8ijdX0eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment