I have inside a file called .bashrc, source /home/userName/.env/env/bin/active, which makes me be in in a virtual environment already, no? It has a (env) to the left all the time. I presume that that is "activating virtualenv to run the server", right? (:
On Sun, Mar 2, 2014 at 7:19 PM, Camilo Torres <camilotorr...@gmail.com>wrote: > You also should be activating your virtualenv to run the server. > > > On Saturday, March 1, 2014 8:46:10 PM UTC-4:30, jondbaker wrote: > >> Instead of hard-coding paths, check out os.path, os.abspath and os.sep >> (and the rest of the os module) for such needs. I usually declare a >> PROJECT_ROOT var at the top of my settings.py using the aforementioned os >> module, and then hang paths (like your db path) off of that instead of >> building each path individually. >> >> Glad you figured it out. >> >> Sent from my iPhone >> >> On Mar 1, 2014, at 5:41 PM, Omar Acevedo <oma...@gmail.com> wrote: >> >> To see if it worked, and yes it did! >> So, I'm just having trouble with the paths. >> I'm using a virtual environment. >> So I guess I'll have to deal with the paths. >> Thank you a lot anyways!!! :) >> >> >> On Sat, Mar 1, 2014 at 8:39 PM, Omar Acevedo <oma...@gmail.com> wrote: >> >>> I explicitly wrote '/home/catacafe/.env/env/lib/python2.7/db.sqlite3' >>> in the NAME option of the DATABASES dictionary. >>> >> >> -- >> 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 http://groups.google.com/group/django-users. >> To view this discussion on the web visit https://groups.google.com/d/ >> msgid/django-users/CAH_X0gMnjh%2BOy5AQC2rw_LtKEjnWU- >> YVY_yBH3AzTMoSP%2BCiXw%40mail.gmail.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Django users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/django-users/VXpy867egD8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/649003b5-d9c0-40db-ab4d-eefff7df579c%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAH_X0gM1QOcRb7qaUdNAMutvzTL473xq_GmAj4G3H4RmFw__Pw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.