Re: Need help with extending admin templates

2006-12-01 Thread Xian
On Dec 1, 11:27 pm, "Jim Fritchman" <[EMAIL PROTECTED]> wrote: > {%extends 'admin/change_form' %} > > {% block branding %} Customised title {% endblock %} > {% block after_field_sets %} Some interesting information after the > field sets {% endblock %} > > and saved it in the file > /templates/ad

(django) RE credit cards for offline processing

2006-12-01 Thread Carl Holm
I can also recommend TrustCommerce - they have a reasonable minimum monthly fee. - CL Joshua "jag" Ginsberg wrote: > Don't implement a pub/priv key pair system -- just use GnuPG. And I > would strongly recommend against having the decryption of this data > anywhere near the same machine as the

any one used this? seem better than fastcgi

2006-12-01 Thread SP Z
http://fastcgi.coremail.cn/ What is mod_fcgid? It is a binary compatibility alternative to Apache module mod_fastcgi. mod_fcgid has a new process management strategy, which concentrates on reducing the number of fastcgi server, and kick out the corrupt fastcgi server as soon as possible. Goal

Need help with extending admin templates

2006-12-01 Thread Jim Fritchman
I have read the following page http://code.djangoproject.com/wiki/NewAdminChanges and it states ... Admin converted to separate templates ¶ The admin is now rendered using separate templates. These can be overloaded, meaning the admin is a bit more easily customizable. An example is change fo

Re: Support Ticket System

2006-12-01 Thread Bret Walker
On 12/1/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 1. Mark fields as optional. > > I don't like this because there will be lots of null values > > inserted into the database. I also don't think that this would be > > followi

Re: Database error only for certain models?

2006-12-01 Thread markguy
Unfortunately, this is happening even after I dropped the table and re-sync'd. That's pretty much my SOP after changing a model, to avoid earlier brushes with what you describe. Appreciate the reply in any case! --~--~-~--~~~---~--~~ You received this message be

Re: Problems with MEDIA_URL

2006-12-01 Thread Nathan R. Yergler
Replying to myself, in case anyone else runs into this. The problem, well, cause of frustration was in the way that get_FIELD_url() constructs it's return call. It uses urlparse.urljoin to join MEDIA_URL to the upload_to path. When MEDIA_URL does not end in a slash, urljoin strips off the final

Re: Database error only for certain models?

2006-12-01 Thread Nathan R. Yergler
I've seen something similar to this happen when I run syncdb, change a model slightly, and then forget to drop the tables and re-sync. So Django finds the database fine, and only the tables relating to the changed model cause problems. Hope that helps, Nathan On Sat, 2006-12-02 at 01:48 +,

Database error only for certain models?

2006-12-01 Thread markguy
After running ./manage.py syncdb, I have three tables/objects. Admin index page shows all three. Clicking on two of those tables results in an error that reads (in part): "Something's wrong with your database installation. Make sure the appropriate database tables have been created, and make sure

Re: Support Ticket System

2006-12-01 Thread Adrian Holovaty
On 12/1/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Not at all. The admin interface is intended as just that - an _admin_ > interface. A way of getting at a raw model definition, and tweaking > the data. It is intended to get you off the ground quickly, not be a > permanent fixture of you

Re: Database question

2006-12-01 Thread Todd O'Bryan
Do both. Have one table for entries, but include a ForeignKey to a class/table called Ministry (or Section, or Category, or whatever). Then all your blog entries will be in one big table, but you will be able to request only the ones that fit the category you're interested in. To create a new pag

Re: Support Ticket System

2006-12-01 Thread Russell Keith-Magee
On 12/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > If I have to write my own interface, then what is the point of > the auto-generated one? This seems to goes against the philosophy of > Django. If this is the case, it would also seem that the admin > interface is so rudimentary

Re: Support Ticket System

2006-12-01 Thread James Bennett
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 1. Mark fields as optional. > I don't like this because there will be lots of null values > inserted into the database. I also don't think that this would be > following SQL best practices. Well, even in PHP you were going to have

New Django-powered site: pegasusnews.com

2006-12-01 Thread Jeremy Dunck
Hey all, We've just launched pegasusnews.com, which is a transmogrification of ye olde texasgigs.com site. It's running on a hacked up version of Ellington and Django 0.91 + a few bug and feature backports. We'll try to get up to trunk Real Soon Now, but for now, it's up, it's fast, and it

Re: Database question

2006-12-01 Thread Kenneth Gonsalves
On 01-Dec-06, at 8:05 PM, Eric Lake wrote: >> 1) If it is all in one table then doing a search for information >> on the >> entire site would be easier. >> 2) If they are separated then adding a new page later would be >> done by >> just adding a new class to the model.py. i would go for on

Support Ticket System

2006-12-01 Thread [EMAIL PROTECTED]
Disclaimer: This is my first foray into Django. I'm trying to set up a support ticketing system for a small IT department. Initially, I want only to use the auto-generated admin interface. IT staff members will be Django User staff members. I want to have Ticket items and EndUser items. EndUs

Re: Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-01 Thread Russell Keith-Magee
On 12/2/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > But isn't it also dangerous to code (or not code) for future cases that > may or may never come? If a non-relational database backend isn't > anywhere on the current horizon, why not code aggregates and groups to > the current usage and break

Highload website database architecture

2006-12-01 Thread a
Hi, I am building a web app backed by database postgresql and currently the site is under a humongous torrent of hits. I have a question regarding the database backend config. The database folder has a file called postgresql.cons where we can specify no of active connections to the database -N w

Re: Extending User

2006-12-01 Thread James Bennett
On 12/1/06, scum <[EMAIL PROTECTED]> wrote: > >>> a = User() > >>> a.save() > >>> a.get_profile() > Traceback (most recent call last): > ... > DoesNotExist: UserProfile matching query does not exist. Well, two things are going wrong here. 1. You have to explicitly instantiate and save a UserProf

Re: Extending User

2006-12-01 Thread Jay Parlar
On 12/1/06, scum <[EMAIL PROTECTED]> wrote: > > Trying to extend the user group using this model code: > > class UserProfile(models.Model): > user = models.ForeignKey(User, unique=True, > edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1, > max_num_in_admin=1,num_extra_on_chang

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Brian Beck
Ivan Sagalaev wrote: > Brian Beck wrote: > > I don't understand how this is related to the admin interface. > > Admin interface won't display a login page if you already have > request.user set to an existing user. (if I'm not mistaken :-) ). Yep, okay. I was referring to the case where the user

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Ivan Sagalaev
Brian Beck wrote: > I don't understand how this is related to the admin interface. Admin interface won't display a login page if you already have request.user set to an existing user. (if I'm not mistaken :-) ). > Anyway, > shouldn't it go after the standard auth middleware, so that > django.co

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Brian Beck
Brian Beck wrote: > I don't understand how this is related to the admin interface. Anyway, > shouldn't it go after the standard auth middleware, so that > django.contrib.auth.middleware doesn't clobber the request.user that > the middleware posted above sets? And you still need to take into > ac

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Brian Beck
I don't understand how this is related to the admin interface. Anyway, shouldn't it go after the standard auth middleware, so that django.contrib.auth.middleware doesn't clobber the request.user that the middleware posted above sets? And you still need to take into account the admin interface's

Re: How to save a FileField in a custom manipulor?

2006-12-01 Thread akaihola
Found one tutorial: http://predius.org/blog/2006/09/11/uploading-files-on-django/ --~--~-~--~~~---~--~~ 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@googlegroup

Re: How to save a FileField in a custom manipulor?

2006-12-01 Thread akaihola
I'd be grateful for any example code showing how this was intended to work, too. --~--~-~--~~~---~--~~ 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.

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Ivan Sagalaev
Brian Beck wrote: > I just wanted to add that if you want to use this method in combination > with the bundled admin interface, you're gonna have to intercept any > admin requests and do the authentication ... which is achieved by placing this middleware before standard auth middleware. --~--~-

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Brian Beck
I just wanted to add that if you want to use this method in combination with the bundled admin interface, you're gonna have to intercept any admin requests and do the authentication so that it won't show the login form. Check the latest post in the CAS authentication thread, the middleware code t

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Ivan Sagalaev
Ivan Sagalaev wrote: > request.user = User.objects.get_or_create( >username=username, >defaults={...}) This one should be: request.user, created = User.objects.get_or_create(...) `get_or_create` returns an object and a flag if it was newly created. --~--~--

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Joseph Kocherhans
On 12/1/06, dchandek <[EMAIL PROTECTED]> wrote: > > I've spent a few hours digging around, but can't seem to find a > straightforward answer ... > > I have an Apache module that does user authentication and sets the > REMOTE_USER variable with the user name. This is completely independent > of Dja

Feather in Django's cap

2006-12-01 Thread Gabriel Gunderson
This link mentions Google's use of Django... http://www.niallkennedy.com/blog/archives/2006/11/google-mondrian.html "The Mondrian tool creates a much better workflow by creating task-specific dashboards, in-line commenting, well-tracked statistics, and more. The application is built on top of Py

Re: Auto-login with REMOTE_USER

2006-12-01 Thread Ivan Sagalaev
dchandek wrote: > I've looked at authentication backends and middleware, but it looks > like the default Django installation expects users to login through a > Django form. Default system insist on storing logged user credentials in a session (though they can be of any nature). In your case you

Extending User

2006-12-01 Thread scum
Trying to extend the user group using this model code: class UserProfile(models.Model): user = models.ForeignKey(User, unique=True, edit_inline=models.TABULAR, num_in_admin=1,min_num_in_admin=1, max_num_in_admin=1,num_extra_on_change=0) hours = models.FloatField( max_digits=8, dec

Auto-login with REMOTE_USER

2006-12-01 Thread dchandek
I've spent a few hours digging around, but can't seem to find a straightforward answer ... I have an Apache module that does user authentication and sets the REMOTE_USER variable with the user name. This is completely independent of Django and Python. I want Django to "trust" the REMOTE_USER val

Re: Apache ErrorDocument Question.

2006-12-01 Thread Waylan Limberg
Paul Childs wrote: > It looks like I am going down the wrong path. I think that what I > observed was by design since Django is handling the request. > > I think the question should be... > > How do I handle the 413 error within Django? > > Any help would be greatly appreciated. > > You'll like

Re: using manipulators without defining fields again

2006-12-01 Thread Ivan Sagalaev
Milan Andric wrote: > I was told in IRC to extend AutomaticManipulator. But I don't really > know what this means in terms of Django/Python code. Basically you create a manipulator class inherited from an automatic manipulator of a model. It will create all the needed FormFields based on model

Re: Questions about clustering and fail over

2006-12-01 Thread Yamagami
Thanks Javier! This is fantastic news. Harel On Dec 1, 7:44 am, Javier Rivera <[EMAIL PROTECTED]> wrote: > El Jueves, 30 de Noviembre de 2006 23:42, Yamagami escribió: > > > 2. How are the sessions stored? Is it RAM? disk? DB perhaps?They are stored > > in the database, in the table django_sessi

Re: Apache ErrorDocument Question.

2006-12-01 Thread Paul Childs
It looks like I am going down the wrong path. I think that what I observed was by design since Django is handling the request. I think the question should be... How do I handle the 413 error within Django? Any help would be greatly appreciated. --~--~-~--~~~---~--~

Re: [validators] - access to object.id field

2006-12-01 Thread Ivan Sagalaev
Marcin Jurczuk wrote: > Hello, > I'm writing my own validator based on shipped with django and wondering > how get validated object.id field ? Validators come in two varieties: those linked to field definitions in models and those that linked to field definitions in custom manipulators. With fi

Re: Help with Contact Form

2006-12-01 Thread Jorge Gajon
On 11/30/06, luxagraf <[EMAIL PROTECTED]> wrote: > > Hello all I have a quick question, I just whipped up a custom > manipulator for a contact form and, following the suggestion in the > django docs, I'm using a > > HttpResponseRedirect("/contact/thankyou/") > > to get rid of the post data, but wh

Re: Re: How should I store credit cards for offline processing

2006-12-01 Thread Jay Parlar
On 12/1/06, Noah <[EMAIL PROTECTED]> wrote: > > I'm not in charge of such decisions. I only write the code. Doesn't remove the moral obligation on your part to do something about it, or refuse the work. Jay P. --~--~-~--~~~---~--~~ You received this message beca

Re: import problems?

2006-12-01 Thread James Bennett
On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Over in the functions_db.py file, I need access to the Object class. So > I'm doing a 'from myproject.apps.objects.models import Object'. Is it named 'Object' or 'object'? If it's the latter, you may run into even more serious problems do

Re: How should I store credit cards for offline processing

2006-12-01 Thread Noah
I'm not in charge of such decisions. I only write the code. --~--~-~--~~~---~--~~ 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 fr

Re: import problems?

2006-12-01 Thread Ivan Sagalaev
[EMAIL PROTECTED] wrote: > Sorry if this is poorly explained, but how do you efficiently get > around circular dependency problems like this in Python? I'd hate to > have to drop my import of functions_db to the individual methods on > "Object" to avoid whatever collision is happening. Another (i

Re: How should I store credit cards for offline processing

2006-12-01 Thread Waylan Limberg
Noah wrote: > It's only for a couple weeks or so until actual online processing > without storing the cards is implemented. It's also fairly likley there > won't be a single order taken IMO... > At the very least make sure you fully disclose that to any potential customers up front. Of course,

Re: Simple CAS 1.0 authentication

2006-12-01 Thread Brian Beck
Alright, I fixed things up a bit and went for the middleware approach. The CAS module can now intercept all admin interface requests and do the appropriate authentication routine instead of showing the login form. Everything can now be configured in settings.py as well so there's no need to muck

Re: How should I store credit cards for offline processing

2006-12-01 Thread Noah
It's only for a couple weeks or so until actual online processing without storing the cards is implemented. It's also fairly likley there won't be a single order taken IMO... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: How should I store credit cards for offline processing

2006-12-01 Thread Noah
I figured I'd use GPG --~--~-~--~~~---~--~~ 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 [EMAIL PR

Re: Why not Django

2006-12-01 Thread Fredrik Lundh
Victor Ng wrote: >> that might be true for the US deficit, but for more normal money >> amounts, that's not really true at all. > > Basic currency conversion for Euro would require 5 decimal places of > precision with no rounding involved: > http://europa.eu.int/ISPO/y2keuro/docs/ep22-en.pdf um

Re: Database question

2006-12-01 Thread Eric Lake
That sounds good. I will start playing around with this and see if I can get something up with it. Thanks again for all of your help. On Dec 1, 12:52 pm, "Guillermo Fernandez Castellanos" <[EMAIL PROTECTED]> wrote: > > It almost seems that I could do away with the MINISTRY_CHOICES piece > > and j

Re: General File Upload Questions.

2006-12-01 Thread Istvan Albert
> Can anyone comment on the upload limitations of Django? alas the situation is hopeless, the fix itself is very simple, unfortunately the patch that was supposed to add this http://code.djangoproject.com/ticket/2070 has degenerated into adding a completely unrelated feature (progress indicato

import problems?

2006-12-01 Thread [EMAIL PROTECTED]
This is somewhat of a general Python question I guess, but I've only noticed it when playing with Django. I've got a class named 'Object' that resides on myproject/apps/objects/models.py, this has some class methods that are in another module located at myproject/functions_db.py. So I'm doing an

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-01 Thread Jacob Kaplan-Moss
On 12/1/06 11:40 AM, Rob Hudson wrote: >> 4 - If you search the archives (user and developer), you will find several >> discussions on aggregate functions. group_by() and having() (or >> pre-magic-removal analogs thereof) have been rejected previously on the >> grounds that the Django ORM is not i

Re: Inheritance through a ForeignKey field

2006-12-01 Thread phess
I just saw the source of all my problems. This is the code for the Article class: class Article(models.Model): """This class defines an Article, with links to: - a Magazine, - a Section (which depends on the Magazine), and - an Issue (which also depends on the Magazine)""" def __

Re: Database question

2006-12-01 Thread Guillermo Fernandez Castellanos
> It almost seems that I could do away with the MINISTRY_CHOICES piece > and just use the tags because if a tag name does not already exist the > admin interface will allow one to be created from the Entries page. If > that is the case then if I want a page to only display the posts for > music (a

Re: Database question

2006-12-01 Thread Eric Lake
OK. So does the following code look like it would work the way that we have been discussing? from django.db import models from django.contrib.auth.models import User # Create your models here. MINISTRY_CHOICES = ( ('MUS', 'music'), ('SIN', 'singles'),

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-01 Thread Rob Hudson
Thanks for the reply, Russell. It's obviously a lot more complex and detailed than simply adding a min() where count() is. :) A couple thoughts... > 4 - If you search the archives (user and developer), you will find several > discussions on aggregate functions. group_by() and having() (or > pr

Re: Help with Contact Form

2006-12-01 Thread Paul Childs
Assuming that you are using the example exactly... Off-the-top-of-my-head try something like: return render_to_response('thankyou.html', {'my_form_data': new_data}) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Can't start server with runfcgi

2006-12-01 Thread jacobm
I know the builtin http server isn't intended for production use, but does anyone know what problems I would likely run into if I proxied dynamic content URI's from apache to the django dev http server? This particular project is going to be very lightly used... typically only a handful of reques

Re: manage.py can't see project

2006-12-01 Thread Guillermo Fernandez Castellanos
ok... Try to do a ln -s (or simply move) of your django directory to the /usr/local/lib/python2.4/site-packages directory, so you have: /usr/local/lib/python2.4/site-packages/django/ Usually it's the place to put it. Maybe it's that... G On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Re: manage.py can't see project

2006-12-01 Thread [EMAIL PROTECTED]
1) django is at ~/lib/python2.4/django 2)Yes, but I was on dreamhost fcgi setup. 3 & 4) Pretty sure... I copied it over complete, and like I said, it seems as though my models and templates are using it with no problems, it's just manage.py that's cranky --~--~-~--~~~

RE: How should I store credit cards for offline processing

2006-12-01 Thread Hull, Dave
If you can avoid it at all, don't store any portion of the credit card holder data. The Payment Card Industry Security Standards doc has all sorts of wonderful regulations you must follow for dealing with CCs. There's some great reading here: https://pcisecuritystandards.org/ If you're able to o

Re: manage.py can't see project

2006-12-01 Thread Guillermo Fernandez Castellanos
Where is your django installation at the moment? Where you able to manage.py shell before the migration? Are you sure you have all the __init__.py's necessary? Are you sure it is not a permission issue? G On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Yes, I have something very muc

Re: Database question

2006-12-01 Thread Guillermo Fernandez Castellanos
> Thank you. That is what I was thinking but I wanted to get others > opinions first. This will also help stay with the DRY ideals. I guess > the real difficult part would be if a new ministry is added to the > list. If I understand how it works I would have to make changes in the > model and then

Apache ErrorDocument Question.

2006-12-01 Thread Paul Childs
Sorry if this is a tad off topic... I have Django 0.95 up and running with no problems under Apache2 with flatpages installed and also running fine. I have limited uploads by adding the setting LimitRequestBody 5242880 to the httpd.conf file, which works great. If I try to upload a large file I

Re: Database question

2006-12-01 Thread Eric Lake
Thanks for the comments. I am still in a planning phase and new to django as well. I will have to wrap my head around the tag stuff but these are great ideas. On Dec 1, 11:13 am, "Guillermo Fernandez Castellanos" <[EMAIL PROTECTED]> wrote: > > Thank you. That is what I was thinking but I wanted t

Re: manage.py can't see project

2006-12-01 Thread [EMAIL PROTECTED]
Yes, I have something very much like that in my apache conf. Yes, I have mod_python and apache2. I can't run python manage.py * cause I get ImportError: No module named django.core.management I'm pretty sure no file was corrupted. It appears everything is finding and using nesh.thumbnail with n

Re: Inheritance through a ForeignKey field

2006-12-01 Thread phess
Sorry, I forgot to actually *ask* the question. :) I'm able to get a list of Sections related to 'Linux Magazine', for example, with: validsections = magazine.section_set.all() This returns this list: [, ] # (so far I've created only these 2 sections) Is there a method to restrict the choices

Re: Inheritance through a ForeignKey field

2006-12-01 Thread phess
It did help. Thank you very much. But the situation has changed already. :\ I'd like the Admin pages to show me only the Sections and Issues that make sense for the Magazine I choose from the selectbox. So, this is how my model is (sort of): I have a Magazine class, an Issue class and a Section

Re: manage.py can't see project

2006-12-01 Thread Joshua \"jag\" Ginsberg
Comment out the statements that use the module throwing the ImportError, open the shell in manage.py, check your path, try to import by hand, and go from there. Do you have the proper __init__.py files for all modules? Do you have the right directories in your path? -jag On Wed, 2006-11-29 at 20

Re: manage.py can't see project

2006-12-01 Thread Guillermo Fernandez Castellanos
Ok... blind try. If your my_project is in /path/to/my_project, and you have your manage.py in that directory, tr adding those lines: import sys sys.path.append('/path/to) I have to manually add the parent directory to the sys.path in order to use my applications. G On 12/1/06, [EMAIL PROTECTE

Re: manage.py can't see project

2006-12-01 Thread Nicolas Steinmetz
[EMAIL PROTECTED] a écrit : > Please. Anyone... I just want to be able to use manage.py AND the > project! - are you sure that django is well installed on your server ? - In your apache conf, do you have something like : SetHandler mod_python PythonHandler dja

Re: Django inspectsb and varchar-fields in MySQL

2006-12-01 Thread Michael Radziej
Adrian Rochau schrieb: > Hello! > > I'm writing a frontend for a MySQL-based testsystem. I used inspectdb > to create my Django-models and many fields are guessed correct, but > every varchar-field has a length multiplyed by 3. Do you know why? UTF-8? Michael -- noris network AG - Deutschher

Re: How should I store credit cards for offline processing

2006-12-01 Thread Joshua \"jag\" Ginsberg
Don't implement a pub/priv key pair system -- just use GnuPG. And I would strongly recommend against having the decryption of this data anywhere near the same machine as the one that stores the encrypted cc#'s. For your online processing, I recommend using TrustCommerce and store the credit card

How should I store credit cards for offline processing

2006-12-01 Thread Noah
I'm working on a site who's not ready to do online processing with a gateway but they want to launch anyways. They would like a secure way to store the credit cards in the database. Does anyone have a good solution for this? I was thinking but I'd rather not have to write all the code to implemen

Re: Help with admin views

2006-12-01 Thread Jim Fritchman
Than you for your responses. --~--~-~--~~~---~--~~ 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 [E

Re: Database question

2006-12-01 Thread Chris Ryland
On Dec 1, 9:59 am, "Eric Lake" <[EMAIL PROTECTED]> wrote: > Thank you. That is what I was thinking but I wanted to get others > opinions first. This will also help stay with the DRY ideals. I guess > the real difficult part would be if a new ministry is added to the > list. If I understand how it

Django inspectsb and varchar-fields in MySQL

2006-12-01 Thread Adrian Rochau
Hello! I'm writing a frontend for a MySQL-based testsystem. I used inspectdb to create my Django-models and many fields are guessed correct, but every varchar-field has a length multiplyed by 3. Do you know why? --~--~-~--~~~---~--~~ You received this message be

Re: manage.py can't see project

2006-12-01 Thread [EMAIL PROTECTED]
Please. Anyone... I just want to be able to use manage.py AND the project! --~--~-~--~~~---~--~~ 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: Database question

2006-12-01 Thread Eric Lake
Thank you. That is what I was thinking but I wanted to get others opinions first. This will also help stay with the DRY ideals. I guess the real difficult part would be if a new ministry is added to the list. If I understand how it works I would have to make changes in the model and then modify th

Re: Database question

2006-12-01 Thread Guillermo Fernandez Castellanos
Cheers, I would do it in a single table. Maybe i would add a field to the Post like: MINISTRY_CHOICES = ( ('MUS', 'music'), ('SIN', 'singles'), ('STU', 'students'), ) ministry = models.CharField(ma

Re: Database question

2006-12-01 Thread Eric Lake
Does anyone have a suggestion? On Nov 29, 9:24 pm, "Eric Lake" <[EMAIL PROTECTED]> wrote: > I am working on a church site that will have multiple areas. There will > be pages for each of the different ministries like music, singles, > students, etc. I am wanting a blog like function for each of t

Re: Why not Django

2006-12-01 Thread DavidA
Alan Green wrote: > On 12/1/06, James Bennett <[EMAIL PROTECTED]> wrote: > > > Now, does anybody want to talk about Django? > > Yes! > > Is anyone writing financial or money-handling applications in Django? > Any particular issues or "gotchas" the world should know about? Sort of. I work at a hed

Re: General File Upload Questions.

2006-12-01 Thread Guillermo Fernandez Castellanos
This might help you: http://code.djangoproject.com/ticket/2070 G On 12/1/06, Paul Childs <[EMAIL PROTECTED]> wrote: > > > Paul Childs wrote: > > > > 1. Is there an upper limit to the size of files that one can upload to > > Django? I am able to upload files of about 5 MB or less with no > > prob

Re: Suggestion: Aggregate/Grouping/Calculated methods in Django ORM

2006-12-01 Thread DavidA
I'd like to see this type of support in the main branch, not separated. It seems that better support for floating point is just a deficiency in Django today and the aggregation need crops up everywhere - not just in scientific applications. My needs for aggregation are simply for reporting: e.g.

Re: General File Upload Questions.

2006-12-01 Thread Paul Childs
Paul Childs wrote: > 1. Is there an upper limit to the size of files that one can upload to > Django? I am able to upload files of about 5 MB or less with no > problems, but when I try to upload a file (to the Django dev server) > which is larger I get an error message from Django. (Traceback i

How To: Project-wide custom template tags

2006-12-01 Thread David Smith
Here's one method of importing a common set of tags into your app-specific templatetags modules. If there's an easier way, I'd appreciate the advice. 1. Define your common tags, e.g. /yourproject/apps/templatetags.py: from django import template register = template.Library() def some_common_op

Re: Help with admin views

2006-12-01 Thread brian corrigan
> I'm guessing you can copy the templates for the admin site into your > local templates directory and modify them to your heart's content. If you create in the directory you store your templates a folder called admin you can copy in the templates from django source into there and edit them. What

Re: Multithreading inside django

2006-12-01 Thread Wolfram Kriesing
I think I found out that the connection is the same for both threads, I think that causes the problem. I will try some more but I am not sure if I am on the right path at all :-) On 11/30/06, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > From the frontend I trigger via AJAX a view that again star

Re: Why not Django

2006-12-01 Thread tchoukharev
Victor Ng wrote: > On 11/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Here you mean SELECT FOR UPDATE, right? > > No, I mean SELECT. OK. Then another part of my answer is applied. > The use case is two users are viewing the same record, and they both > go to update the same record