mattmcc: hmmm... as of now i'm not using the same view for more than one page.
bennylope has quit
issackelly: it's not for debugging. i want a link to a particular page disabled when i'm on that page.
nxvl joined the channel
issackelly
request.path
Terminus
yeah, been looking at that.
bennylope joined the channel
i just need to rearrange how i get my RequestContexts.
stack
I have an url like /path/something/?next=/somethingelse, self.request.GET.get('next') is "empty", what I'm doing wrong?
bennylope has quit
neataroni joined the channel
spirals joined the channel
ArcTanSusan has quit
jasondot_ joined the channel
val_erie has quit
Terminus
and of course i couldn't get to request.path because i don't have TEMPLATE_CONTEXT_PROCESSORS in settings.py. >_<
issackelly
Terminus it should be there by default
maybe not
maybe just in the default settings.py
chrismed joined the channel
FunkyBob
issackelly: it's not there by default, but it is set
zeograd has quit
polishnorbi joined the channel
apollo13
not the request processor though
FunkyBob
nope
and it always irks me that we have the request processor in there
but, iirc, grappelli requires it
ArcTanSusan joined the channel
nxvl has quit
mikeliss joined the channel
mikeliss
Using celery, after upgrading to 1.5, it's finding my tasks as appname.tasks.add() rather than projectname.appname.tasks.task. Is there any way to change that? it's making my tasks not work.
mihasya joined the channel
(and it's driving me crazy for the 100th time)
stack
so , I learned to put try: catch OUTSIDE of `with transaction.commit_on_success() ` ...
Terminus
issackelly: yeah, just fixed it.
issackelly
Cool
minim has quit
m0rpho has quit
DeeEff_ joined the channel
dirn joined the channel
polishnorbi has quit
patrick91 has quit
DeeEff_
hey #django, quick question: I'm trying to host my site via gunicorn and nginx, but for some reason the only thing that won't load is the admin templates (default ones still). Is there something sepcific I have to add to my nginx configuration to make those templates load?
nxvl joined the channel
mattmcc
Do you mean static files?
kl4us has quit
DeeEff_
no, the admin interface comes with some basic templates for the admin control panel.
static files are working fine :)
DeeEff_ is now known as DeeEff
mattmcc
In order for the templates to not work, you'd have to not have the admin in your INSTALLED_APPS.
Unless you're doing something particularly weird.
djm- has quit
DeeEff
mattmcc: not entirely sure. Admin is in INSTALLED_APPS, that's for sure, and it was loading the templates on my test system, but now I've got it on production (DEBUG = False) and they don't load anymore.
mattmcc
So what error do you get?
DeeEff
I can log into the control panel, but the layout (CSS, Images) for the admin control panel don't show up
mattmcc
Okay, so you did mean static files.
Have you run collectstatic?
DeeEff
are these different from files you host in /static/?
dirn has quit
Raydiation joined the channel
and no, haven't run collectstatic. How would I go about running that?
Raydiation
does django use a global db connection object for making db queries?
djm- joined the channel
i mean i dont have to pass in the db connection if i instantiate a model
mikeliss has quit
mattmcc
Raydiation: That's handled for you, yes.
bennylope joined the channel
Raydiation
so why is it global?
shillos has quit
mattmcc
Well, it's a singleton, it's global to the lifetime of a request, not global to the process.