Different Django instances running on the same server
Hi, Is it possible to run Django 1.1 and Django 1.2 on the same server? I have some legacy apps that I need to port to 1.2 but until then I would still like to run 1.1 and also at the same time run 1.2 for some new apps. Is this possible -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Providing flatpages initial data
Hi all, I just came across a need to provide initial data for flatpages. I have read before that people have asked to do this. It is easier than thought :) 1. Create your content via the admin interface 2. Run 'python manage.py dumpdata flatpages > data.json' 3. When you want to provide the data run 'python manage.py loaddata data.json' I hope this helps someone that needs to do this sort of thing. -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Generator
Sorry... It is Brice... My bad. Rick On Wed, Feb 10, 2010 at 7:48 AM, Rick Caudill wrote: > I want to say good job Brian. I can see how this could be very useful. > > Rick > > > On Tue, Feb 9, 2010 at 2:58 PM, Brice Leroy wrote: > >> Hello everybody, >> >> I've been working for a week on this idea of a generator for django >> project. The goal is to provide a simple architecture that can be >> after adapted to your project. The system is in alpha stage but allows >> you to create project, model (+1 view and 1 form) and application. >> Once your project is created you can download a tar.gz with the >> complete project already build for you. >> >> It's supposed to be used with the trunk version of django. >> >> I plan to add permission, forms and view during the next 15 days. Let >> me know if you have any advice or request. >> >> The project can be found here: http://alpha.djangogenerator.com/ and >> is open to registration >> The source code is located on github: >> http://github.com/debrice/djangogenerator >> >> All the best, >> >> -- >> Brice Leroy >> http://www.debrice.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-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com >> . >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > > > -- > Rick Caudill > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Generator
I want to say good job Brian. I can see how this could be very useful. Rick On Tue, Feb 9, 2010 at 2:58 PM, Brice Leroy wrote: > Hello everybody, > > I've been working for a week on this idea of a generator for django > project. The goal is to provide a simple architecture that can be > after adapted to your project. The system is in alpha stage but allows > you to create project, model (+1 view and 1 form) and application. > Once your project is created you can download a tar.gz with the > complete project already build for you. > > It's supposed to be used with the trunk version of django. > > I plan to add permission, forms and view during the next 15 days. Let > me know if you have any advice or request. > > The project can be found here: http://alpha.djangogenerator.com/ and > is open to registration > The source code is located on github: > http://github.com/debrice/djangogenerator > > All the best, > > -- > Brice Leroy > http://www.debrice.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-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Django reporting....
Hi everyone, I have been working on a Django reporting tool for the company I work for and wonder if anyone thinks a reporting tool like attached would be valuable to the community??? I should say that it doesn't handle m2m yet but I am working on that. I would also want to clean the code up some and put it on google code but I want to pull the audience first to see if something like it would be welcomed. This is all the code that is needed in order to create the screenshot attached: class StudentFieldForm(FieldForm): class Meta: model = Student inline_models = [Demographics,Medical,Emergency] inline_excludes = {'Medical':['student'],'Demographics':['student']} exclude=('school','address','student','studentclass.student','access_restrictions','photo') extra_fields={'Student':{'age':CALLABLE}} class StudentReportSearchForm(SearchForm): class Meta: model = Student inline_models = [Demographics,Medical,Emergency] inline_excludes = {'Medical':['student'],'Demographics':['student']} exclude=('school','address','student','studentclass.student','access_restrictions','photo') extra_fields={'Student':{'age':CALLABLE},'Father':{'father_fname':CALLABLE}} class StudentOrderSearchForm(OrderingForm): class Meta: model = Student inline_models = [Demographics,Medical,Emergency] inline_excludes = {'Medical':['student'],'Demographics':['student']} exclude=('school','address','student','studentclass.student','access_restrictions','photo') extra_fields={'Student':{'age':CALLABLE}} StudentFieldsFormset = formset_factory(StudentFieldForm,formset=FieldFormSet) StudentReportFormset = formset_factory(StudentReportSearchForm,formset=SearchBaseFormSet) StudentOrderFormset = formset_factory(StudentOrderSearchForm) -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. <>
Re: Form formatting
Sorry... I forgot that font-weight has a normal and text-align would be appropriate. I didn't test and fix before I sent it lol On Thu, Jan 28, 2010 at 10:41 AM, Zeynel wrote: > This works: > > > label {font-weight: normal;} > th {text-align: right;} > > > On Jan 28, 11:32 am, Zeynel wrote: > > Thanks. I added the CSS to the template; but it is not working. What > > am I doing wrong? > > > > > > > > Feedback > > > >label {font-weight: none} > >th {align: right} > > > > > > > > {% include 'menu.html' %} > > > > > > > > {{ form.as_table }} > > > > > > > > > > > > > > > > On Jan 28, 11:04 am, Rick Caudill wrote: > > > > > > > > > Use CSS. > > > > > label {font-weight: none} > > > th {align: left} > > > > > On Thu, Jan 28, 2010 at 9:53 AM, Zeynel wrote: > > > > Hello, > > > > > > How can I remove the bold in this formhttp://swimswith.com/feedback/ > > > > and fix the alignment? > > > > > > Thanks. > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > > "Django users" group. > > > > To post to this group, send email to django-us...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > django-users+unsubscr...@googlegroups.com > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/django-users?hl=en. > > > > > -- > > > Rick Caudill > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Form formatting
Use CSS. label {font-weight: none} th {align: left} On Thu, Jan 28, 2010 at 9:53 AM, Zeynel wrote: > Hello, > > How can I remove the bold in this form http://swimswith.com/feedback/ > and fix the alignment? > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Support for MS SQL Databases
Hi, Doing a google search for 'django mssql' results in: http://code.google.com/p/django-mssql/ Now as I see it this version does not support 1.2 and I am not sure how reliably this works but it is worth a shot Rick Caudill On Thu, Jan 28, 2010 at 1:25 AM, sridharpandu wrote: > By any chance does Django support MSSQL DB's. I have a query from a > prospective customer who would like to protect his current IT > investments. > > Best regards > > Sridhar > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Django Admin interface crashes with.
I do have non-ascii data in my database. That is allowed, right??? On Thu, Nov 12, 2009 at 6:55 PM, Matt Schinckel wrote: > On Nov 13, 7:06 am, Rick Caudill wrote: > > Hi Everyone, > > > > This is my first time posting but I have been using Django for about a > > year now and love it. I am having one problem that I can't solve > > though and it is taking too long so I thought I would ask and see if > > someone can help me. So I have a Admin interface that is crashing. > > The error that I am getting is: > > > > DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in > > position 5: ordinal not in range(128). You passed in > > ( > 'django.forms.forms.BoundField'>) > > > > Can anyone help with this > > It looks like you have a non-ascii character in your source file, or > some data that is in your database. > > Matt. > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=. > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.
Django Admin interface crashes with.
Hi Everyone, This is my first time posting but I have been using Django for about a year now and love it. I am having one problem that I can't solve though and it is taking too long so I thought I would ask and see if someone can help me. So I have a Admin interface that is crashing. The error that I am getting is: DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128). You passed in () Can anyone help with this -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.