Re: Problems specifying fields for admin inline

2009-02-25 Thread James Bennett
On Thu, Feb 26, 2009 at 2:30 AM, jeff wrote: > Wow, that's much simpler. They should list that option on the admin > documentation page. Many thanks! http://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-options "The InlineModelAdmin class is a subclass

Re: NetBeans IDE for Python

2009-02-25 Thread पुनित मदान
u dont need to move django ... but need to configure python path in project properties 2009/2/26 Amirouche aka Mouche > > It looks like they plan to give some love to django in the next > release > > http://wiki.netbeans.org/Python70Roadmap > > here is the

Re: Problems specifying fields for admin inline

2009-02-25 Thread jeff
Wow, that's much simpler. They should list that option on the admin documentation page. Many thanks! On Feb 25, 10:58 pm, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 1:51 AM, jeff wrote: > > > I'm trying to modify the default Site admin page to

Re: Problems specifying fields for admin inline

2009-02-25 Thread Alex Gaynor
On Thu, Feb 26, 2009 at 1:51 AM, jeff wrote: > > I'm trying to modify the default Site admin page to include an inline > model. Everything seems to be working fine except that no matter what > I try I can't get it to limit the fields displayed in the inline. When > I go to

Problems specifying fields for admin inline

2009-02-25 Thread jeff
I'm trying to modify the default Site admin page to include an inline model. Everything seems to be working fine except that no matter what I try I can't get it to limit the fields displayed in the inline. When I go to the site edit page in the admin, it shows the standard site fields as it

Re: Fwd: python sql query in django

2009-02-25 Thread Parthan SR
On Thu, Feb 26, 2009 at 2:24 AM, Jesse wrote: > > I have three statements: > publications = Publication.objects.filter(techpubcombo__technology=t) > publications2 = Publication.objects.filter(pathpubcombo__pathology=p) > publications3 =

Re: Modifying the default admin edit page for Sites

2009-02-25 Thread jeff
Worked like a charm. Thank you! On Feb 25, 6:07 pm, Alex Gaynor wrote: > On Wed, Feb 25, 2009 at 9:03 PM, jeff wrote: > > > Is there a good way to modify what fields are displayed on the edit > > page for a site (from django.contrib.sites)? I want to

Re: NetBeans IDE for Python

2009-02-25 Thread Amirouche aka Mouche
It looks like they plan to give some love to django in the next release http://wiki.netbeans.org/Python70Roadmap here is the pre-beta nb 7 http://bits.netbeans.org/download/6.7/m2/ their is a ruby column but no python ! Hell ! I wonder why ! Is ruby that mainstream ? can't try it myself now,

Re: NetBeans IDE for Python

2009-02-25 Thread Amirouche aka Mouche
On Feb 4, 10:54 pm, phillc wrote: > mine wasnt working exactly as you all described it... > > until i moved my django symlink to someplace else on my python path... > and it suddenly worked its really odd. uhh what do you mean ? > On Feb 3, 12:49 am, mrsixcount

Re: A solution for django/postgresql transaction problem

2009-02-25 Thread Karen Tracey
On Wed, Feb 25, 2009 at 10:29 PM, Sushant Sinha wrote: > > I am also facing the same problem. Here is the description of my > problem. The code tries to create a new user and emits an error when > an error happens: > > try: >user =

updated poll example to take points for each item, gives more than 1 to upack err

2009-02-25 Thread seamusjr
I am trying to modify the polls example from djangoproject.com to take a integer point value for each of the 1 thru 5 poll items instead of having a radio button where u select one. However, I am having problems with the views.py syntax. I changed the Choice obejct to be a Song object and

Re: A solution for django/postgresql transaction problem

2009-02-25 Thread Sushant Sinha
I am also facing the same problem. Here is the description of my problem. The code tries to create a new user and emits an error when an error happens: try: user = auth.models.User.objects.create_user(uname, email, password = passwd) except db.IntegrityError: htmldict['msg'] = 'Username

reload models module in manage.py shell

2009-02-25 Thread RustedInSeattle
Hi, Is there anyway I can reload my models in manage.py shell to pick up changes made to them? I have tried reload(), it returns without error however it doesn't pick up the updated source file. so now I have to restart the shell. and I have to do bunch of imports and other things to get to

reload models module in manage.py shell

2009-02-25 Thread RustedInSeattle
Hi, Is there anyway I can reload my models in manage.py shell to pick up changes made to them? I have tried reload(), it returns without error however it doesn't pick up the updated source file. so now I have to restart the shell. and I have to do bunch of imports and other things to get to

Re: avoiding a save when the form contains no new data

2009-02-25 Thread Margie
Hi Alex, Thanks for your reply. Yes, I had found and experimented with both has_changed() and changed_data(), but I found that they don't deal as I'd like with my case where my form contains fields that are not in the model. IE, using the Book example, if I have model Book(models.Model):

Re: checking if db is empty

2009-02-25 Thread Jacob Kaplan-Moss
On Wed, Feb 25, 2009 at 5:23 PM, Russell Keith-Magee wrote: > There isn't a simple 'is_my_database_empty' command that returns > true/false. Actually, "SELECT COUNT(*) FROM pg_tables WHERE schemaname = 'public'" does pretty well. But Russ is right that this isn't the

Re: Anybody had any problems increasing the length of a varchar field in PostgreSQL?

2009-02-25 Thread Jacob Kaplan-Moss
On Wed, Feb 25, 2009 at 5:16 PM, bobhaugen wrote: > This is probably something that lots of people do all the time, but > this will be my first such change on a production Django + PostgreSQL > installation, so I thought I'd ask. For the record, it works fine. However,

Re: Modifying the default admin edit page for Sites

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 9:03 PM, jeff wrote: > > Is there a good way to modify what fields are displayed on the edit > page for a site (from django.contrib.sites)? I want to have the page > include inline editing for a model that has a ForeignKey to Sites. > > Is there a way

Modifying the default admin edit page for Sites

2009-02-25 Thread jeff
Is there a good way to modify what fields are displayed on the edit page for a site (from django.contrib.sites)? I want to have the page include inline editing for a model that has a ForeignKey to Sites. Is there a way to change the django.contrib.admin.ModelAdmin class for the Site model? Do I

Can a custom profile reference User's 'first_name' and 'last_name' attrs?

2009-02-25 Thread Stephen Waterbury
I'm using django-registration and django-profiles, and I've created an app-specific profile and subclassed RegistrationForm to populate various profile fields during the registration process. The User class has attributes 'first_name' and 'last_name' that I'd like to access from my customized

Model and Validation Confusion - Looking for advice.

2009-02-25 Thread Ty
I'm new to Python and Django, and I'd like some advice on how to layout the code I'd like to write. I have the model written that allows a file to be uploaded. In the models save method I'm checking if the file has a specific extension. If it has an XML extension I'm opening the file and

Re: Versioning/revisioning content (a la Mediawiki)

2009-02-25 Thread Kevin Teague
On Feb 25, 3:33 pm, Horst Gutmann wrote: > Or you could leave the versioning to dedicated tools like bzr and git > and use django-rcsfield :-) > > http://code.google.com/p/django-rcsfield/ > I'm not sure what you gain from using a VCS for storing versions? They're

Re: avoiding a save when the form contains no new data

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 7:55 PM, Margie wrote: > > Say I create a form that reflects the current state of an object. The > user can edit that form, and when they click 'save', I get back the > new, possibly edited, values via the POST. In my POST code I do > something

avoiding a save when the form contains no new data

2009-02-25 Thread Margie
Say I create a form that reflects the current state of an object. The user can edit that form, and when they click 'save', I get back the new, possibly edited, values via the POST. In my POST code I do something like this: postDict = request.POST.copy() bookForm = BookForm(postDict,

Eager Fetching

2009-02-25 Thread saxon75
I'm having an issue where my templates are taking a really long time to load, and it looks like the problem is that a lot of database calls are made inside the template. This seems like it would be easy enough to fix, but I have kind of an odd setup with my model relationships that seems to be

Re: Versioning/revisioning content (a la Mediawiki)

2009-02-25 Thread Horst Gutmann
Or you could leave the versioning to dedicated tools like bzr and git and use django-rcsfield :-) http://code.google.com/p/django-rcsfield/ -- Horst On Thu, Feb 26, 2009 at 12:29 AM, Scott Newman wrote: > I'm creating an app similar to the flatpages contribution that will

Versioning/revisioning content (a la Mediawiki)

2009-02-25 Thread Scott Newman
I'm creating an app similar to the flatpages contribution that will store the simple content for a page. When I save the data, I'd like to automatically create a previous revision so it can be reverted back if necessary. (multiple admins will be editing content) Does anyone have a strategy they

Re: checking if db is empty

2009-02-25 Thread Russell Keith-Magee
On Thu, Feb 26, 2009 at 4:24 AM, knight wrote: > > Hi, > > I'm using postgres database in my Django application. > Is there a way to check if the database is empty from my models.py? (I > mean before the first syncdb) There isn't a simple 'is_my_database_empty' command that

Anybody had any problems increasing the length of a varchar field in PostgreSQL?

2009-02-25 Thread bobhaugen
This is on a populated production database. Want to increase a models.CharField from max_length=128 to 255. This is probably something that lots of people do all the time, but this will be my first such change on a production Django + PostgreSQL installation, so I thought I'd ask.

Re: Fwd: python sql query in django

2009-02-25 Thread Briel
You have two choices. Either you can add .exclude() using the __in to avoid get the duplicates in the first place. Or you could iterate over the 3 pubs and append them to a list with an if statement. Something like this: list = [] for pub in publications123: If pub not in list:

Model-specific admin templatetag template OR admin list multi-sort

2009-02-25 Thread Chris Czub
I am trying to customize the list view of one of my models in the admin to separate it into a few different tables for organization purposes. My model is an "order". The important fields for this problem are the user who placed the order, the date is was placed, the restaurant it was for, and

list_display_links wont accept a callable

2009-02-25 Thread Jay
Hey Guys: Wondering if I can get some advice/help. I'm trying to alter the admin in a simple way so that instead of the first column (by default) be linked to the change screen I want to create a callable property and use that as the change screen link. Here is my code: class

Re: Passing argument to Model.save via ModelForm

2009-02-25 Thread bretro...@gmail.com
Thanks, again. def save_model(self, request, obj, form, change): obj.save(request.user.username) did the trick. i should've found that in the docs myself. On Feb 25, 3:58 pm, Alex Gaynor wrote: > On Wed, Feb 25, 2009 at 3:56 PM, bretro...@gmail.com >

Re: Incompatibility with FreeTDS/ODBC and Unicode on a MSSQL server?

2009-02-25 Thread kgingeri
Ok, I figured this out myself... I had to un-install all pre-installed odbc stuff - unixODBC (possibly iODBC as well, except it didn't seem to actually uninstall completely) and FreeTDS. I then got source and did configure/make/make installs of unixODBC first, then FreeTDS. This order is

Re: Passing argument to Model.save via ModelForm

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 3:56 PM, bretro...@gmail.com wrote: > > This is working fine in my custom interface, but the admin is broken > now since it is not passing the argument to the save() function. > > On Feb 23, 5:56 pm, "bretro...@gmail.com" wrote: >

Re: Passing argument to Model.save via ModelForm

2009-02-25 Thread bretro...@gmail.com
This is working fine in my custom interface, but the admin is broken now since it is not passing the argument to the save() function. On Feb 23, 5:56 pm, "bretro...@gmail.com" wrote: > Perfect. Thanks! > > On Feb 23, 5:51 pm, Alex Gaynor wrote: > > >

Re: Fwd: python sql query in django

2009-02-25 Thread Jesse
> I believe this would work: > > publications = Publication.objects.filter(techpubcombo__technology=t) > > Regards, > > -- > Christian Joergensenhttp://www.technobabble.dk Hello Christian, Thank you so much for your answer. I have been struggling with the users group to get that syntax (I must

template ifequal substitution of value

2009-02-25 Thread Jesse
I have two date fields: startdt and enddt. The template code that works is: {% ifequal items.startdt items.enddt %} this says startdt and enddt are the same (as seen in the template) {% endifequal %} In postgres I have a date value in the startdt and enddt fields stored like this:

finally found Free Django Hosting

2009-02-25 Thread xankya
I finally got django hosted on free. Thanks to joyent.us, google, google-groups and joyent community. Being a newbie, I am too happy to have come so far. I gotta go much farther. For those who wanna check: http://dac402c1.fb.joyent.us Thank you all

Databrowse pagination

2009-02-25 Thread saeb
My admin webpage gets stuck and often fails on large database when I use Databrowse. I think it needs pagination, is there a way to get around this? I really like the Databrowse feature as a read-only tool, it would be great if someone helps me out in this issue. Thanks, saeb

checking if db is empty

2009-02-25 Thread knight
Hi, I'm using postgres database in my Django application. Is there a way to check if the database is empty from my models.py? (I mean before the first syncdb) Thanks, Arshavski Alexander. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: optional parameter url

2009-02-25 Thread Raffaele Salmaso
Adonis wrote: > (r'^appname/mainpage/(?P.*)$', 'django.views.static.serve', > {'document_root': '/mesa'}), this takes *everything* as 'path' > (r'^appname/mainpage/(?P\d+)/(?P.*)$', > 'django.views.static.serve', {'document_root': '/mesa'}), this takes only digits as 'xexe', but it never get

Re: linking to files from database

2009-02-25 Thread Tonu Mikk
Alex Gaynor wrote: > > > On Tue, Feb 24, 2009 at 10:41 AM, Daniel Roseman > > > wrote: > > > On Feb 24, 2:36 pm, Tonu Mikk > wrote: > > > Then I save it with the above method.

Re: Searching a list of Q

2009-02-25 Thread Kevin Audleman
Ah, gotcha. Maybe django should include a iin function =) Kevin On Feb 25, 10:37 am, Alex Gaynor wrote: > On Wed, Feb 25, 2009 at 1:34 PM, Kevin Audleman > wrote: > > > > > > > What about the following? > > > qset = Q(author__in=[u"Foo",

Re: Searching a list of Q

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 1:34 PM, Kevin Audleman wrote: > > What about the following? > > qset = Q(author__in=[u"Foo", u"Bar"]) > > > Kevin > > On Feb 25, 10:03 am, Peter Bengtsson wrote: > > This works: > > > > >>> from django.db.models import Q > >

Re: Fwd: Re: Admin/Application Integration and Automatic Actions

2009-02-25 Thread Paul Waldo
> On Feb 25, 2:41 pm, Paul Waldo p...@waldoware.com> wrote: > >> Hi all, >> >> I am brand new to Django, so forgive me if my questions are naive :-) >> >> I have read the tutorials and I'm starting my first learning >> application. This is a small time-tracking application. As you can >>

Re: Searching a list of Q

2009-02-25 Thread Kevin Audleman
What about the following? qset = Q(author__in=[u"Foo", u"Bar"]) Kevin On Feb 25, 10:03 am, Peter Bengtsson wrote: > This works: > >  >>> from django.db.models import Q >  >>> qset = Q(author__iexact=u"Foo") | Q(author__iexact=u"Bar") >  >>> Books.objects.filter(qset) > >

Re: optional parameter url

2009-02-25 Thread Kevin Audleman
I think you're missing the trailing slash in your URL's. Should be: (r'^appname/mainpage/(?P.*)/$', 'django.views.static.serve', {'document_root': '/mesa'}), (r'^appname/mainpage/(?P\d+)/(?P.*)/$', 'django.views.static.serve', {'document_root': '/mesa'}), Mind you, I don't know if this will

Re: Searching a list of Q

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 1:03 PM, Peter Bengtsson wrote: > > This works: > > >>> from django.db.models import Q > >>> qset = Q(author__iexact=u"Foo") | Q(author__iexact=u"Bar") > >>> Books.objects.filter(qset) > > But what if the list of things I want to search against is a

Searching a list of Q

2009-02-25 Thread Peter Bengtsson
This works: >>> from django.db.models import Q >>> qset = Q(author__iexact=u"Foo") | Q(author__iexact=u"Bar") >>> Books.objects.filter(qset) But what if the list of things I want to search against is a list. E.g. >>> possible_authors = [u"Foo", u"Bar"] ??? I have a solution but it's

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 12:52 PM, NoviceSortOf wrote: > > Briel, I see the userfriendlyness or even consideration in what > you are saying, looking at the specs, actually users > checkboxing us their interests is an optional part of > registration process, we still we

Re: Admin/Application Integration and Automatic Actions

2009-02-25 Thread rajeesh
> > > * Is there a standard model for running automated tasks?  I was thinking > > about a cron task that uses lynx or curl to call a URL that performs the > > task, but that gets kind of ugly.  Is there a better way to do this? > What about the django-cron? Just check it out here:

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
Briel, I see the userfriendlyness or even consideration in what you are saying, looking at the specs, actually users checkboxing us their interests is an optional part of registration process, we still we need to do it somehow. Gordy, I see the logic in what you are saying, although unclear on

Re: InlineModelAdmin objects question

2009-02-25 Thread Kevin Audleman
First of all, are you using the AUTH_PROFILE_MODULE methodology? See the documentation here: http://docs.djangoproject.com/en/dev/topics/auth/?from=olddocs#storing-additional-information-about-users If you've defined a foreign key on your People model, I would guess you're not. This is

Re: Authenticating django users from Apache using cookies

2009-02-25 Thread Karantir
http://www.djangosnippets.org/snippets/62/ --~--~-~--~~~---~--~~ 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

Re: InlineModelAdmin objects question

2009-02-25 Thread Jamie Richard Wilson
This might answer your question: http://groups.google.com/group/django-developers/browse_thread/thread/45bce29f331acb5e Kevin Coyner wrote: > I am using the Auth system in django and have a separate app People > that I'm using to keep more detailed info (i.e. address, phone, etc) > on my

Admin interface for user management

2009-02-25 Thread Jamie Richard Wilson
I'm working on an online newsroom project and have a need to extend the user profile beyond the included basics. I also need to grant permissions to allow the online editorial staff to create new user accounts to associate with new content if the account doesn't already exist. In most cases there

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread gordyt
You could try something like this (in models.py) from django.db import models from django.contrib.auth.models import User # Create your models here. class Interest(models.Model): label = models.CharField(max_length=64) users = models.ManyToManyField(User, blank=True) def

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
This is what we have been doing for over 10 years now via the internet, and over 20 years via mail and telephone... its a management requirement that will not change. The questions are broken into sections easy to navigate on the page, the 'questions' in this instance is simply having them check

cache backend file: No need for cull

2009-02-25 Thread Thomas Guettler
Hi, I profiled my application and discovered, that it spends a lot of time in _cull() and get_num_entries() in the file cache backend. It is very easy to have a cron job which cleans the directory by deleting all files older than N minutes. There is no need to cull during request time. I

Re: Search Professional Webdesign Company in Berlin (Germany)

2009-02-25 Thread rknobelspies
Should have put in the pointer to my own profile though: http://djangopeople.net/reinhard/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Admin/Application Integration and Automatic Actions

2009-02-25 Thread Daniel Roseman
On Feb 25, 2:41 pm, Paul Waldo wrote: > Hi all, > > I am brand new to Django, so forgive me if my questions are naive :-) > > I have read the tutorials and I'm starting my first learning > application.  This is a small time-tracking application.  As you can > imagine, the

Re: Search Professional Webdesign Company in Berlin (Germany)

2009-02-25 Thread rknobelspies
Yep! we don´t push our django projects publicly yet because we want to leave that for the relaunch of our then django-based site, but we are happily using the framework of choice for a range of different projects from brochureware like sites to larger community portals:

Re: Dealing with multiple M2Ms

2009-02-25 Thread Jeff Gentry
> and suppose "obj_a" is your given A instance. Then I suspect this is the > type of queryset you're after: > C.objects.filter(Q(to_a=obj_a) | Q(to_b__to_a=obj_a)) This did the trick Malcolm, thanks. I'm not sure what was hanging me up as I could swear I had tried this one already, but

Admin/Application Integration and Automatic Actions

2009-02-25 Thread Paul Waldo
Hi all, I am brand new to Django, so forgive me if my questions are naive :-) I have read the tutorials and I'm starting my first learning application. This is a small time-tracking application. As you can imagine, the majority of the application is basic CRUD data entry. The other

Search Professional Webdesign Company in Berlin (Germany)

2009-02-25 Thread Thomas Bechtold
Hi, i'm searching a webdesign company from berlin/germany which use django. Anybody here from Berlin? Cheers, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Beginners question

2009-02-25 Thread Daniel Roseman
On Feb 25, 12:33 pm, wegi wrote: > Hi all, > I'm new to django, made my way through the tutorial and parts of the > remaining documentation. But one thing remains unclear to me. Let's > assume I have two apps news and links which just manage these type of >

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread Briel
It's really not a good practice to ask 190 yes/no questions upon registration. A lot of the answers will most likely be random as very few would want to spend time answering 190 questions to complete a registration. My advice would be to not have that many fields. On 25 Feb., 13:02, NoviceSortOf

Re: Beginners question

2009-02-25 Thread Alex Gaynor
On Wed, Feb 25, 2009 at 7:33 AM, wegi wrote: > > Hi all, > I'm new to django, made my way through the tutorial and parts of the > remaining documentation. But one thing remains unclear to me. Let's > assume I have two apps news and links which just manage these

Re: How can one template extend multiple templates?

2009-02-25 Thread lzhshen
Take a poll application for example. There is a "poll_result.html" template that will be used in different templates, such as latest_polls.html and hottest_polls.html. How can I achieve that? In "poll_result.html", can I add both " {% extends "latest_polls.html" %}" and "" {% extends

Re: admin is not allowing users to see the main page

2009-02-25 Thread Shantanoo
On Wed, Feb 25, 2009 at 15:02, Kenneth Gonsalves wrote: > > hi, > > I have a django site which has been working well, with an app name 'web' - > recently I some changes in the database and now find that all users > (including > superusers) are blocked from viewing web in

Beginners question

2009-02-25 Thread wegi
Hi all, I'm new to django, made my way through the tutorial and parts of the remaining documentation. But one thing remains unclear to me. Let's assume I have two apps news and links which just manage these type of objects. I have a view and a template for displaying a list of the 5 newest

Re: Faster Database?

2009-02-25 Thread Paul Nema
One option is to create a new table that is a mirror of the target table except the new table should NOT have any of the keys enabled. Using a bulk load tool add the data to the new table. Then add the keys to the new table. Drop the old table and rename the new table to the original target

Re: model inheritance without a new database table

2009-02-25 Thread Ryan Kelly
Thanks again for your feedback on this Malcolm, I've created the following ticket in Trac: Proxy models: subclass a model without creating a new table http://code.djangoproject.com/ticket/10356 Cheers, Ryan -- Ryan Kelly http://www.rfk.id.au | This message is digitally

Re: Static file serve with prior authentication?

2009-02-25 Thread John Hensley
On Feb 23, 2009, at 5:20 PM, Graham Dumpleton wrote: > The approach for mod_python documented in that link, and equivalent > for mod_wsgi, are only good for HTTP Basic authentication, it is no > good if you want the page to be authenticated using HTML form/cookie > based authentication as Django

optional parameter url

2009-02-25 Thread Adonis
Hello, I am having some trouble serving static files when i try to pass an optional parameter. For url: appname.mainpage/, the static files work fine For url: appname.mainpage/10/, the static files are not read. ** url.py (r'^appname/mainpage/(?P.*)$', 'django.views.static.serve',

Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
We have over 100 Yes/No questions asked in our registration process These questions are mostly static (requiring minor modification every 5-10 years), we don't especially need a dynamic data driven solution. These Yes/No questions are basically the user informing us of their specific interests

database trigger or what ?

2009-02-25 Thread marco sedda
Hi, i'm newbie in django and i'm writing a model to record a general booking in a particular date for a particular item The booking model looks like this: class Booking(models.Model): item = models.ForeignKey(Item) startDate = models.DateField("From") endDate =

Re: Faster Database?

2009-02-25 Thread Tim Chase
> I am using django+MySql. > My job involves to write a huge number of products codes into the > MySql, code such as: ABCDEFGHI10, it is typically between 1 million up > to 50 million codes within 1 file, which need to be uploaded/ > downloaded into MySql. > > The problem for this is it takestoo

Re: Faster Database?

2009-02-25 Thread Sebastian Bauer
W dniu 25.02.2009 11:53, bruno desthuilliers pisze: > On 25 fév, 11:00, Sean wrote: > >> Hi, >> >> I am using django+MySql. >> My job involves to write a huge number of products codes into the >> MySql, code such as: ABCDEFGHI10, it is typically between 1 million up >>

Re: Faster Database?

2009-02-25 Thread bruno desthuilliers
On 25 fév, 11:00, Sean wrote: > Hi, > > I am using django+MySql. > My job involves to write a huge number of products codes into the > MySql, code such as: ABCDEFGHI10, it is typically between 1 million up > to 50 million codes within 1 file, which need to be uploaded/ >

Faster Database?

2009-02-25 Thread Sean
Hi, I am using django+MySql. My job involves to write a huge number of products codes into the MySql, code such as: ABCDEFGHI10, it is typically between 1 million up to 50 million codes within 1 file, which need to be uploaded/ downloaded into MySql. The problem for this is it takestoo much

admin is not allowing users to see the main page

2009-02-25 Thread Kenneth Gonsalves
hi, I have a django site which has been working well, with an app name 'web' - recently I some changes in the database and now find that all users (including superusers) are blocked from viewing web in the main admin page. They can view and edit other pages under 'web' by typing in the url.