satchmo currency

2011-04-14 Thread ug Charlie
Hello, I just make a satchmo shop. 3 languages. But the currency make me stuck. I just want the site change the currency when changing the language. In satchmo settings.py, it is like L10N_SETTINGS = { 'currency_formats' : { 'EURO' : { 'symbol':

Re: django template strange behavior

2011-04-14 Thread Jason Culverhouse
You can use the template language to test against what you think are constants, the parser is actually testing 2 "literals". The parser tests for 2 literals with names 'None' and 'False'. When parser tries to resolve these in the context a VariableDoesNotExist exception is thrown and both

Re: best practice override admin 1.2 "delete"?

2011-04-14 Thread λq
Thanks Mengu, I have another question: how to set admin's default view NOT to display items if is_deleted=True? Yes the super user can click a filter link, but I want to make it as default as possible. On Thu, Apr 14, 2011 at 8:21 PM, Mengu wrote: > you can override the

django template strange behavior

2011-04-14 Thread carrier24sg
Hi guys, {% if None == False %} abc {% endif %} Strangely my template displayed abc. Any explanation? -- 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 unsubscribe

Re: Looking For A Solid Learning Tutorial

2011-04-14 Thread Scott Foubister
There are some good screencasts on ShowMeDo.com http://showmedo.com/videotutorials/django On Apr 14, 6:01 am, grimmus wrote: > I just found a site full of great tutorials > -http://www.lightbird.net/dbe/index.html > > Learning lots of things and new techniques too ! >

Re: testing views problem

2011-04-14 Thread Daniel Gerzo
On 14.4.2011 18:21, Shawn Milochik wrote: If the code sample you pasted is accurate, then you have an extra space between 'activate' and the next forward-slash. I doesn't really matter what kind of URL I pass to get() method (I am actually using reverse mostly), the thing is that I am getting

django-ztask

2011-04-14 Thread David Martorana
Just wanted to announce a new, ultra-simple and fast message queue for Django built on top of ZeroMQ, called django-ztask. We're using it internally in production, but we would love feedback from the community! https://github.com/dmgctrl/django-ztask Thanks! Dave -- You received this message

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread AJ
Why has this become a case for me? I just wanted to know about a particular solution, that whether it exists or not. I did try Google and other forums. I never complained about 'a couple of days', someone else did. I apologize for asking a 'dumb' question by your standards. Please accept my

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:45:33 pm you wrote: > Wait aren't we programmers or not? This should be something you can do in a > couple days... > > Mike My mistake here is nameing an actual time frame that was taken litteral by a few folks. I forget how unimaginitve a lot you are. Sorry.

Re: Need straightforward way to pre-process form data

2011-04-14 Thread ricksteu
Yuka and Shawn - Thanks very much for your help! Overriding _clean_fields() does satisfy the requirements (including the dynamic fields). Rick On Apr 14, 2:54 pm, Yuka Poppe wrote: > Rick, as a followup; > > You also mentioned dynamicly adding fields in __init__, if you also

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Yuka Poppe
Hi Jeff, I think Gladys is correct, the reason for your code finding the index template, is because its probably looking for 'myapp/index.html' instead of just 'index.html' Im not really sure if you're also distinguishing between the project template root and the app directory template dirs.

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 01:27:51 pm Javier Guerra Giraldez wrote: > On Thu, Apr 14, 2011 at 3:20 PM, Mike Ramirez wrote: > > A good programmer with experience, should have a few libraries around > > from other projects that add the polish and need minor tweaking. > > to

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Jeff Blaine
Gladys, On Thursday, April 14, 2011 4:12:29 PM UTC-4, gladys wrote: The root directory for your templates is in '/whatever/myproject', so > > of course it will look for your base.html here. > Now if your base is in another location, say "/whatever/myproject/ > myapp/base.html", your extends

Re: Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
On Thu, Apr 14, 2011 at 4:20 PM, gladys wrote: > Define a model with one-to-one correspondence with User. > Example: >class UserProfile: >user = models.OneToOneField(User) >... > > By the way, how different are the forms? Because if they are the same >

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Daniel Roseman
On Thursday, April 14, 2011 7:09:57 PM UTC+1, ricksteu wrote: > > Shawn - The validation appears to actually takes place *before* the > __init__ is called (during instantiation, not during initialization.) > If you look at BaseForm, scroll past the __init__() method, and you'll > see: > >

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Javier Guerra Giraldez
On Thu, Apr 14, 2011 at 3:20 PM, Mike Ramirez wrote: > A good programmer with experience, should have a few libraries around from > other projects that add the polish and need minor tweaking. to get the basic post+comments+voting yes, a few days seems enough (if you already

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:57:17 pm Daniel Roseman wrote: > On Thursday, April 14, 2011 8:45:33 PM UTC+1, Mike Ramirez wrote: > > Wait aren't we programmers or not? This should be something you can do in > > a > > > > couple days... > > > > Mike > > You should read Stackoverflow creator

Re: Method to restrict user to certain records

2011-04-14 Thread gladys
Define a model with one-to-one correspondence with User. Example: class UserProfile: user = models.OneToOneField(User) ... By the way, how different are the forms? Because if they are the same for a group of users (say you will implement a user type), you can take advantage of

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread gladys
Hello, The root directory for your templates is in '/whatever/myproject', so of course it will look for your base.html here. Now if your base is in another location, say "/whatever/myproject/ myapp/base.html", your extends should look like this: {% extends "myapp/base.html" %}. Best of Luck.

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Daniel Roseman
On Thursday, April 14, 2011 8:45:33 PM UTC+1, Mike Ramirez wrote: > > Wait aren't we programmers or not? This should be something you can do in a > > couple days... > > Mike > You should read Stackoverflow creator Jeff Atwood's post on exactly that:

base.html (extended by others) has to be in project (not app) root?

2011-04-14 Thread Jeff Blaine
Django 1.3 Hi all, I can't seem to get around this. It appears that, the following "index.html" template in */whatever/myproject/myapp* {% extends "base.html %} Looks for base.html as /whatever/myproject/base.html instead of /whatever/myproject/myapp/base.html My TEMPLATE_DIRS is set as

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
Rick, as a followup; You also mentioned dynamicly adding fields in __init__, if you also want to return validation errors, you're better off overriding _clean_fields() instead of full_clean(). Taking all requirements into account (processing self.data before any fields are cleaned being the most

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread AJ
>>Wait aren't we programmers or not? This should be something you can do >>in a couple days... Indeed. Just wanted opinions. :) Consider this resolved now. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Thursday, April 14, 2011 12:37:33 pm Mengu wrote: > doesn't pinax provide something like this? > > On 14 Nisan, 21:44, AJ wrote: > > >>Here's a fun thought, why can't a custom blog like enty and the > > >>comments framework be utilized to do this? > > > > Precisely

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mengu
doesn't pinax provide something like this? On 14 Nisan, 21:44, AJ wrote: > >>Here's a fun thought, why can't a custom blog  like enty and the comments > >>framework be utilized to do this? > > Precisely but I was hoping I'd get something with modifications. > > Here is

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
Hi Rick, Ok, I did a quick skim over the BaseForm; Validation is called by the method is_valid(), which inturn accesses the property self.errors -- And thus _get_errors() which calls self.full_clean() full_clean() is responsible for calling the clean method on all associated fields, and

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread AJ
>>Here's a fun thought, why can't a custom blog like enty and the comments >>framework be utilized to do this? Precisely but I was hoping I'd get something with modifications. Here is what I require: * Posts in the system: bunch of text. --- (This i already have.) * Each post gives user to be

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Mike Ramirez
On Tuesday, April 12, 2011 02:17:22 pm AJ wrote: > Isn't there any app with just the commenting part? I mean the answer and > comments on those answers part only. Here's a fun thought, why can't a custom blog like enty and the comments framework be utilized to do this? Mike -- Real computer

Re: Need straightforward way to pre-process form data

2011-04-14 Thread ricksteu
Hi Yuka - We do want to do the cleaning at the form level, basically because we don't want to use a CharField subclass in all places on all of our forms.You're right, there are two methods that can be overridden: clean() and full_clean(). clean() occurs too late. I think using full_clean()

Re: Need straightforward way to pre-process form data

2011-04-14 Thread ricksteu
Shawn - The validation appears to actually takes place *before* the __init__ is called (during instantiation, not during initialization.) If you look at BaseForm, scroll past the __init__() method, and you'll see: def _get_errors(self): "Returns an ErrorDict for the data provided for

Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
I'm new to Django. I've done the djangoproject tutorial and some others, but I haven't come across an answer to my current problem. I have a form that the users fill out. I want the user to be restricted to his form only. Admin should be able to see all forms info. I was thinking I could add

Re: Best Practice for Raw SQL

2011-04-14 Thread Dan Gentry
Thanks. I'll give raw() a try. On Apr 11, 11:51 am, Jacob Kaplan-Moss wrote: > On Mon, Apr 11, 2011 at 7:53 AM, Dan Gentry wrote: > > Where I run into trouble is that the query returns data in columns, > > but not objects. That means that I can’t

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Yuka Poppe
On Thu, Apr 14, 2011 at 5:32 AM, ricksteu wrote: > > Hello - > > I am looking for a straightforward way to alter posted form data prior > to when the form's full_clean() method is called.  Specifically, I > need to strip whitespace from any string data (such as for >

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Shawn Milochik
No data validation takes place any time during __init__, so it's not too late. -- 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 unsubscribe from this group, send email to

Re: Need straightforward way to pre-process form data

2011-04-14 Thread ricksteu
Shawn - thanks for the reply, but the field cleaning occurs prior to the super().__init__. It occurs in the form definition. So, performing manipulation afterward would be too late. The main problem with performing the manipulation after the field cleaning is that I don't want a CharField with

Re: testing views problem

2011-04-14 Thread Shawn Milochik
If the code sample you pasted is accurate, then you have an extra space between 'activate' and the next forward-slash. -- 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

Re: Need straightforward way to pre-process form data

2011-04-14 Thread Shawn Milochik
I believe you can customize your form's __init__ to handle this. In the __init__, call the super() __init__ and then do your dynamic field jazz. After that, you should be able to manipulate the data. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: cURL or wget with contrib.auth and CSRF

2011-04-14 Thread Shawn Milochik
This isn't a Django question. Check out the man pages for curl and wget -- both have the ability to GET & POST and retain cookie data for future requests. You shouldn't have to change anything in Django. -- You received this message because you are subscribed to the Google Groups "Django

Re: Using Q objects vs explicit filters

2011-04-14 Thread Gianluca Sforna
On Thu, Apr 14, 2011 at 11:46 AM, Massimiliano della Rovere wrote: > what about Parent.objects.filter(~q) ? In [16]: f1 = Parent.objects.filter(~q) In [17]: print f1.query SELECT "molserv_parent"."id", "molserv_parent"."name" FROM "molserv_parent" WHERE NOT

Developers for Start Up

2011-04-14 Thread Johannes
Partner in a Start Up backed by one of Europe’s leading VCs. We’re developing a Social Commerce product with massive potential. The development takes place in Sweden and the initial roll out will be in the US. Now we’re building a team in Stockholm and California. I’m looking for developers to

testing views problem

2011-04-14 Thread Daniel Gerzo
Hello all, I am beginning to write view tests and I was following what we have in docs at http://docs.djangoproject.com/en/dev/topics/testing/ and also this nice article at http://toastdriven.com/blog/2011/apr/10/guide-to-testing-in-django/. I have a strange problem with the below code:

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread Mengu
sorry, i've got you wrong. i thought you wanted to use the constants in your views which were defined in your settings.py file. your real problem is about serving static files. reading http://docs.djangoproject.com/en/dev/howto/static-files/ will help you. On Apr 14, 5:03 pm, GKR

Re: More trouble with select_related()

2011-04-14 Thread Carsten Fuchs
Dear Martin, Am 14.04.2011 15:26, schrieb Martin J. Laubach: Sounds like a join with a table that doesn't have all the rows. Let me guess: the tables have been filled by some other program and you are just reading them from Django -- and you are missing a blank=True, null=True on a ForeignKey

Formset with FileField

2011-04-14 Thread gontran
Hello everybody, I've a class Document: class Document(models.Model): doc = models.FileField(...) pub = models.ForeignKey(Publication) I've a inlineformset_factory class: DocumentFormset = inlineformset_factory(Publication, Document) In my view, I treat the form correctly an send it

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
plz help on how to use my custom images and css -- 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 unsubscribe from this group, send email to

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread Mengu
this will help you out: http://stackoverflow.com/questions/433162/can-i-access-constants-in-settings-py-from-templates-in-django/433209#433209 On Apr 14, 4:33 pm, GKR wrote: > please help -- You received this message because you are subscribed to the Google Groups

Re: how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
please help -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit

Aw: More trouble with select_related()

2011-04-14 Thread Martin J. Laubach
Sounds like a join with a table that doesn't have all the rows. Let me guess: the tables have been filled by some other program and you are just reading them from Django -- and you are missing a blank=True, null=True on a ForeignKey in your Django models somewhere. Cheers, mjl --

Re: Activating HTML error emails while keeping logger defaults

2011-04-14 Thread Carsten Fuchs
Am 14.04.2011 14:13, schrieb Russell Keith-Magee: Duplicate the default Django logging settings, and update them as required. The defaults are contained in django/conf/global_settings.py Thank you very much! :-) Best regards, Carsten -- Cafu - the open-source Game and Graphics Engine

Re: Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Leszek Piątek
from django.conf.urls.defaults import patterns, include, url from views import test urlpatterns = patterns('', url(ur'(?Pdom|działka|kamienica|biuro)/(?Pwynajem| sprzedaż)/$', test, name='home'), ) + http://localhost.com:8000/dzia%25C5%2582ka/sprzeda%25C5%25BC/ I thought it would be more

how to use variables in settings.py on template + how to use the media

2011-04-14 Thread GKR
how to use variables in settings.py on template. eg : [settings.py] -- import os import sys PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "./")) PROJECT_NAME = 'e_book' MEDIA_ROOT = os.path.join(PROJECT_ROOT,

Query on inherited (related) models broken??

2011-04-14 Thread robim42
Hi guys, I used model inheritance quite a while and came across a problem which I can resolve and actually think is might be a bug in django itself. Because of the size of the project I'm working on it would be a waste of space using the original models here ... so I simplified the classes to

Re: Looking For A Solid Learning Tutorial

2011-04-14 Thread grimmus
I just found a site full of great tutorials - http://www.lightbird.net/dbe/index.html Learning lots of things and new techniques too ! On Apr 13, 5:49 pm, 小白 wrote: > Yes I think "Practical Django Projects" is very good for newbie, after > reading that i > start my own

Running djaogo apps on Google App Engine

2011-04-14 Thread Abhijeet Rastogi
Hi, I have searched on google. There are many alternatives. What do you guyz suggest as the best way to run Django apps on google app engine? -- Regards, Abhijeet Rastogi (shadyabhi) http://www.google.com/profiles/abhijeet.1989 -- You received this message because you are subscribed to the

RequestFactory: AttributeError: 'WSGIRequest' object has no attribute 'session'

2011-04-14 Thread Pickels
Hello, when testing user related logic I always run into this problem with the RequestFactory. Anybody know an elegant solution for this? At the moment I am mocking out everything that's related to sessions. -- You received this message because you are subscribed to the Google Groups "Django

Re: best practice override admin 1.2 "delete"?

2011-04-14 Thread Mengu
you can override the delete method for your models and set a column ie, is_deleted to True or something else in there. so, subclass models.Model, override delete option and your models should extend your new subclass. On Apr 14, 11:51 am, λq wrote: > Hi list, > > We have a

Re: Activating HTML error emails while keeping logger defaults

2011-04-14 Thread Russell Keith-Magee
On Wed, Apr 13, 2011 at 2:57 AM, Carsten Fuchs wrote: > Hi all, > > from the documentation at > I get that I need > something like > > > LOGGING = { >    'version': 1, >    'handlers': { >        'mail_admins': {

More trouble with select_related()

2011-04-14 Thread Carsten Fuchs
Hi all, using Django 1.3 with Python 2.6.5 on Ubuntu 10.04 and mod_wsgi, with Oracle database, in addition to http://code.djangoproject.com/ticket/15766, I seem to have come over another problem with select_related(): The same queryset produces different results (number of returned

Re: Activating HTML error emails while keeping logger defaults

2011-04-14 Thread Kenneth Gonsalves
On Thu, 2011-04-14 at 13:52 +0200, Carsten Fuchs wrote: > Am 14.04.2011 09:54, schrieb Jayakumar D K: > > pse.send more inf, on error finds html & finding of sent m,sg > wether > > reachd to addrese or not how cn find > > > Uh, sorry, I cannot parse this. looks like smsspeak - he has

Re: Activating HTML error emails while keeping logger defaults

2011-04-14 Thread Carsten Fuchs
Am 14.04.2011 09:54, schrieb Jayakumar D K: pse.send more inf, on error finds html & finding of sent m,sg wether reachd to addrese or not how cn find Uh, sorry, I cannot parse this. Anyone? Many thanks and best regards, Carsten -- Cafu - the open-source Game and Graphics

cURL or wget with contrib.auth and CSRF

2011-04-14 Thread David
Hello, I am sorry for asking this, I know similar questions have been asked before but I could not piece together the answer I needed from previous contribution! I have a view, for example: @login_required def clever_view(request): #Render a PDF to a string response =

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Raúl Cumplido
Hi, Why is better? Have you got a good comparison or references to blogs with comparisons? This should help people to grow (in terms of expertise, knowledge...). I have no idea on which one is better and have no idea about the differences :) Thanks and sorry, I just want to know why you are

Re: Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Daniel Roseman
On Wednesday, April 13, 2011 9:31:27 PM UTC+1, Leszek Piątek wrote: > > Hi! > > I've recently came across problem in django. According to > documentation I should be able to use unicode inside urlpatterns - but > something is wrong I guess. > > When URL exists I got error displayed on dev

Re: Error: No module named mysql.base when trying to sync.db

2011-04-14 Thread pagan
same problem. apache2, mod_wsgi, python-mysqldb installed. When i add databases engine, name, user, password in settings.py, i got a message: ImportError at /wsgi No module named mysql.baseRequest Method: GET Request URL:http://x/wsgi Django Version: 1.3 Exception Type: ImportError

Re: Activating HTML error emails while keeping logger defaults

2011-04-14 Thread Jayakumar D K
On Wed, Apr 13, 2011 at 12:27 AM, Carsten Fuchs wrote: > Hi all, > > from the documentation at < > http://docs.djangoproject.com/en/1.3/topics/logging/#id2> I get that I > need something like > > pse.send more inf, on error finds html & finding of sent m,sg wether reachd

Need straightforward way to pre-process form data

2011-04-14 Thread ricksteu
Hello - I am looking for a straightforward way to alter posted form data prior to when the form's full_clean() method is called. Specifically, I need to strip whitespace from any string data (such as for CharFields), and this needs to be done prior to when the individual fields' clean methods

Utf-8 encoding errors with unicode in urlpatterns - Django 1.3

2011-04-14 Thread Leszek Piątek
Hi! I've recently came across problem in django. According to documentation I should be able to use unicode inside urlpatterns - but something is wrong I guess. When URL exists I got error displayed on dev server console (no sigh of problem), but IF URL DOESN'T exists error is printed out on

Re: Stackoverflow kind of Answer/commenting app in Django

2011-04-14 Thread Venkatraman S
On Tue, Apr 12, 2011 at 11:12 AM, Anoop Thomas Mathew wrote: > http://osqa.net/ > askbot is a better implementation of osqa. http://blizzardzblogs.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Determining profile completeness

2011-04-14 Thread grimmus
Hi, I am interested in extending the User object and implementing functionality that determines how complete the users profile is. So, if they have filled in 5 of 10 fields the profile is 50% complete. But, some fields are more important than others so i was thinking of weighting each field (a

Re: Determining profile completeness

2011-04-14 Thread Jani Tiainen
On Thursday 14 April 2011 12:53:19 grimmus wrote: > Hi, > > I am interested in extending the User object and implementing > functionality that determines how complete the users profile is. > > So, if they have filled in 5 of 10 fields the profile is 50% complete. > But, some fields are more

Re: Using Q objects vs explicit filters

2011-04-14 Thread Massimiliano della Rovere
what about Parent.objects.filter(~q) ? On Thu, Apr 14, 2011 at 11:08, Gianluca Sforna wrote: > On Wed, Apr 13, 2011 at 3:43 PM, Brian Bouterse wrote: >> Could you include the output to highlight the differences? > > I've just created a simpler test case.

Re: Using Q objects vs explicit filters

2011-04-14 Thread Gianluca Sforna
On Wed, Apr 13, 2011 at 3:43 PM, Brian Bouterse wrote: > Could you include the output to highlight the differences? I've just created a simpler test case. I've a couple models like: class Parent(models.Model): name = models.CharField(max_length=200, db_index=True) class

best practice override admin 1.2 "delete"?

2011-04-14 Thread λq
Hi list, We have a production django app using the default admin view, but some of the super users delete a record in a model and affect other related data, this cause inconsistency and corruption. What's the best practice to override django admin's default delete behavior and implement some kind

Re: Is it possible to output a graph from Matplotlib into Django like this?

2011-04-14 Thread Derek
On Apr 14, 5:48 am, nai wrote: > Thanks for your help. > > I went with 2 views, 1 for the image and 1 for the html. > > On Apr 12, 2:06 pm, Sam Walters wrote: > > I mis-read this... basically you have one view and in the template you > > are rendering

Model formset inside ModelForm

2011-04-14 Thread gontran
Hello everybody, I was wondering if it's possible to insert a Model formset inside another ModelForm. Let me explain myself: here are my models: class Publication(models.Model): author = models.CharField(...) content = models.TextField() ... class Document(models.Model): file =