to get my project to recognize my admin.py file. What am I missing?
rogi joined the channel
marsam joined the channel
I'm thinking maybe my urls.py? I'm comparing it to a working app and everything looks the same, though...
(To be clear: Going to my admin site works, but it's the default without any of my models)
Tjati
Hi there. it's about imagefiles and thumbnails. You can see my code at http://dpaste.org/SOXKM/ - i need to copy file to file_small and file_medium - but how? or any other way how to create thumbnails on save? user should only upload file
xorola has quit
nkryptic
thumbtackthief: you're doing admin.autodiscover() in your root urlconf? And your admin.py is in one of your installed apps?
scruz has quit
ccverg joined the channel
amarsahinovic
ffreire0403: did you check with grep is there a 'mysettings' reference in some of your files?
ffreire0403
it worked =)
nkryptic
ffreire0403: your project structure is not what it should look like if generated with Django 1.4. Generally, the manage.py would be in the same directory which contains your project folder (with urls and settings inside of it)
ccverg has left the channel
ffreire0403
hey guys thank you. found out something was really wrong with the path.
bigkevmcd joined the channel
mnx joined the channel
noisewaterphd has quit
thumbtackthief
nkryptic: Oop, that must be it. admin.py is stored in the project directory, which is not included in the installed apps. Should I move admin into the app, or do I somehow include it from the project. (I'm asking both what works best, as well as what is best practice)
wgITos has left the channel
nkryptic
thumbtackthief: in the app
noisewaterphd joined the channel
thumbtackthief
Thank you!
mlimb has quit
vtone joined the channel
seagreen has quit
dirn has quit
ramkrsna has quit
jdo_dk
Hello, can someone guide me: http://dpaste.org/efCvZ/ i have tried with a formset, but i'm doing something wrong
dirn joined the channel
jSanp has quit
epiloque has quit
optixx has quit
rlrosa has quit
seagreen joined the channel
Tjati
Hi there. it's about imagefiles and thumbnails. You can see my code at http://dpaste.org/SOXKM/ - i need to copy file to file_small and file_medium - but how? or any other way how to create thumbnails on save? user should only upload file
guys, what exactly does the django_site table/how should I fill it? I've got an error message about a missing pk=1 entry and apprently filling with random solves it.
someone know a possible bug where if u have a field status in models with (0, 'inactive'), (1, 'active') and define in modelform a field status with ('enabled', 'Enabled'), ('deactivated', 'Deactivated'), validation does not honor choices defined in modelform and instead use choices defined in model?
mihasya joined the channel
benregn has quit
drterminal has quit
ojh joined the channel
freakboy3742 joined the channel
Derailed
is anyone here intimately familiar with Django South? I want to find out if it has some kind of locking mechanism to prevent two "migrate" commands from happening simultaneously
genedolgin joined the channel
johnpaulett joined the channel
chronossc
Derailed: afaik south dont have it, will need implement something of lock, maybe with tmpfile.
how that issue happened?
atula has quit
noisewaterphd has quit
Derailed
chronossc, I'm imagining a deployment (as a debian package) to multiple front-end servers with a migration in it. Imagine the post-install script calls 'migrate'. If there is a lock then there's no problem, but if there isn't you'll have two front-ends trying to migrate the same database at the same time, leading to unhappiness
craigkerstiens has quit
atula joined the channel
dansmith_btc has quit
craigkerstiens joined the channel
xeorex has quit
craigkerstiens has quit
mnx has quit
chronossc
hm I tested here Derailed. A empty migration with time.sleep(10). On first try to run a second migration in this 10sec interval I got django.db.utils.DatabaseError: (1050, "Table 'ROLLBACK_TEST' already exists")
on second try it works normal
Derailed
the second try was while the first one was still sleeping?
chronossc
ya
Derailed
hmm
chronossc
weird hehe
Derailed
so the answer appears to be: I'd better do a lock myself?