p today at DjangoCon
during the "Future of Django" session, and the audience approved of
the idea, but I'll need to explore the amount of work involved.
Adrian
--
Adrian Holovaty
holovaty.com | everyblock.com | djangoproject.com
--~--~-~--~~~---~--~-
> wsgi.multiprocess
> wsgi.multithread
> wsgi.run_once
Here you go, Graham:
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': True,
'wsgi.url_scheme': 'http',
'wsgi.version
URLCONF='blog',
)
handlers.CGIHandler().run(WSGIHandler())
if __name__ == "__main__":
main()
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com | everyblock.com
--~--~-~--~~~---~--~-
* a good method to use if you want to distribute your
application, however.
We need better documentation about best practices to make apps portable.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because
goproject.com/wiki/BackwardsIncompatibleChanges
This is, we hope, the final run of backwards-incompatible changes
before version 1.0, at which point we'll be committed to
compatibility.
If you'd like to discuss these changes, feel free to post a message to
the django-developers mailing list:
I use it almost every day.
Are you on Windows? What are you doing when it crashes?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&quo
d of time. If
you're operating a site like feedvalidator.org whose main purpose is
to retrieve Web pages dynamically and do some operations on them,
you're stuck making the requests from within the view.
Anyway, hope this helps.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
ion -- i.e., it is
configuration for the Django admin site. As such, it doesn't have much
to do with the newforms library. You can easily replicate its
fundamental functionality using newforms, though -- just use a
TextField rather than a ChoiceField.
Adrian
--
Adrian Holovaty
holovaty.com
nd as
> well?
Patience, TaMeR, patience. :)
The form_for_model and form_for_instance functions, which Tim Chase
mentioned earlier in this thread, are not yet documented (or 100%
complete).
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---
code in memory at the
production-server level far outweigh the convenience of being able to
make changes without restarting.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
uestion and Answer models, but of course, it didn't work.
Hi Daniel,
No, this isn't currently possible.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
/NewformsAdminBranch
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@google
erField widget, however, I'd like to be able to use
> form_for_instance().
Hey Matt,
This should be fixed in revision [4556]. Thanks for pointing it out!
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this mes
to a model, how do I update the database?"
http://www.djangoproject.com/documentation/faq/#if-i-make-changes-to-a-model-how-do-i-update-the-database
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because yo
s. The
unit tests are linked-to from the newforms documentation.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to t
..):
> self.help_text = smart_unicode(help_text)
Thanks, Sandro. I fixed the bug in changeset [4543]. Note that the
patch wasn't exactly that, as it had to account for the case of empty
help_text (help_text is None).
Adrian
--
Adrian Holova
m the site.
>
> Do the authors have something of the sort somewhere?
Not yet, but stay tuned.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
cool.
Thanks,
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To un
to do as Honza
suggested, but in the long term, you'll be able to subclass forms and
add fields declaratively.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
On 2/4/07, James Bennett <[EMAIL PROTECTED]> wrote:
> Its existence has always been a bit of a hack, and I'm hoping newforms
> will get rid of it once and for all.
Yes, "follow" is going away, and good riddance.
Adrian
--
Adrian Holovaty
holov
is here:
http://www.djangoproject.com/documentation/newforms/
I can't vouch for any non-djangoproject.com documentation, or anything
posted on our wiki (code.djangoproject.com). In those cases, the docs
may or may not be correct.
Adrian
--
Adrian Holovaty
holovaty.com
You can either implement a
custom Field class *or* implement a clean_* method.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
On 1/30/07, Rob Slotboom <[EMAIL PROTECTED]> wrote:
> Before re-inventing, I want to ask if there is some build-in for
> getting objects for [a || this] week.
>
> Something like:
>
> objects.filter(pubdate__week=now.week)
Hi Rob,
That database lookup type doesn'
On 1/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> C'mon guys... anyone?
Hey there,
Please don't "bump" your threads like this -- it's unacceptable
mailing-list behavior.
Adrian
--
Adrian Holovat
provide a patch,
we'll integrate it into Django.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this grou
with the changes made to the Django repository.
This is always a risk when you make local changes to your copy of the
Django framework.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subs
the self.fields dictionary.
Judging by what you said about your lack of Python experience, my
advice would be for you to wait until we've got documentation on
building forms dynamically.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~
ary expects Unicode strings. If this indeed is the
problem, one solution would be to change django/newforms/fields.py to
wrap every occurrence of gettext() in smart_unicode(), like so:
smart_unicode(gettext(u'Some characters'))
Would you be willing to test this out in you
On 1/22/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> on this page of the wiki:
> http://code.djangoproject.com/wiki/AJAX
>
> i see something that looks like asp and vb files ... do they belong
> here?
I've removed them. Thanks for the heads-up.
Adrian
--
Ad
th
> too?
Hi Michel,
The newforms.CharField class intentionally uses max_length rather than
maxlength. We'll eventually be changing the model field syntax to use
max_length rather than maxlength, so this was a futureproofing
decision.
Adrian
--
Adrian Holovaty
holo
ages, except pages which are using render_to_response.
>
> Is it because of render_to_response ? Or some apache configuration ?
It's because of Apache configuration. There's nothing in
render_to_response that would have any effect on SSL.
Adrian
--
Adrian Holovat
http://code.google.com/p/aspen-commons/wiki/Stephane
Does this address the issue?
Looks much better! Good work. :-)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
nt know about its' form so how does this help my
Field.clean(self, value) validator?
With respect, I think you should wait until the library is fully documented.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this me
oduction, but it looks promising. However, it's
super inelegant to require a Django project to be called "stephane" in
order to use it with Stephane. Surely you could remove that
requirement somehow?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~--
e form library itself knows nothing about request objects.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group,
;m not
sure whether they're still using ES for everything, but it certainly
works well with Django, if that's what you're asking.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you ar
ields in the same way. But you're not the
first person who's tried to do this, so there's something intuitive
about just subclassing a form and specifying some more fields as class
attributes...
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~--
tions for improvement are welcome!
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to d
ode.djangoproject.com/ticket/3312
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to d
when clicked, would do the
geocoding server-side and populate the long/lat fields with the
result. You can do this by hooking into the admin site with JavaScript
(the "js" option to "class Admin") or by overriding the template for
that particular admin page.
Adrian
--
Ad
On 1/12/07, Andres Luga <[EMAIL PROTECTED]> wrote:
> Any idea if newforms simplifies this?
Yes, newforms DateFields let you specify the input format(s). This has
yet to be integrated into the Django admin, but it will be sooner
rather than later.
Adrian
--
Adrian Holovaty
hol
navigation. The Django Book, on the
other hand, is meant to be a more linear way of learning the whole
framework, so its "contrib" chapter
(http://www.djangobook.com/en/beta/chapter15/) does indeed mention
Sites before Flatpages.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject
"
I'll be adding a section to that chapter about how strategies for
internationalizing data.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
em in a template, rather than using
something like {{ form.as_p }}.
Pass the whole Form object to the template, not a list of Fields. Then
use lookup syntax to access the field:
{{ form.field_name }}
Adrian
--
Adrian Holovaty
holovaty.com | d
attribute access in the template. The
template system itself knows nothing about SQL.
So, I'm not sure what you're proposing here...
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are
ant to display "Überschrift" instead of Überschrift", use
"Überschrift" instead of Überschrift" for the label.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are
of BSD license. But what about thee
code we have written? Can we sell it with our own license?
Yes, you can sell it with your own license.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subs
currently naive about foreign-key values. We should improve it so
that it handles foreign-key values properly.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "
uldn't be a good thing.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-user
atting)
Here's the code:
http://dpaste.com/hold/4382/
Also, delete_academic_year() should check request.method == 'POST'. As
it stands, anybody who visits that page via GET will cause deletion.
Deletion should only happen via POST.
Adrian
--
Adrian Holovaty
holovaty.co
e/')
else:
context = {'form': form, 'error_msg': "Please correct the
error(s) below"}
else:
context = {'form': AcademicYearForm()}
return render_to_response('academic_year.html', context)
Adrian
--
Adrian Holovaty
holovaty.
http://www.djangobook.com/en/beta/chapter14/
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email
sense or is wrong, no
one seems to make an attempt to address it.
Hi Graham,
Could I trouble you to bring up those issues again? I did a quick
search and assume you're talking about this comment of yours:
http://www.djangoproject.com/documentation/modpython/#c2029
Adrian
--
Adrian Holov
el and form_for_fields?
They're intended to do these things in a dynamic way. See the unit
tests in tests/modeltests/model_forms/models.py for examples.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message beca
t's never caused any problems for me. :)
With that said, I would be grateful if anybody could explain why that
happens, and if we need to change something on Django's end so that,
at the very least, people's logfiles won't get cluttered
d idea -- I agree it would help avoid confusion. In
changeset [4284], I've changed the Form class so that Form.clean_data
only exists if a Form is valid. Otherwise, you'll get an
AttributeError if you try to access it. Thanks for the suggestion!
Adrian
--
Adrian Holovaty
holovaty.com | d
cessary because the SelectDateWidget requires three values instead
of one. Make sense?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users&q
he form class before sending it to the template,
like so:
ProjectForm = forms.form_for_model(Project)
f = ProjectForm()
return render_to_response('crm/addproject.html', {'theform': f})
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~-
es
are intended to be suggestions and corrections for the docs themselves
-- not tech support questions. We delete anything that doesn't comment
directly on the docs, so that the comments section remains helpful.
The place to ask questions is on django-users, not in the doc
comments.
Adrian
g. Of course, there's nothing
stopping you from implementing it in your own Widget subclasses, as
you've already done.
BTW, future questions/proposals like this should go to the
django-developers mailing list -- that's where we talk about changes
and improvemen
ou don't have to hack
around it.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to dja
dec can't decode byte 0xc3 in position 13: ordinal not in
range(128)
Hi Jannis,
Could you please paste the whole traceback for that error? Looks like
there's a place in the newforms library that doesn't convert
bytestrings properly, but in order to find the bug, I'll need to s
You're best off waiting for the newforms library, for which we're
firming up the code and documentation. The docs we have so far are
here:
http://www.djangoproject.com/documentation/newforms/
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~
s with custom
validation. A Field *is* a validator.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send
me you accessed form.clean_data? I'm trying to decide whether
that would be convenient or too magic.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups &qu
, but all of the form stuff is important to me.
If you're wanting an "official" way of learning the newforms library,
I'm afraid you'll have to wait until the APIs have solidified and the
documentation is done. This should be happening sooner rather than
later.
something like SQLAlchemy? :)
If you're willing to go to "crazy" lengths, you might as well run
Django as CGI. Check this ticket out for more information:
http://code.djangoproject.com/ticket/2407
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~
d we'll show you how to do it.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to d
you told it the variable would
be called. This dictionary:
{'object': wkreport}
...tells the template system to make available the object wkreport as
the template variable called "object".
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~---
Glad we got that figured out. :)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-u
x27;t directly answer your question about one-to-one
relationships, but wouldn't Comment -> Entry be a many-to-one
relationship? Or would your blog only allow a single comment for each
entry?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~---
ld. You're getting the validation error because the *Field* does
validation, not the Widget, and a Field has to know what its valid
choices are in order to do validation correctly.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~-
n only choose between pets that are mammals.
How could I do this with the admin interface?
Hi rlazo,
This isn't currently possible with the admin interface.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this mess
t framework for
storing one-off pages like the about/contact pages.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to t
m not aware of a way to get an
empty QuerySet without hitting the database. Maybe we should add one?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
pretty lax about releasing "official" releases,
to be honest. The good stuff is always in the development version, and
many people use it rather than the released versions.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You r
f
Django (such as from svn), but not with 0.95. There is an explanation in the
comments there that tell how to fix it.
FYI, that's not a bug -- rather, it's a new feature in the Django
development version. Callable objects in URLconfs were added after
0.95 was released.
Adr
lowing error:
Are you using the Django 0.95 release or the Django development
version? The Django book code refers to the Django development
version, not to Django 0.95.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You receive
even
further, because the AddEditCustomerForm could be generated from the
model. (Of course, you might not want to do that, depending on whether
your model has fields that you don't want to edit via that form.)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---
st):
conn = psycopg2.connect('dbname=foo')
cursor = conn.cursor()
cursor.execute('xxx')
There is no magic to be aware of. It's just plain Python.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~-
plit
into three HTML fields but combined into a single datetime.date object
by the widget value_from_datadict() method.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog
we add "general tools for
integrating arbitrary SQL with Django QuerySets" -- any ideas on
syntax?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&
Hello to any Bay Area Django folks out there --
I'll be in San Francisco later this week. Anybody interested in having
a Django meetup Thursday night?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this me
functionality but don't have time to code it myself; any takers?
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
On 12/17/06, Brian Victor <[EMAIL PROTECTED]> wrote:
> Adrian Holovaty wrote:
> > On 12/9/06, Brian Victor <[EMAIL PROTECTED]> wrote:
> >> One of the things I was hoping for in newforms but haven't found is a
> >> way to do a composite form field that u
A patch to the documentation would be welcome. :)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
a certain month, but whether
that's a problem depends on your application.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
ing /too/ much
> damage. :)
Hey Tim,
I've added some more instructions to the "Using branches" part of our
documentation. Let me know if this helps.
http://www.djangoproject.com/documentation/contributing/#using-branches
Adrian
On 12/10/06, Ceph <[EMAIL PROTECTED]> wrote:
> Ah. I was hoping wrongly that newforms would be able to handle getting
> passed POST instead of having the parse the data manually into a dict.
This has been fixed as of [4196], thanks to a patch from Honza.
Adrian
--
Adrian Holovaty
> self.post_date = datetime.datetime.now()
>
> posted = property(get_posted, set_posted)
Ah, right, good catch! Thanks for pointing out my mistake.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received thi
ll
set_posted() behind the scenes. Like I said, though, I'm not sure
whether that would work with the way models are currently implemented.
(But if not, let's go ahead and fix that!)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~
s on MyISAM tables, as
opposed to the other MySQL table types?)
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On 12/8/06, naitsirhc <[EMAIL PROTECTED]> wrote:
> I'm kind of surprised that I didn't find
> mention of the 'raw_id_admin' in my previous searches - is it
> relatively new?
Nope, it's not new -- raw_id_admin has been around since before Django
was op
Flatpages application that comes with Django?
http://www.djangoproject.com/documentation/flatpages/
Also, I think you may be thinking about URLs in the wrong way. The
URLconf is intended to be a collection of *patterns*, not a collection
of every single *literal* URL possible. (Does that make sens
ortError: cannot import name newforms
I suspect you have multiple versions of Django installed, and your
Python was pointed at the wrong one when you ran that import
statement.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You
ent to use.
I'd encourage you to take a look at those unit tests again, even
though you said you looked at them. Feel free to use newforms in your
own applications. Otherwise, just stay patient until we update the
documentation.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~-
hich shows how the admin looks through Firefox...
>
> http://static.flickr.com/108/316578699_11591b364d_o.gif
I have never seen anything like that. I suspect the images are
corrupted somehow, and I have no idea how that might have happened.
Did you try redownloading and reinstalling Django?
Adr
est_response/#attributes
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegro
from django.contrib.contenttypes.management import create_contenttypes
from django.db.models import get_apps
for app in get_apps():
create_contenttypes(app, created_models=None, verbosity=2)
"""
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~-~--~---
1 - 100 of 896 matches
Mail list logo