I have an uwsgi instance that doesn't spawns after restart but waits the first request, what should I look at to resolve this issue?
srd1g10 joined the channel
dAnjou
stack: #uwsgi
Kronuz joined the channel
dmclain has quit
srd1g10
Is there any way to use Django's cache system without going through runserver? It doesn't seem to activate with my custom management command
NomadJim has quit
NomadJim joined the channel
elyezer joined the channel
ehmatthes joined the channel
Rynomster joined the channel
srd1g10 has quit
zacharytamas joined the channel
Niharika
Hello. I was trying to work with Django and Postgresql on an Ubuntu VM. 12.04. I´m getting the error: ImportError: No module named psycopg2.extensions.
I installed psycopg2 using pip.
When I do a sudo pip install psycopg2, it tells me requirement already satisfied. What am I doing wrong?
linovia
Niharika: do you use virtualenvs ?
Niharika
linovia: Yes.
mgrouchy joined the channel
linovia
so you might have installed psycopg2 outside the virtualenv
Niharika
Psycopg2 doesn´t work with virtualenv?
linovia
it does
Niharika
Yes.
I have to reinstall it within the venv?
linovia
just make sure you installed it inside you virtual env or that your virtual env takes the system site packages
ADzebic has left the channel
MrS1lentcz has quit
Niharika
Okay.
b3free has quit
thepeculiarform joined the channel
_taxvi_zauri joined the channel
I´m new to Django. Any help on how I can check that?
linovia
activate your virtualenv and try pip freeze -l
Niharika
Okay.
linovia
if there's psycopg2 your issue is something else
if there isn't, pip install psycopg2
Niharika
Okay!
linovia: I see psycopg2==2.5.3 listed there. What else could my issue possibly be?
melhiors has quit
Another thing, this might seem silly, but the exact same code was working a few hours ago. And now it isn´t. I am puzzled.
linovia
Niharika: make sure you ran the python code with the virtualenv activated then
Niharika
I did.
linovia
then it should be working
sentinal8473 joined the channel
you probably missed one of the step above
windyhouser joined the channel
Niharika
linovia: Thanks. I´ll recheck.
linovia
can you run it again and provide the stack trace ?
Niharika
linovia: Okay. Gimme a minute.
Manca has quit
patrick91 has quit
linovia: Okay. Sorry. I figured out the problem, the psycopg2 appears when virtualenv is not activated. It doesnt appear when I activate the venv. My bad.
Should I activate venv and then do a pip install?
_taxvi_zauri
guys im new to Django please somebody explain me how do you make models which does not maps to database? do i need to create regula python class or django have something like this? I want viewModels like in asp.net mvc
zalun joined the channel
zalun
is there a standard procedure for per app setting?
I'm thinking of django_pipeline settings which really are collecting assets created per app