virtualenv venv
source venv/bin/activate
pip install django
pip freeze > requirements.txt
django-admin startproject tutorial
cd tutorial && python manage.py runserver
Assuming you have python and virtualenv installed on your machine. At
this point, you have:
* a virtualenv inside the folder venv
* a text file, requirements.txt, with all your dependencies
* a django project in the folder tutorial, running the latest stable version
If you use version control, requirement.txt should be tracked but not
venv. You can recreate the virtualenv with the first two commands
followed by `pip install -r requirements.txt`
2016-06-25 21:35 GMT+02:00 emetib <chadbrabec@gmail.com>:
> i'm looking at trying out django, yet i've seen that you can install it with
> either the package manager or pip.
>
> i'm running debian testing to play around with this. small install ssh
> server only. using a clone of this base install.
>
> haven't played with/used pip hardly at all.
>
> questions-
> does the package manager have the same versions as pip?
> what is a better way to keep track of the installed packages?
> what is a better way to upgrade the installed packages?
> do the docs apply to both versions or only one? which one? why?
>
> any additional thoughts?
>
> --
> 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/7c15265e-1797-4762-a3d0-e8efe86ad794%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%2BTb8erFwfiZRG0HM4COrz%3DCzfsCY-7%3DTuccAsF43-xfhHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment