TEMPLATE_DIRS problem -windows

2008-05-21 Thread emy_66
I'm doing the tutorials and am up to part 2 where we can customise admin look and feel - I cannot get django to read my customise template file by editing TEMPLATE_DIRS. I am working in windows using the lastest dev version of django. I notice that even if I place a path that does not exist into

Re: Form Fields Question

2008-05-21 Thread Chris
> Well if you are using AJAX it's necessary to have the id of an html That is not necessarily true! There are lots of ways for a programmer to access their elements and update them through ajax. You should checkout mootools.net. On May 21, 7:40 pm, Jashugan <[EMAIL PROTECTED]> wrote: > On

Re: Making django admin change-list case sensitive

2008-05-21 Thread Karen Tracey
On Wed, May 21, 2008 at 6:03 AM, cerea <[EMAIL PROTECTED]> wrote: > Hi, is there a simple way to make the change-lists in django's admin > case sensitive? Right now the change_list_results.html admin template > shows all the items in lowercase, I would like it to not display > everything in

Re: json/xml serializer.serialize UTF-8 Error

2008-05-21 Thread XeboyZou
For XML is works fine. BUT not JSON. -- def left(request): query = Talk.objects.filter(side=2, talk_topic =1).order_by('pub_date')[0:30] json_serializer = serializers.get_serializer("json")() data = json_serializer.serialize(query,

possible bug in template tags

2008-05-21 Thread Jonathan Lukens
I'm encountering a problem using ContentType.model_class() within a template tag. The tag parses an “.“ argument and then tries to get the model object, like this: http://dpaste.com/51963/ When I place “{% magic_archives . %}“ in a template, I get the following: (u'', u'', '', "") So

Re: Authenticated user from models.py

2008-05-21 Thread Juanjo Conti
Thanks! http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser is what I was looking for. Juanjo -- mi blog: http://www.juanjoconti.com.ar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: load external xml and css with varibles?

2008-05-21 Thread Eric Abrahamsen
On May 22, 2008, at 5:15 AM, sebey wrote: > that script you told me to do how do i get it running though the admin > interface? It's not going to work through the admin interface, you'll have to ssh into your server, or use some other interface provided by your webhost, to put the script

Re: Authenticated user from models.py

2008-05-21 Thread Patrick J. Anderson
On Wed, 21 May 2008 20:33:35 -0500, James Bennett wrote: > On Wed, May 21, 2008 at 8:23 PM, Patrick J. Anderson > <[EMAIL PROTECTED]> wrote: >> Passing a Request object should work in application views, but what if >> one wants to capture that information on every save() call, including >> in

Re: Authenticated user from models.py

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 8:23 PM, Patrick J. Anderson <[EMAIL PROTECTED]> wrote: > Passing a Request object should work in application views, but what if > one wants to capture that information on every save() call, including in > the admin? > > What would be an elegant and beautiful approach to

Re: Authenticated user from models.py

2008-05-21 Thread Patrick J. Anderson
On Wed, 21 May 2008 19:46:20 -0500, James Bennett wrote: > On Wed, May 21, 2008 at 7:35 PM, Juanjo Conti <[EMAIL PROTECTED]> wrote: >> Ugly. Is this the only way? > > Sigh. > > No, "ugly" is magical global variables and things that appear out of > thin air. > > Code that's clean and

Re: Problems setting up test Django server

2008-05-21 Thread Jason
And indeed, throwing in a "PythonInterpreter site" in my port 80 VirtualHost, & a PythonInterpreter testsite in my port 8080 VirtualHost solved all my problems. You guys are the best! On May 21, 5:54 pm, Jason <[EMAIL PROTECTED]> wrote: > Awesome!  Thanks for all the advice, guys.  Will try the

Re: Problems setting up test Django server

2008-05-21 Thread Jason
Awesome! Thanks for all the advice, guys. Will try the PythonInterpreter trick & get back to you. Just FYI, I'd deliberately ignored that part of the documentation since it specifies: "If you need to put two Django installations within the same VirtualHost, you’ll need to take a special

Re: Authenticated user from models.py

2008-05-21 Thread [EMAIL PROTECTED]
Make user a parameter on the new save method and pass it to the save method wherever you call save in your views. On May 21, 6:58 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > I can access the request from my views, but how can I acces the > request from models.py? > > I am redefining a

Re: Authenticated user from models.py

2008-05-21 Thread Juanjo Conti
I can access the request from my views, but how can I acces the request from models.py? I am redefining a Model's save method. -- Juanjo Conti --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Problems setting up test Django server

2008-05-21 Thread Graham Dumpleton
On May 22, 9:41 am, Jason <[EMAIL PROTECTED]> wrote: > On May 21, 4:17 pm, Jashugan <[EMAIL PROTECTED]> wrote: > > > On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote: > > > > Hey folks-- > > > > I'm trying to set up a mirror instance of Django on our webserver, > > > having grown tired of

Re: Problems setting up test Django server

2008-05-21 Thread Jashugan
> > Are you listening on both ports? Check httpd.conf and make sure it has > > something like this: > > > Listen 80 > > Listen 8080 > > Oh yeah, that's all taken care of.  The "test site" is working fine on > port 8080, separate from the regular port 80 site.  My problem is that > if I change the

Re: Authenticated user from models.py

2008-05-21 Thread Jashugan
On May 21, 4:31 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > How can I access this information from the code? It's in the request: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests --~--~-~--~~~---~--~~ You received

Re: Forms from Database Tables with choice selects.

2008-05-21 Thread Adam Gomaa
Lance, it's also not clear to me what exactly you need. Are you using ModelForm? If not, what do you mean by the 'auto generated' form? I think I have a rough idea what you're looking for, but a few more details would go a long way. Adam On Wed, May 21, 2008 at 3:30 PM, Lance F. Squire <[EMAIL

Re: Problems setting up test Django server

2008-05-21 Thread Jason
On May 21, 4:17 pm, Jashugan <[EMAIL PROTECTED]> wrote: > On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote: > > > Hey folks-- > > > I'm trying to set up a mirror instance of Django on our webserver, > > having grown tired of bringing our whole site down every time I'm > > debugging new code. >

Re: Form Fields Question

2008-05-21 Thread Jashugan
On May 21, 2:05 pm, Chris <[EMAIL PROTECTED]> wrote: > I wasn't saying that django was performing bad practice, I was just > curious as to why id over classes. > > Thanks for the input. > Well if you are using AJAX it's necessary to have the id of an html element set, so that the javascript

IntegerField with choices raising an TypeError

2008-05-21 Thread Jashugan
Hello I have the following code in my model: class SomeMode(models.Model): CHOICES = [(1, '1'), (2, '2'), (3, 3), (4, '4'), (5, '5')] score = models.IntegerField(choices=CHOICES) When I change the score in the admin interface it throws this error: an integer is required I think

Authenticated user from models.py

2008-05-21 Thread Juanjo Conti
I'd like to know which user has trigger the execution of some code in models.py. For example, while redefining the save method of some Model. How can I access this information from the code? -- Juanjo Conti --~--~-~--~~~---~--~~ You received this message

Re: Problems setting up test Django server

2008-05-21 Thread Jashugan
On May 21, 4:10 pm, Jason <[EMAIL PROTECTED]> wrote: > Hey folks-- > > I'm trying to set up a mirror instance of Django on our webserver, > having grown tired of bringing our whole site down every time I'm > debugging new code. Why aren't you debugging on your local machine? > I've got an

Re: New to Django, having issues with first tutorial

2008-05-21 Thread Jashugan
On May 21, 3:07 pm, nobody <[EMAIL PROTECTED]> wrote: > Thanks! > No problem. Good luck. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Problems setting up test Django server

2008-05-21 Thread Jason
Hey folks-- I'm trying to set up a mirror instance of Django on our webserver, having grown tired of bringing our whole site down every time I'm debugging new code. I've got an Apache VirtualHost set up on port 8080 that more or less mirrors our website. And I've installed a separate instance

Re: Merging (threaded) FreeComments with Comments

2008-05-21 Thread [EMAIL PROTECTED]
There is currently work to do this, as well as other improvements to contrib.comments, as a part of GSOC, you can see all the work here: http://code.google.com/p/django-newcomments/ On May 21, 5:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been looking at the django

Merging (threaded) FreeComments with Comments

2008-05-21 Thread [EMAIL PROTECTED]
I've been looking at the django implementation of freecomments and comments modules as well as the alternative threadedcomments module (http://code.google.com/p/django-threadedcomments/). One thing that hits me here is -- why are they always 2 different classes for user comments and anonymous

Re: New to Django, having issues with first tutorial

2008-05-21 Thread nobody
Thanks! I'm tired, typed something in wrong on the file in question. This is pretty daunting at first, but I think I'll get it. Appreciate the help. On May 21, 5:59 pm, Jashugan <[EMAIL PROTECTED]> wrote: > On May 21, 2:51 pm, nobody <[EMAIL PROTECTED]> wrote: > > > I'm going through the

Re: New to Django, having issues with first tutorial

2008-05-21 Thread Jashugan
On May 21, 2:51 pm, nobody <[EMAIL PROTECTED]> wrote: > I'm going through the "Writing your first Django app" tutorial on > djangoproject.com but I'm not getting very far, unfortunately. ok > >>> p = Poll.objects.get(pk=1) > >>> p.choice_set.create(choice='Not much', votes=0) > > Traceback

Re: New Django Site

2008-05-21 Thread Jashugan
On May 21, 1:27 pm, Bret W <[EMAIL PROTECTED]> wrote: > Hey all- > > Over the past few evenings, I've put together a simple site for > submitting and listing job and salary information. > Congratulations! My comments: * I like the simple design, although some color would be nice. * There's

New to Django, having issues with first tutorial

2008-05-21 Thread nobody
I'm going through the "Writing your first Django app" tutorial on djangoproject.com but I'm not getting very far, unfortunately. I'm on the last bit of the first page (http://www.djangoproject.com/ documentation/tutorial01/) basically trying to create a new choice object. Honestly the docs are

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
that script you told me to do how do i get it running though the admin interface? On May 21, 4:25 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On May 21, 2008, at 11:07 PM, sebey wrote: > > > > >> Use Feedparser (http://www.feedparser.org/) in a stand-alone script, > >> run by a cron job,

Re: Form Fields Question

2008-05-21 Thread Chris
>>and in 2008, does it really matter? If you are managing a major media related site every inch counts in order to have a fast and deliverable page! I wasn't saying that django was performing bad practice, I was just curious as to why id over classes. Thanks for the input. On May 21, 3:32

Re: Django and Linux distros

2008-05-21 Thread Gustavo Noronha Silva
On Mon, 2008-05-19 at 10:30 +0200, Matthias Kestenholz wrote: > > just use > > sudo apt-get install python-django > I'd _not_ recommend installing the django version from the ubuntu > package. If you begin with a new project (or if you begin to learn > django even!) you should start with a

Re: Forms from Database Tables with choice selects.

2008-05-21 Thread Richard Dahl
I would caution you to think in the terms of the data storage (models) separately from data entry (forms via views). Most likely you want a class Person which would have a field for title. Maybe the title field is a FK to the Title model, maybe it is a charfield with or without 'choices'

RSS Syndication and iTunes Tags

2008-05-21 Thread Gremmie
I was considering using django to generate an RSS feed for a podcast. iTunes likes it very much if you add some non-standard tags to the xml. Is this there a way to leverage the existing slick syndication feature of django but also get these tags into the feed?

New Django Site

2008-05-21 Thread Bret W
Hey all- Over the past few evenings, I've put together a simple site for submitting and listing job and salary information. There are several more complex surveys and sites for this type of information, but none that are quick and easy. I'd appreciate the Django Community's thoughts on the

Forms from Database Tables with choice selects.

2008-05-21 Thread Lance F. Squire
I'm trying to make a Form where 3 people need to be inputed. All three need to have a Title.(EG. Mr. Mrs. etc.) I tried making the Title fields in the database be a key to a table of title selections. The sql generation had no trouble with that, but the Form generator doesn't like it at all...

Re: User.get_profile() (was: Re: Reusable models?)

2008-05-21 Thread Marty Alchin
On Wed, May 21, 2008 at 3:00 PM, Jeremy Bornstein <[EMAIL PROTECTED]> wrote: > (assuming your profile model is called "UserProfile") I think you just answered your own question. Consider a third-party app that might be used to manage user profiles, but leaves the actual implementation of that

User.get_profile() (was: Re: Reusable models?)

2008-05-21 Thread Jeremy Bornstein
On Wed, May 21, 2008 at 01:41:35PM -0500, James Bennett wrote: > Note that this is, for example, how Django's User model works: you > relate another model to it with a good old-fashioned foreign key, and > there's a nice API for specifying which model represents the "user > profile" for a given

Re: Reusable models?

2008-05-21 Thread James Bennett
On Wed, May 21, 2008 at 12:29 PM, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > One use case could be, for example, > the Institution model with title and description fields in project A, > then the Institution model with title, description, and address fields > in project B, > and then the

Integrating Flexigrid (jquery)

2008-05-21 Thread Joseph
All, I'm trying to integrate flexigrid (http://www.webplicity.net/ flexigrid/). However I'm running to problems and I hope someone can help me. This is my snippet of flexigrid configuration: ... url: '/populategrid/', ... and the view is: def populategrid(request): #page that is requested

Re: postgresql_psycopg2 module errors (Windows)

2008-05-21 Thread nobody
This is the exact error: C:\Python25\Lib\site-packages\django\testproject>manage.py runserver Validating models... Unhandled exception in thread started by Traceback (most recent call last): File "C:\Python25\lib\site-packages\django\core\management\commands \runserver. py", line 47, in

Re: Reusable models?

2008-05-21 Thread Richard Dahl
Why not just define your base models in a Module in your import path called basemodels.py and import the specific base models you need into the requisite app. You could then use model inheritance to add the specific fiddly bits required for that app. It is just python after all. Am I

TimeField display in Admin interface

2008-05-21 Thread puff
I'm new to Django and noticed that a timefield set to 00:00:00 (midnight in the default choice list) displays as (none) in the admin interface. Is this expected behavior? Is there some way to cause it to display as midnight? I also noticed that a timefield of 00:00:01 DOES display as midnight

Re: load external xml and css with varibles?

2008-05-21 Thread sebastian stephenson
I done python and html/css and I have had had no programing experence On 21 May 2008, at 17:11, Matthias Kestenholz wrote: > > On Wed, 2008-05-21 at 08:34 -0700, sebey wrote: >> what I really need is how to code this I know what to do but I don't >> know how to do it >> > > Then learn how to do

Re: relationships problem

2008-05-21 Thread Richard Dahl
I am not really sure exactly what you are trying to accomplish here, if you want to 'create a load of Places based on what is in RawPlaces but with a resource' wouldn't a FK or M2M (depending on your cardinality requirements) relationship to RawPlaces within Resource simplify this process? I am

Reusable models?

2008-05-21 Thread Aidas Bendoraitis
James Bennett introduced some handy tricks about forms, templates, and URLs in his presentation about reusable apps: http://www.b-list.org/weblog/2008/mar/15/slides/ However the presentation doesn't touch the theme about reusability of models with small differences. One use case could be, for

Inheriting auth.models User

2008-05-21 Thread Gollum
Since this http://groups.google.com/group/django-users/browse_thread/thread/171886a67b8ed839/11564423d7a7680d?lnk=gst=gollum#11564423d7a7680d went unnoticed... Did anybody at all try to inherit from auth.models User and what worked (or didn't)?

Re: Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread puff
Thanks Ben for responding so promptly. > I'm probably not qualified to comment on the deeper technical issues > mentioned here. However that said I've just taken over quite a large > codebase that does some of this stuff, and it can be quite painful! I'd > suggest keeping your django code as

Re: Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread puff
Thanks Graham and Ben for the prompt feedback. It was most helpful. > Depending on the hosting mechanism has been configured, any Django > startup may only happen the first time a request comes in. This would > potentially delay requests if the initialisation takes a while. Our current hosting

URL redirects in Django

2008-05-21 Thread Jashugan
Hello, I'm using the photologue application and would like to redirect the base site (i.e. '') to 'pl-gallery-list'. /urls.py ... snip ... urlpatterns = patterns('', (r'^photologue/', include('photologue.urls')), # Uncomment this for admin: (r'^admin/',

Re: Testing login required views

2008-05-21 Thread Adam Gomaa
On Tue, May 20, 2008 at 9:19 PM, Julien <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a site where pretty much all views (except for register, login > and logout) require the user to log in. Now that the number of views > has grown I'd like to test that I didn't forget to protect them with > the

Re: load external xml and css with varibles?

2008-05-21 Thread Matthias Kestenholz
On Wed, 2008-05-21 at 08:34 -0700, sebey wrote: > what I really need is how to code this I know what to do but I don't > know how to do it > Then learn how to do it. The time between the very clear email of Eric and your reply suggests that you have not done your homework. What is your

Re: Try Except Statement not working properly.

2008-05-21 Thread Norman Harman
Greg wrote: > Norman, > I added those print statements and ran the script. The output was > this over and over again: > > /// > > current transaction is aborted, commands ignored until end of > transaction block > > // > > Any suggestions? It sounds like some other exception is, sadly,

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
what I really need is how to code this I know what to do but I don't know how to do it On May 21, 4:31 pm, sebey <[EMAIL PROTECTED]> wrote: > ok but how can I add it though the admin interface and I how would I > get a relationship between models and the feedparser script? > > On May 21, 4:25

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
ok but how can I add it though the admin interface and I how would I get a relationship between models and the feedparser script? On May 21, 4:25 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On May 21, 2008, at 11:07 PM, sebey wrote: > > > > >> Use Feedparser (http://www.feedparser.org/) in

Re: load external xml and css with varibles?

2008-05-21 Thread Eric Abrahamsen
On May 21, 2008, at 11:07 PM, sebey wrote: > > >> Use Feedparser (http://www.feedparser.org/) in a stand-alone script, >> run by a cron job, that checks feeds for updates a few times per day. >> Have a django model that represents rss feeds and feed items, and >> then >> import the necessary

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
> Use Feedparser (http://www.feedparser.org/) in a stand-alone script, > run by a cron job, that checks feeds for updates a few times per day. > Have a django model that represents rss feeds and feed items, and then > import the necessary stuff at the top of your feed parser script so > that you

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
> Use Feedparser (http://www.feedparser.org/) in a stand-alone script, > run by a cron job, that checks feeds for updates a few times per day. > Have a django model that represents rss feeds and feed items, and then > import the necessary stuff at the top of your feed parser script so > that you

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
> Use Feedparser (http://www.feedparser.org/) in a stand-alone script, > run by a cron job, that checks feeds for updates a few times per day. > Have a django model that represents rss feeds and feed items, and then > import the necessary stuff at the top of your feed parser script so > that you

Re: Try Except Statement not working properly.

2008-05-21 Thread Greg
Norman, I added those print statements and ran the script. The output was this over and over again: /// current transaction is aborted, commands ignored until end of transaction block // Any suggestions? On May 20, 3:24 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > Greg wrote: > > Since

postgresql_psycopg2 module errors (Windows)

2008-05-21 Thread nobody
I know this has been brought up before, but unfortunately I'm having the same problem I've seen posted but the reasoning is different. I've compiled pyscopg2 with mingw32 which I assume was successful as the files all now reside within django/db/backends However when I try to runserver I get an

error installing django on windows vista...

2008-05-21 Thread agusti
I download the latest version (0.96.2) and when I tried to install this message appears: running install running build running build_py package init file '\django\__init__.py' not found (or not a regular file) error: package directory '\django\bin' does not exist I tried twice, downloading again

Related object create/update form noob question

2008-05-21 Thread Smacc Kleina
Hi guys, I wrote simple object edit forms at this time, but now i have to add a "related" object to an another, let's say add Album to existing Artist. Inserting new Album to existing Artist and editing existing Album requires two forms or can be just one? Is there any example somewhere? Thank you

Re: Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread Ben Ford
Hi there, I'm probably not qualified to comment on the deeper technical issues mentioned here. However that said I've just taken over quite a large codebase that does some of this stuff, and it can be quite painful! I'd suggest keeping your django code as simple as possible, i.e. just to process

Re: Renaming variables passed to inherited templates

2008-05-21 Thread Hans
Ooops. I thought I had read the documentation thoroughly, but found the WITH filter. http://www.djangoproject.com/documentation/templates/#with I guess I can use that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: My DateField is displaying "True" in my Admin??

2008-05-21 Thread Cliff
Sorry I didn't get back sooner on this, but SQLite doesn't have a datetime field, so django fakes it by using a string type there, but giving making it look like a date in django. My mistake. See documentation here: http://www.sqlite.org/datatype3.html On May 7, 11:46 am, Greg <[EMAIL

Re: Mysql vs. sqlite filtering of datetimefields with None values

2008-05-21 Thread Hans
Bump --~--~-~--~~~---~--~~ 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 PROTECTED] For more

Re: Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread Graham Dumpleton
On May 21, 10:37 pm, puff <[EMAIL PROTECTED]> wrote: > As part of startup, the application needs to initialize itself from a > number of external applications.  We've Googled the issue and it > appears that it is reasonable to do this initialization by putting > code in startup.py.  Is this the

Re: uploading CSV files

2008-05-21 Thread Marcin Mierzejewski
Dear Nanda, Please visit the link below: http://www.zoia.org/blog/2007/07/29/django-file-upload/ I hope that it helps you. Best regards, Marcin Mierzejewski On May 21, 1:40 pm, nandu <[EMAIL PROTECTED]> wrote: > Dear All, > > I am having a problem with where to start when I am faced with >

Re: Ordering extra fields in ModelForm

2008-05-21 Thread John Hensley
http://code.djangoproject.com/wiki/CookBookNewFormsFieldOrdering On May 21, 2008, at 8:15 AM, omat wrote: [...] > My form class is like that: > > class NoteForm(forms.ModelForm): >is_location = forms.BooleanField(required=False) > >class Meta: >model = Note > > I wish this

Django in a HA cluster web services application with some near real time elements

2008-05-21 Thread puff
We are considering using Django as part of a HA cluster web services application that has some near real time elements. While much of our application seems well suited to Django some of the near real time elements are concerns and we were hoping that this list might provide some perspective on

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
"mime type"? sorry new to web development what is this? "Why don't you just use an inline

Ordering extra fields in ModelForm

2008-05-21 Thread omat
I would like to add an extra checkbox to my form which I generate with ModelForm. This is for visual enhancement of the form. If the extra checkbox is checked, I will display a map for user to mark his location. My form class is like that: class NoteForm(forms.ModelForm): is_location =

uploading CSV files

2008-05-21 Thread nandu
Dear All, I am having a problem with where to start when I am faced with uploading a CSV file. I do not want to create a model for the file as there is no need for me to keep track of the files that I am uploading to the server. Could you please give me a set of steps I need to follow or point

Re: Django Json server testing, new to Django

2008-05-21 Thread puff
Thanks Diego. I'd looked at the tutorial as I got started but that didn't register. It is, of course, the case as when I ran a second development server on a different port and modified the URI appropriately things worked. On May 20, 9:45 pm, Diego Ucha <[EMAIL PROTECTED]> wrote: > Puff, > > I

multi-thread query on Mysql

2008-05-21 Thread free won
i am writing a Campus Search ENgine on DJango.while i create 2 tables for FtpUrls and HttpUrls. after i restart the serves. I start the query. At first time ,it goes well,runs very quickly. However,it stop load when i start the second Query,the error-number is 301. i wonder whether

Re: how to make two fields appear on a single line

2008-05-21 Thread Juanjo Conti
amar escribió: > HI, > I am developing a simple project on django and now i want to make two > text boxes appear on a single row, please help me What are your doing now? {{ form }}? Try {{ field.label_tag1 }}: {{ form.field1 }} {{ field.label_tag2 }}: {{ form.field2 }} Juanjo -- mi blog:

Re: load external xml and css with varibles?

2008-05-21 Thread Ronny Haryanto
On Wed, May 21, 2008 at 5:58 PM, sebey <[EMAIL PROTECTED]> wrote: > I know css does not not have any variables but I was thinking that > python/django could look though the css file and have > background-color:{{insert python varible here}} Django's templating is not restricted to HTML only. You

Re: load external xml and css with varibles?

2008-05-21 Thread sebey
I know css does not not have any variables but I was thinking that python/django could look though the css file and have background-color:{{insert python varible here}} but I did consider that first about copy and pasting a style sheet and just change the background but I never thought about

Re: Admin : Select category -> show subcategory

2008-05-21 Thread martyn
Stupid me, yes you're absolutly right. It could be something like this $(document).ready(function(){ changeMySelect(); # ... and select my subcategorie too. } $("select#id_categorie").change(function(){ changeMySelect(); } function changeMySelect(){ ...do something to change my

FAMOUS PHOTO COLLECTION ,NATURE PHOTOS, DRAWINGS,

2008-05-21 Thread magesh kotteswaran
HAI FRIENDS , I HAVE LOT OF NATURE PHOTOS , DRAWING PHOTOS AND FLOWERS AND DIFFERENT ONE HUMAN ANATOMY PLASTIC MODELS, I HAVE SEND WITH YOU, JUST CLICK FOLLOWING LINK AND ENJOY IT, DRAWING & PHOTOS COLLECTION http://mageshdrawfedi.blogspot.com/

Making django admin change-list case sensitive

2008-05-21 Thread cerea
Hi, is there a simple way to make the change-lists in django's admin case sensitive? Right now the change_list_results.html admin template shows all the items in lowercase, I would like it to not display everything in lowercase, but I can't seem to figure it out. Thanks!

Re: What do you use for project management?

2008-05-21 Thread @@
On 5/21/08, woeye <[EMAIL PROTECTED]> wrote: > > > I'd like to add Redmine (Rails based) and Mantis (PHP based). > A Django based solution I do not know, though. the djangoproject itself use Trac. --~--~-~--~~~---~--~~ You received this message because you are

Re: What do you use for project management?

2008-05-21 Thread woeye
I'd like to add Redmine (Rails based) and Mantis (PHP based). A Django based solution I do not know, though. On 21 Mai, 00:24, "Gene Campbell" <[EMAIL PROTECTED]> wrote: > I have used Jira, and I'm looking at Trac today. Is there something > more Djangonic?

Amazing video!

2008-05-21 Thread Marhcsi
http://tinyurl.com/3qoh99 --~--~-~--~~~---~--~~ 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

relationships problem

2008-05-21 Thread Col Wilson
I'm brand new to django from rails, and I'm a bit stuck trying to get relationships to work. RawPlaces table is full of place names and data already. My model looks like this: from django.db import models import sys, os class RawPlace(models.Model): name =

how to make two fields appear on a single line

2008-05-21 Thread amar
HI, I am developing a simple project on django and now i want to make two text boxes appear on a single row, please help me --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Adding Adjacent fields in the dajngo templates

2008-05-21 Thread Adi J. Sieker
Hi, Harish wrote: > hi friends > > i want to implement the adjacent text fields using django. > currently when we add two text fields, it will come one down the > other... > i want to override this functionality and make the two text box appear > adjacent to one another > can anybody help me

Re: json/xml serializer.serialize UTF-8 Error

2008-05-21 Thread Russell Keith-Magee
On Wed, May 21, 2008 at 3:15 PM, ERic ZoU <[EMAIL PROTECTED]> wrote: > > It works in XML, but not JSON > > On May 21, 2:48 pm, ERic ZoU <[EMAIL PROTECTED]> wrote: >> query = Talk.objects.filter(side=2, talk_topic >> =1).order_by('pub_date')[0:30] >> data = serializers.serialize('json',

Adding Adjacent fields in the dajngo templates

2008-05-21 Thread Harish
hi friends i want to implement the adjacent text fields using django. currently when we add two text fields, it will come one down the other... i want to override this functionality and make the two text box appear adjacent to one another can anybody help me how to proceeds to solve this

helpers on managers versus models module top-level?

2008-05-21 Thread James Tauber
I find myself being inconsistent in whether I put model helper methods on a custom manager or just as top-level functions in models.py For example, in django-friends I have: class FriendshipManager(models.Manager): def friends_for_user(self, user): ...code with

wholesale cheap nike adidas puma bape shoes and clothes jeans nfl nhl nba mlb jersey www.bbnike.com

2008-05-21 Thread bbnike1
www.bbnike.com ,We are a leading company that wholesales shoes :Nike,Jordan,dunk,shox,max,air force one,james,dunk.gucci,prada,Adidas,rift,Puma,Gucci,Prada,Timberland.Ice,D,Adio,Armani,DC,ES,Lacoste, 4US,Converse,bape.chanel,hongan,tods,richmond,eneruie,dsquared,diesel.armant,dior,ice cream,kids

Re: json/xml serializer.serialize UTF-8 Error

2008-05-21 Thread ERic ZoU
It works in XML, but not JSON On May 21, 2:48 pm, ERic ZoU <[EMAIL PROTECTED]> wrote: > query = Talk.objects.filter(side=2, talk_topic > =1).order_by('pub_date')[0:30] > data = serializers.serialize('json', query, ensure_ascii=False, > fields=('content')) > return

Re: json/xml serializer.serialize UTF-8 Error

2008-05-21 Thread ERic ZoU
query = Talk.objects.filter(side=2, talk_topic =1).order_by('pub_date')[0:30] data = serializers.serialize('json', query, ensure_ascii=False, fields=('content')) return HttpResponse(data, "charset=UTF-8") On May 21, 2:39 pm, ERic ZoU <[EMAIL PROTECTED]> wrote: > Exception Value:

json/xml serializer.serialize UTF-8 Error

2008-05-21 Thread ERic ZoU
Exception Value:'ascii' codec can't encode characters in position 1-2: ordinal not in range(128) My content is UTF-8 encode. Seems doesn't work. I am using the latest version checkout from SVN --~--~-~--~~~---~--~~ You received this message because you