CommandError: App 'polls' has migrations. Only the sqlmigrate and sqlflush commands can be used when an app has migrations.
arrggg
FunkyBob: the tutorial tells to put mysite.polls
not polls directly
FunkyBob
show me
Blackhold
:/
the url of the tutorial is in the top of the paste
is the official doc in spanish
FunkyBob
well, looking at the official doc in english, it does nothing of the sort
and no language should have done so since at least django 1.4
Blackhold
ok
FunkyBob
Django version 1.0, using settings 'mysite.settings'
that's is a VERY out of date doc
moldy
Blackhold: start over, and use the official tutorial
vranac joined the channel
necrite
indeed, Blackhold usa la doc oficial mejor :)
FunkyBob
moldy: it is ... it's just a very old one
Blackhold
django.es should be some official
first I want to try some apps and do something... explanations in spanish help me
FunkyBob
I understand that...
and honestly, am surprised the es/ translation isn't there on the official docs
Blackhold
FunkyBob: I want to kill php of my life
FunkyBob
Blackhold: and I'll be glad to help you do that :)
Blackhold
:)
FunkyBob
but right now... it's half-past midnight for me
I need to sleep
Blackhold
one year ago I tried to start with django, but time was not my friend... so I have to create a new program and try again django
I'm not developer, I'm sysadmin and sysnetwork
FunkyBob
spanish speakers are not uncommon around her
here
so... go with the english docs... and ask for help in here when something's unclear
Blackhold
I hate development! I spect when could understand a little bit that I could change my view on development
psykrsna has quit
FunkyBob
Django's what made me stop hating web development
doismellburning
this
FunkyBob
anyway... g'night
Blackhold
FunkyBob: :)
well... I continue with the next error
brrrr
natea joined the channel
ohrstrom has quit
acangiani joined the channel
necrite
is there any way to exclude the debug strings from django.db.backends? :) I need the debug but db.backend is too noisy
aboudreault
is there a django_app.post_init signal or something similar?
I need to execute some tasks when the app is fully initialized and running
necrite
aboudreault: well.. I guess that you will not restart your app everytime..
aboudreault
there was AppConfig.ready, but I am not using AppConf
pytony
Is there any documention on subclassing a Form Field? I try to put debug messages but can't figure out where it fails with ValidationError(code='invalid_choice') https://gist.github.com/apinsard/1adf5bf6193b08...
vanflymen joined the channel
vanflymen
Hey. Is it possible to use initial values on a Formset Factory? I have a list of products and quantities so I want each product field to be pre-populated with a foreign key. Any ideas?
pytony
I rewrote methods that may raise this exception to place debug messages, but it doesn't help
geetar joined the channel
garrypolley joined the channel
delgiudices has quit
lukequaint joined the channel
acangiani has quit
garrypolley has quit
keifer joined the channel
craigbennett has quit
vanflymen
Willing to compensate someone for support if possible, please?
keifer has left the channel
craigbennett joined the channel
graingert joined the channel
maryokhin has quit
buzzzz has quit
Earlo joined the channel
heatmeiser joined the channel
graingert has quit
spectras has quit
craigbennett has quit
Superflat joined the channel
hyperair joined the channel
issackelly joined the channel
vanflymen has quit
Andy80
a real newbie question: the static/ folder should stay under the project folder or under the app folder?
issackelly
In your project, probably under the project folder
if you're making a reusable app, it may also have a static folder
xcesariox joined the channel
Quitta joined the channel
Andy80
issackelly: even if I will need to have different templates for different apps? For example my project will consist of two main "apps", a "Landing" website and a "Dashboard". So the "/static/" should be only inside the project and not the single apps?
Andy80 you can do whatever you want, but I think that the pattern I've seen more often is project level app directory
Quitta has quit
but the longer answer is that it doesn't matter because it's configurable, and both options are supported by default (if I recall correctly)
it's just an organizational tool for your benefit
I prefer to have both them, and templates in one place for the project
Andy80
issackelly: yeah but I think I'm missing something, because I've tried putting the static folder in both places and I always get a TemplateDoesNotExist error
issackelly
static files are different than templates
they have different configuration settings, and different folders
you're looking for TEMPLATE_DIRS and TEMPLATE_LOADERS
Andy80
ouch
Superflat has quit
grumpi has quit
issackelly: so, static files at project level while templates at app level, is it correct?
issackelly
They're both configurable in roughly the same way
but they're different places
err. different settings
pte_petey
hi
I'm getting an error : AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'
issackelly
so you'll likely have at your project level "templates" and "static" and also sometimes at your apps level "templates" and "static"
pte_petey
and ImportError: No module named 'DjangoUnchained.urls'
what is _urlconf_mdoule?
i've got the url.py in my app folder
oblikoamorale has quit
oblikoamorale joined the channel
maryokhin joined the channel
garrypolley joined the channel
sjk
I would like one of my model field's default value to be the current logged in users full name, or empty if the user isn't logged in. Is that possible?
chadhs joined the channel
josuebrunel joined the channel
graingert joined the channel
justinabrahms
Hi all. I'm having an issue where mock.patch isn't reset between test runs when mocking a view's dependency. I'm hitting the view by the test client. Stack Overflow post about it here: http://stackoverflow.com/questions/30555110/moc... -- would love any help with it.
My current guess is that there's some level of caching around url resolvers.. but couldn't find anything in the testing docs about that being the case.
Andy80
issackelly: I've seen that I've to configure the TEMPLATE DIRS like this: http://stackoverflow.com/questions/29610085/tem... but it doesn't work as expected.... I need to resolve the app folder not the project folder only...
should I manually add thos folders?
garrypolley has quit
issackelly
'APP_DIRS': True, is probably what you want?
I haven't messed with the new template stuff actually
since it got configurable backends
sorry Andy80
moldy
justinabrahms: shouldn't you actually do patch("view.tasks")?
acangiani joined the channel
justinabrahms
moldy: Doh! That's exactly right. Thank you. :)
moldy: Do you do Stack Overflow? If you add that answer, I'll mark it as complete.
acangiani has quit
moldy
justinabrahms: i don't understand why it causes that behaviour, though. it does fix your problem?
justinabrahms
It does fix my problem.
moldy
justinabrahms: thanks, let me dig up my account
Dominee joined the channel
Andy80
issackelly: I fixed it! Let me push the code so I can show you. The thing to fix now is that the /static/ folder is broken...not resolved as expected
Dominee has quit
Dominee joined the channel
Superflat joined the channel
issackelly
Andy80 that's probably in your urls.py look at the docs for "configure django to serve static files during development
issackelly: the urls.py doesn't have any reference to the template... it's in the view
sayan joined the channel
moldy
justinabrahms: i have not been very active on SO, so i am not sure about the exact mechanichsms of that site. maybe someone there can improve my answer and explain what exactly is going on there.