I'm in a very silly situation that can be summed up like this: I pushed everything across from staging to production and now I can't login to django admin - I'm using django 1.6.5
I read, searched and so on and no solution worked
fleetfox
webus: imho it's worth using django if you are keeping most of the default components. If you want to swap in templating engine/orm you are better of with something like flask
thevibe
any help would be much appreciated thinking that this is very close to the actual launch
any ideas welcome
thank you ever so much
phix
Any one use fcgi?
thevibe
The error message is "Please correct the errors below."
rizumu joined the channel
r00tless
thevibe, can you reset the password and/or create a new superuser with the manage command on production?
thevibe
and there's no session created in the django_session table
I did that and I can't login with the new one either
phix
:/
the_rat has quit
thevibe
that's what I can't really understand
r00tless
is there a user record in the database?
thevibe
yes
all of them including the new one
phix has left the channel
apart from my app I use grappelli, tinymce, south and filebrowser
vgarg joined the channel
as I said is not creating any sessions in the django_sessions table
r00tless
sounds a bit creepy
thevibe
:) unfortunately it does
I don't know where to look anymore
shredding joined the channel
I have the allowed hosts, I changed the domain in the shell and the app actually works
is just that I can't login
r00tless
anything in the logs?
syncdb and igrate done?
*migrate
ramsub07 has quit
Debug enabled?
thevibe
sorry to paste it here
[Wed Oct 01 08:26:03.489308 2014] [authz_core:error] [pid 25929] [client 5.148.143.101:8760] AH01630: client denied by server configuration: /srv/apps/shorecap/media, referer: http://sc.bpwdev.net/
this was this morning
since then I tried all kind of things and nothing
that was when I first pushed everything across
r00tless
what DB are you using?
Alenah joined the channel
linovia joined the channel
ramsub07 joined the channel
thevibe
with debug true or false is the same thing - silence
:)
I am using the "good old" MySQL
evildmp joined the channel
shredding has quit
r00tless
no connection error to the database?
aribao has quit
mmcardle has left the channel
thevibe
no
I can login from the command line
with this u = authenticate(username="user", password="pass")
from this - from django.contrib.auth import authenticate
r00tless
are you sure the prod-url IS the prod system?
fero has quit
thevibe
yes, very
is not the first time I do this :)
the thing is this I did a mysqldump and then pulled the data in
if I start from scratch with syncdb adn then migrate --all I can login
but then if I export my data is not happy at all
nimomo has quit
I can't do it
areski has quit
I tried this and no luck: python manage.py dumpdata --exclude=contenttypes --exclude=auth.Permission > initial_data.json
r00tless
i’m not very informed about the security stuff in the database.. but maybe it has some footprint of the installation
mmcardle joined the channel
timini
I have pages for viewing specific orders, and I only want users to be able to see ordes that they own, is there a way of doing this with a decorator?
siqi_ joined the channel
thevibe
the interesting thing is that this happened before and everything was fine
this is the first time when I see this behaviour
and is quite an unfortunate moment
r00tless has quit
as I said this is prepared for launch
r00tless joined the channel
r00tless
in that case, i might not help you
Laybunz has quit
i would try to dump all tables used for data and setup a new database, import the data that i have in my own models
mekhami joined the channel
omarek joined the channel
omarek
Hello
gerardodiego has quit
Gaah, I wish this company had HelpDesk or similar. I'm drowning in a sea of minor tasks instead of programming.
aidan: tbh, this is a thing django-hstore needs to fix
aidan
I'm wondering if I can get in there before from django.db.backends.signals import connection_created
Azelphur
schinckel: hmm, wat does self.get_form do in your example? it seems to be undefined in my code
I also notice you've imported FormMixIn but never use it
Megalepozy has quit
ramsub07 has quit
MarkusH
aidan: for now I'd override the app config for django-hstore, catch the exception and rely on a migration being run before
aidan
MarkusH: yeah, lots of issues on the tracker about similar issues, but not quite "how to create the extension beforehand"
alrighty easy let me give that a shot.
dang`r`us joined the channel
dang`r`us
hi
MarkusH
aidan: I'd probably raise a warning (django.core.checks)
dray3 has quit
dang`r`us
from the docs: All messages reaching the django catch-all logger when DEBUG is True are sent to the console. -- but when I try to use e.g. logger.debug('test') in a view, I simply get: No handlers could be found for logger "myapp.views"
Azelphur
schinckel: think it's a problem in your example, should it nod be class FilteredListView(FormMixin, ListView): ?