How to have a sane python setup: 1. use pip and virtualenv[1] 2. ??? 3. PROFIT!
Cheers, AT [1] http://www.saltycrane.com/blog/2009/05/notes-using-pip-and-virtualenv-django/ On Tue, Mar 20, 2012 at 8:30 PM, jdw <[email protected]> wrote: > got it! This one worked. Thanks. > > On Tuesday, March 20, 2012 3:52:05 PM UTC-7, Furbee wrote: >> >> From an answer on stackoverflow.com (http://stackoverflow.com/** >> questions/122327/how-do-i-**find-the-location-of-my-** >> python-site-packages-directory<http://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory> >> **): >> >> Enter python shell by executing python binary: >> >> from distutils.sysconfig import get_python_lib >> >> >> print(get_python_lib()) >> >> >> It usually resides in a folder named site-packages or dist-packages >> somewhere in the Python directory. In Windows it is different than in Unix. >> >> When all else fails, you can run a find command on Unix, or a do an >> advanced search in Windows. >> >> On Tue, Mar 20, 2012 at 3:30 PM, jdw >> <poisonoakproductions@gmail.**com<[email protected]> >> > wrote: >> >>> Newbie alert... >>> >>> I installed Django and finished the first tutorial. On the second one, >>> I could not log in to the website because I didn't set a superuser. >>> Ultimately, I figured out my problem, but I realized I have no idea where I >>> installed Django. Is there an easy way to find out where the code lives? >>> >>> I realized I had no idea when the tutorial suggested running this: >>> >>> python /path/to/django/contrib/auth/c**reate_superuser.py >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To view this discussion on the web visit https://groups.google.com/d/** >>> msg/django-users/-/**9FZCBitFicMJ<https://groups.google.com/d/msg/django-users/-/9FZCBitFicMJ> >>> . >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to django-users+unsubscribe@* >>> *googlegroups.com <django-users%[email protected]>. >>> For more options, visit this group at http://groups.google.com/** >>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en> >>> . >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/bHhVJmu5AJEJ. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

