We have a lot of good things here! ~ ~ Come and see

2008-05-13 Thread lee
HOMEPAGE: http://www.brandedsite.com CONTACT: [EMAIL PROTECTED] PAYMENT: Western Union / Bank of china / paypal We are a proffesional asian wholesaler of --wholesale cheap Nike Sneakers: Air Force One,Air Jordans1-22, Jordan2.2,Jordan2.5,3.5,4.5,

Break mobile phone brand fashion trend

2008-05-13 Thread lee
http://www.brandedsite.com/ [EMAIL PROTECTED] Nike Air Jordan 1 ,Nike Air Jordan 2 Shoes,Nike Air Jordan 3,Nike Air Jordan 4 Shoes ,Nike Air Jordan 5 Chaussure Shoes,Nike Air Jordan 6 Catalog ,Nike Air Jordan 7 Shoes Catalog , Nike Air Jordan 8 Customized ,Nike Air Jordan 9 Shoes Customized

Re: do sessions work when redirecting?

2008-05-13 Thread Mike Chambers
fyi, bug logged here with test case: http://code.djangoproject.com/ticket/7233 mike Mike Chambers wrote: > ok. more info on this. (Sorry about all of the emails, but I am really > trying to track this down, and see if it is a bug). > > If I try to include the request.POST data QueryDict in

Re: loaddata .. columns app_label, model are not unique

2008-05-13 Thread Carl Karsten
Russell Keith-Magee wrote: > On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED]:~/dev/sites/ridgemoor$ ./manage.py loaddata rm.json >> Installing json fixture 'rm' from absolute path. >> Problem installing fixture 'rm.json': columns app_label, model

ANNOUNCE: Security bugfix releases

2008-05-13 Thread James Bennett
In accordance with our security policy[1], a set of releases is being issued tonight to fix a security vulnerability reported to the Django project. This message contains a description of the vulnerability, a description of the changes made to fix it, pointers to the the relevant patches for each

Re: Python issues on mac. Python not working.

2008-05-13 Thread Scott SA
On 5/13/08, Jason Ourscene ([EMAIL PROTECTED]) wrote: >I installed everything through macports initially, but would like to >be on a newer version of python which i found is bundled with leopard. >I completely removed all the files and things associated with >macports. Now when i type python in

Python issues on mac. Python not working.

2008-05-13 Thread Jason Ourscene
I installed everything through macports initially, but would like to be on a newer version of python which i found is bundled with leopard. I completely removed all the files and things associated with macports. Now when i type python in the terminal i get.. ~bash: python: command not found I

can django.core.urlresolvers.reverse work with included URLconfs?

2008-05-13 Thread @@
Hi, It seems the revese method can't work with included URLconfs? for example : the root URLconfs is like this urlpatterns = patterns('', (r'^app/',include('django_website.apps.blog.urls.blog')), ) the app URLconfs is like this urlpatterns = patterns('', (r'^test/a-test',

Re: Thread-safe or not?

2008-05-13 Thread rcs_comp
On May 13, 5:20 pm, TP <[EMAIL PROTECTED]> wrote: > How about specifically whether mod_wsgi can be used to run many > threads serving web requests for Django? My understanding is that you can only run one instance of Django per Application Group/Pool. You can read here for more info:

IE7, IE6, and Safari session save issue

2008-05-13 Thread Seth Buntin
Okay I am going to try to explain this the best I can. The issue I am having is only with IE7, IE6, and Safari. I believe it is a way the session information isn't being saved. This issue doesn't happen with r7020 but is happening with r7526. The problem doesn't occur when running from

Better Image Uploads: Fake Model Fields?

2008-05-13 Thread Nick Retallack
Currently it seems like it could be pretty disastrous to let users upload their own files, as you can see from this ticket: http://code.djangoproject.com/ticket/2983 Of course, one solution is to name your files after the pk of the record they're associated with, so new uploads will overwrite

Re: Ignore query on views?

2008-05-13 Thread Romo
perfect! with _set and a for i can do what i was looking for! thank you soo much! On May 13, 9:16 am, Adi Jörg Sieker <[EMAIL PROTECTED]> wrote: > On 13.05.2008, at 06:32, RoMo wrote: > > > > > I'm sorry for not understand what you were saying about the error with > > get if i have more than 1

Re: django-ratings

2008-05-13 Thread David Cramer
I didn't see it until you linked it, but it also poses some of the same limitations that django-voting has. I want an end-all solution, that also fit's all the needs I've ever come up with :) On May 13, 7:31 pm, "Alvaro Mouriño" <[EMAIL PROTECTED]> wrote: > On Tue, May 13, 2008 at 11:23 PM,

Re: django-ratings

2008-05-13 Thread Alvaro Mouriño
On Tue, May 13, 2008 at 11:23 PM, David Cramer <[EMAIL PROTECTED]> wrote: > > I'm building a new pluggable ratings app (django-voting doesn't come > close to covering what my specs are). It's built around a similar > architecture to what we used on Curse. What I'm looking for right now > is

Re: Custom Auto-Incrementing Columns

2008-05-13 Thread David Cramer
In MySQL and PostgreSQL you can go into the database and modify the auto increment sequence value to start at something else. There's no way to set that via Django at the moment. On May 13, 4:49 pm, jwwest <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a way to create a column that has a

django-ratings

2008-05-13 Thread David Cramer
I'm building a new pluggable ratings app (django-voting doesn't come close to covering what my specs are). It's built around a similar architecture to what we used on Curse. What I'm looking for right now is feedback on my proposed API and usage: http://code.google.com/p/django-ratings/ The

problem with DateQuerySet

2008-05-13 Thread Eric Abrahamsen
I've got a perplexing problem that I don't even know where to start fixing. Creating a DateQuerySet for one of my models produces an empty list every time. Here's at the prompt: >>> apps = Appearance.objects.all() >>> for ap in apps: ... print ap.app_date ... 2009-02-11 09:00:00

Re: do sessions work when redirecting?

2008-05-13 Thread Juanjo Conti
On Tue, May 13, 2008 at 7:04 PM, Mike Chambers <[EMAIL PROTECTED]> wrote: > > Anyone know why I cant store request.POST.copy() in the session? Not sure way, but I save it as a regular dict like this: request.session['POST'] = dict(request.POST.items()) Greets! -- Juanjo Conti

Re: Problem with Deserializing JSON

2008-05-13 Thread Russell Keith-Magee
On Wed, May 14, 2008 at 5:11 AM, mwebs <[EMAIL PROTECTED]> wrote: > > I get a String like this: "1,2,3" ... > I just get a valueError: Extra data: line 1 column 1 - line 1 column 5 > (char 1 - 5) "1,2,3" isn't a valid JSON data structure. However, "[1,2,3]" is a list of integers. Yours, Russ

Re: Problem with Deserializing JSON

2008-05-13 Thread Russell Keith-Magee
On Wed, May 14, 2008 at 5:11 AM, mwebs <[EMAIL PROTECTED]> wrote: > > Hello, > > I have some problems deserializing a json.object. I am quite new in > using json, an I think the json is not formatted correctly. > > When I print: > > request.POST[elems] > > I get a String like this: "1,2,3"

Re: loaddata .. columns app_label, model are not unique

2008-05-13 Thread Russell Keith-Magee
On Wed, May 14, 2008 at 1:09 AM, Carl Karsten <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED]:~/dev/sites/ridgemoor$ ./manage.py loaddata rm.json > Installing json fixture 'rm' from absolute path. > Problem installing fixture 'rm.json': columns app_label, model are not unique > > How do I

Re: do sessions work when redirecting?

2008-05-13 Thread Mike Chambers
ok. more info on this. (Sorry about all of the emails, but I am really trying to track this down, and see if it is a bug). If I try to include the request.POST data QueryDict in the session, then no session data is saved between requests (i.e. it wipes other session data):

Custom Auto-Incrementing Columns

2008-05-13 Thread jwwest
Hi all, Is there a way to create a column that has a unique id per row like id, but where I can specify the number it starts from? Basically I'm working on a ecommerce system and I would like the sales order numbers to start from say, 1000. I'd use ID, but as far as I know, it starts from 1. -

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Michael Burton
I started composing a reply to your response, and then realized that I had erroneously constructed a mental one-to-one model of the relationship rather than one-to-many. You're absolutely right, what I was trying to do doesn't make any sense. Whoops :) Mike On May 13, 2:28 pm, "Scott

Search Result Pagination

2008-05-13 Thread Michael Ellis
Hello all. I'm having trouble getting pagination working on search results in a custom view. I have djapian/xapian full-text indexing working and I have some pagination code cobbled together from various sources. I can get the search results and all the pagination (result count, page x of y,

Re: do sessions work when redirecting?

2008-05-13 Thread Mike Chambers
I ended up getting this to work with (what feels like) a hack: To save the session: -- request.session['form_post_query_string'] = request.POST.urlencode() return HttpResponseRedirect(request.META['HTTP_REFERER']) -- then to later access it and use it: -- from django.http import QueryDict

Re: do sessions work when redirecting?

2008-05-13 Thread Mike Chambers
Thanks for the input. I am narrowing down the issue. Basically, If i try to place a copy of the request.POST data into the session, nothing will get stored: i.e. -- post_copy = request.POST.copy() request.session['form_post_data'] = post_copy return

Re: Problem with Deserializing JSON

2008-05-13 Thread mwebs
Hi, its just the same error when using django.utils.simplejson. any idea, whats going wrong? On 13 Mai, 23:30, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On May 13, 5:11 pm, mwebs <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I have some problems deserializing a json.object. I am quite new

Re: Login & Cookie problems

2008-05-13 Thread mamcxyz
For clarification, I use the auth default views and this is my form code: Usuario Clave Ingresar In urls: url(r'^login/$', 'login', {'template_name': 'core/login.html'}, name="login"),

Login & Cookie problems

2008-05-13 Thread mamcxyz
Hi, I discover & reproduce a problem in the login for my site www.paradondevamos.com. The first time when a user try to login, always "fail", and return back to the login page. If try the second time, work fine. If try the frist time, close the browser, and try again, work. If then logout,

Re: Problem with Deserializing JSON

2008-05-13 Thread Rajesh Dhawan
On May 13, 5:11 pm, mwebs <[EMAIL PROTECTED]> wrote: > Hello, > > I have some problems deserializing a json.object. I am quite new in > using json, an I think the json is not formatted correctly. > > When I print: > > request.POST[elems] > > I get a String like this: "1,2,3" > > But when I try

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Scott Moonen
Michael, I think I understand what you're getting at, given your comment referring to the "unnecessary table and associated join". I think you want to be able to say "ManyToOneField" in Place and have it reach back into the Photo model and insert a NULLable "place_id" column. That's problematic

Re: How to make a LEFT JOIN

2008-05-13 Thread [EMAIL PROTECTED]
This following patch resolve this problem and can add other possibilities: http://code.djangoproject.com/ticket/7231 Please, test this patch if you are interested in joins and/or in models translation. If this feature is interesting for someone I could try to write some standard join

Re: auto admin for production

2008-05-13 Thread Jeff Anderson
rcs_comp wrote: Jeff, Any chance you would be willing to post the code for your in-house ticketing system? I have need for a similar application. I'd have to ask my boss, but he'd probably allow it. I'll let you know off list. We wrote our own because we had some strange requirements for

Re: url tutorial problem

2008-05-13 Thread Jeff Anderson
Hello! sebey wrote: > on the index page I get this: > > Page not found (404) > Request Method: GET > Request URL: http://localhost:8000/ > > Using the URLconf defined in ubertester.urls, Django tried these URL > patterns, in this order: > >1. ^admin/ >2. ^polls/$ >3.

Re: Thread-safe or not?

2008-05-13 Thread TP
How about specifically whether mod_wsgi can be used to run many threads serving web requests for Django? On May 13, 5:13 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On May 13, 2:52 pm, Goodrone <[EMAIL PROTECTED]> wrote: > > > What is the most up-to-date information about multithread safety

Re: Thread-safe or not?

2008-05-13 Thread Rajesh Dhawan
On May 13, 2:52 pm, Goodrone <[EMAIL PROTECTED]> wrote: > What is the most up-to-date information about multithread safety in > Django? Is it a good idea to spawn several threads and use models from > there? Several threads within one request/view?

Re: do sessions work when redirecting?

2008-05-13 Thread Rajesh Dhawan
On May 13, 3:23 pm, Mike Chambers <[EMAIL PROTECTED]> wrote: > I am running into an issue where my session values are not remembered if > I do an HTTP redirect. > > If I do: > > -- > request.session['a'] = '' > return HttpResponseRedirect(request.META['HTTP_REFERER'] > -- > > The session

Problem with Deserializing JSON

2008-05-13 Thread mwebs
Hello, I have some problems deserializing a json.object. I am quite new in using json, an I think the json is not formatted correctly. When I print: request.POST[elems] I get a String like this: "1,2,3" But when I try to to do for elem in serializers.deserialize("json", data ): I just get

Re: Formset from newforms-admin

2008-05-13 Thread [EMAIL PROTECTED]
While not official, brosner(an NFA commiter) has started working on some NFA docs: http://github.com/brosner/django/commits/nfa_docs On May 13, 11:33 am, "Ramdas S" <[EMAIL PROTECTED]> wrote: > Hi, > > Can someone kindly explain how you can use the formsets from new-admin > trunk? Is there some

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Richard Dahl
A third alternative is to use a GenericForeignKey. Although this may add too much complexity. Put the GenericForeignKey in a model called PhotoTag and create a M2M relationship between it and Photo and use it to select either a Place or a UserProfile, i.e. class PhotoTag(models.Model)

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Michael Burton
Sure. OOM relationships can typically be broken down along two dimensions: cardinality and directionality. cardinality: DIRECTIONALITY -- One-to-one: ONE-WAY, BI-WAY One-to-many: ONE-WAY, BI-WAY Many-to-many: ONE-WAY, BI-WAY The cardinality

Django meetup at Linuxtag 2008

2008-05-13 Thread Jannis Leidel
Hi list, I'm going to attend this year's Linuxtag [x] in Berlin (May 28 - 31) and wonder if there are other Djangonauts interested in an informal meetup. I'm sure there are plenty of places to meet so let me know if you want to join.. Cheers, Jannis x: http://www.linuxtag.org/2008/ --

do sessions work when redirecting?

2008-05-13 Thread Mike Chambers
I am running into an issue where my session values are not remembered if I do an HTTP redirect. If I do: -- request.session['a'] = '' return HttpResponseRedirect(request.META['HTTP_REFERER'] -- The session variable a will not be available once the browser is redirected. If I do: --

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Scott Moonen
Michael, can you elaborate on what you mean by "forcing bi-directional relationships"? The ManyToManyField approach really is, I think, the "right" way to do it. If you think about it, a hypothetical ManyToOneField in your case would work almost exactly like the ManyToManyField. The join table

Re: Many-to-many relationship on self - inherited model

2008-05-13 Thread Gollum
Please, someone, I need help very much! --~--~-~--~~~---~--~~ 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: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Michael Burton
Thanks much, Scott. They both seem a bit hacky, but it gives me something to work with anyway. I recognize the motivation for forcing bi-directional relationships in Django was done to keep things DRY[1], but does anyone know if there's been any discussion about maybe relaxing this constraint?

Thread-safe or not?

2008-05-13 Thread Goodrone
What is the most up-to-date information about multithread safety in Django? Is it a good idea to spawn several threads and use models from there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Scott Moonen
Michael, you have two alternatives: 1. Create ManyToManyField fields in the UserProfile and Place models, pointing to Photo. "ManyToManyField" may seem a bit odd since you really have a many-to-one relation, but it will work as you expect, creating a join table connecting each pair

Having a Many-to-One relationship with multiple other models

2008-05-13 Thread Michael Burton
I have some Places and I have some Users in my database. I'd like to be able to associate some Photos with each. class Photo(models.Model): # a model that represents a photo class UserProfile(models.Model): # has a list of Photos class Place(models.Model): # has a list of

Re: Data truncated for utf-8 string

2008-05-13 Thread Cyril Doussin
Hi Szymon, Not absolutely sure this is where the problem lies but I'd say check the collation used for your table in MySQL. Cyril On 13 May 2008, at 09:24, Szymon wrote: > > Hello, > > I'm using MySQL as my backend. Everytime when I want save a utf-8 > string there is warning that string

loaddata .. columns app_label, model are not unique

2008-05-13 Thread Carl Karsten
[EMAIL PROTECTED]:~/dev/sites/ridgemoor$ ./manage.py loaddata rm.json Installing json fixture 'rm' from absolute path. Problem installing fixture 'rm.json': columns app_label, model are not unique How do I debug this? Carl K --~--~-~--~~~---~--~~ You received

How to make a LEFT JOIN

2008-05-13 Thread [EMAIL PROTECTED]
Hi, I have the necessity to make a LEFT JOIN for a "translated" model object. See the example: """ from django.db import models class Bulletin(models.Model): pub_date = models.DateField() class BulletinTranslation(model.Model): title = models.CharField(max_length=128) body =

Formset from newforms-admin

2008-05-13 Thread Ramdas S
Hi, Can someone kindly explain how you can use the formsets from new-admin trunk? Is there some kind of an example? Ramdas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Data truncated for utf-8 string

2008-05-13 Thread Szymon
Hello, I'm using MySQL as my backend. Everytime when I want save a utf-8 string there is warning that string has been truncated. Ie. I have model with CharField(max_length=10), then want to add string żźćźżąłśćó it throw warning. What can I do to override that?

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread Sebastian
Thanks Graham. I had forgotten one other service running under Django as well. The settings.py file still had the TIME_ZONE setting set to GMT. Sebastain On May 13, 11:13 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On May 13, 8:05 pm, Sebastian <[EMAIL PROTECTED]> wrote: > > > Hi David, >

Re: Announcing Deco: static content for Django

2008-05-13 Thread Alex Morega
On May 13, 2008, at 17:32 , phillc wrote: > your bundling of those mac files confused me for a minute =P Whoops. Sorry about that. deco-0.1.tgz is now cleaned up. I'll package the tarball on a Linux machine from now on. :) BTW, do you know how to tell 'tar' to ignore those files on the mac?

Re: url tutorial problem

2008-05-13 Thread sebey
never mind forgot to change the "mysite" to "ubertester" I am doing so many stupid things in the tutorial On May 13, 3:27 pm, sebey <[EMAIL PROTECTED]> wrote: > hey I am having problems with the tutorial in the docs on page 3 and I > am at the stage where I have created my first veiw and I get

Re: Announcing Deco: static content for Django

2008-05-13 Thread phillc
your bundling of those mac files confused me for a minute =P --~--~-~--~~~---~--~~ 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

url tutorial problem

2008-05-13 Thread sebey
hey I am having problems with the tutorial in the docs on page 3 and I am at the stage where I have created my first veiw and I get this back the index page: Page not found (404) Request Method: GET Request URL:http://localhost:8000/ Using the URLconf defined in ubertester.urls,

Re: Url pattern problem

2008-05-13 Thread Rajesh Dhawan
On May 13, 9:06 am, laspal <[EMAIL PROTECTED]> wrote: > hi, > my project is as follows. > > project.app.candidate > > url patter are as follows: > urlpatterns = patterns('', >(r'^project/app/', include('project.app.urls')) > > for app it is: > urlpatterns = patterns('',

Re: Getting back to the same page after completing a task in another page

2008-05-13 Thread Adi Jörg Sieker
On 13.05.2008, at 16:18, phillc wrote: > > "I am new to web programming" > "I am trying to use my own loginpage " > > is there a reason that contrib.auth doesnt meet your needs? > Good question. :) adi -- Adi J. Sieker mobile: +49 - 178 - 88 5 88 13 Freelance developer skype:

Re: Getting back to the same page after completing a task in another page

2008-05-13 Thread phillc
"I am new to web programming" "I am trying to use my own loginpage " is there a reason that contrib.auth doesnt meet your needs? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: Ignore query on views?

2008-05-13 Thread Adi Jörg Sieker
On 13.05.2008, at 06:32, RoMo wrote: > > I'm sorry for not understand what you were saying about the error with > get if i have more than 1 post lol... kinda silly I'm sorry... > > Should I use .filter(Author=user)? filter is used to retrieve many records, get is used to retrieve 1 record.

Re: auto admin for production

2008-05-13 Thread rcs_comp
Jeff, Any chance you would be willing to post the code for your in-house ticketing system? I have need for a similar application. Thanks and not hard feelings if you can't. On May 9, 7:25 pm, Jeff Anderson <[EMAIL PROTECTED]> wrote: > pihentagy wrote: > > Hi all! > > > I come to here from a

url tutorial problem

2008-05-13 Thread sebey
Note: sorry for the long post hi I am on page 3 of the docs tut but I am having touble with urls I am at the stage where you enter in you first view and I on the index page I get this: Page not found (404) Request Method: GET Request URL:http://localhost:8000/ Using the URLconf

Re: How to determine server?

2008-05-13 Thread Chatchai Neanudorn
Which phase do you want to access? Http request parsing, request object initializing... 2008/5/13, Bob <[EMAIL PROTECTED]>: > > Thanks, Any way to do this without access to a request object, since I > want to use this information to do some server-specific initialization > before I have a

Re: How to determine server?

2008-05-13 Thread Bob
Thanks, Any way to do this without access to a request object, since I want to use this information to do some server-specific initialization before I have a request object to look at? On May 12, 6:56 pm, "Chatchai Neanudorn" <[EMAIL PROTECTED]> wrote: > mod_python

Re: unspecified date field

2008-05-13 Thread Karen Tracey
On Tue, May 13, 2008 at 7:01 AM, sam <[EMAIL PROTECTED]> wrote: > hello, > > i'm looking for a way to authorize user to add date like '2007-00-00', > or '2004-04-00', when he doesn't know precisely the day or the day and > the month of a date. > > is someone has got a way to do this ? > This is

Re: Many to Many Inline Editing

2008-05-13 Thread Wes Winham
So, to make sure I understand the question, you're looking for a solution for editing m2m inline for a ModelForm? Or are you talking about django.views.generic.create_update? I know how to do a "custom" inline edit by overriding a field in the ModelForm, adding a ModelForm from the view for the

Re: Django email and BCC recipients

2008-05-13 Thread Adam Fast
Julien, Looking at the code you linked confirmed my suspicions - just like an email in your favorite email client, you must include a 'to' field when using BCCs. The example linked is sending their message /to/ somewhere...and my suspicion is that is what is causing your messages not to send.

Re: Announcing Deco: static content for Django

2008-05-13 Thread Alex Morega
On May 13, 2008, at 15:37 , wiswaud wrote: > > One thing you might consider, which i've added to my version of > flatpages, is language-support: the ability to specify that a given > page is for fr_ca. My flatpages mod, when serving a given url, will > first look for the most specific language

Re: Django Performance using PyISAPIe on IIS Rocks

2008-05-13 Thread Wes Winham
It's also worth noting that you sometimes lose stability using eAccelerator. I've experienced a notable number of apache segfaults trying to squeeze out some performance, where as .pyc comes out of the box with no instability. -Wes On May 12, 10:30 am, rcs_comp <[EMAIL PROTECTED]> wrote: > Mat,

Url pattern problem

2008-05-13 Thread laspal
hi, my project is as follows. project.app.candidate url patter are as follows: urlpatterns = patterns('', (r'^project/app/', include('project.app.urls')) for app it is: urlpatterns = patterns('', (r'^candidateprofile/',

Re: Announcing Deco: static content for Django

2008-05-13 Thread wiswaud
One thing you might consider, which i've added to my version of flatpages, is language-support: the ability to specify that a given page is for fr_ca. My flatpages mod, when serving a given url, will first look for the most specific language version of the page, then go more and more generalized.

Weird behavior with SMTP connections

2008-05-13 Thread Florian Lindner
Hello, I'm experiencing some odd behavior with SMTP connections and the functions to send mail. The relevant settings in my settings.py: ADMINS = ( ('Florian Lindner', '[EMAIL PROTECTED]'), ) EMAIL_HOST = "xgm.de" EMAIL_HOST_USER = "[EMAIL PROTECTED]" EMAIL_HOST_PASSWORD = "xxx" I use

Re: Drop all tables

2008-05-13 Thread Alex Morega
On May 13, 2008, at 14:22 , mwebs wrote: > > Yes, I am using sqlite, otherwise I would probably use pgadmin, or > another db-acces-tool. You can get a shell for an sqlite database, too: ./manage.py dbshell (works for all database backends)

Getting field original value in overridden save

2008-05-13 Thread bobhaugen
If I override save() in a model, can I get the original value of a field to compare to the new value, to see if it has changed? I know it's easy to do in a form: form.initial['field_name'] But I want to do the same thing regardless of which form is used to change the model instance. In other

Re: Drop all tables

2008-05-13 Thread mwebs
Yes, I am using sqlite, otherwise I would probably use pgadmin, or another db-acces-tool. Deleting the file an run syncdb works perfectly. Thanks for your answers. On 12 Mai, 16:20, "Chris Czub" <[EMAIL PROTECTED]> wrote: > If you are using SQLite you could just delete the database file. If

unspecified date field

2008-05-13 Thread sam
hello, i'm looking for a way to authorize user to add date like '2007-00-00', or '2004-04-00', when he doesn't know precisely the day or the day and the month of a date. is someone has got a way to do this ? thanks --~--~-~--~~~---~--~~ You received this

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread Graham Dumpleton
On May 13, 8:05 pm, Sebastian <[EMAIL PROTECTED]> wrote: > Hi David, > > We have checked all possible timezone related issues with our server > and everything seems fine. The problem is odd as the times keep > changing back and forth. We have turned off all time daemons (ntpd > etc...), which

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread Sebastian
Hi David, We have checked all possible timezone related issues with our server and everything seems fine. The problem is odd as the times keep changing back and forth. We have turned off all time daemons (ntpd etc...), which left us with the conclusion that it must be something to do with Python

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread David Reynolds
On 13 May 2008, at 9:52 am, Sebastian wrote: > I have checked the Python's datetime in a shell and it returns the > correct time. I have also checked the datetime in a manage.py shell > and it also returns the correct value. Perhaps the timezone isn't set correctly on your server? -- David

Re: Changing timestamps in apache with mod-python

2008-05-13 Thread Sebastian
I have checked the Python's datetime in a shell and it returns the correct time. I have also checked the datetime in a manage.py shell and it also returns the correct value. On May 13, 9:29 am, Sebastian <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a question about using Django with apache

Re: Building filter strings dynamically

2008-05-13 Thread AndyB
I struggled to work this out and it's one of those problems that's hard to work out what you should Google for. It would make a worthy addition to the docs IMHO. On May 10, 4:08 am, Greg Fuller <[EMAIL PROTECTED]> wrote: > Thanks to both.  Got it working. > > On May 9, 9:17 pm, Aaron Fay

Re: auto admin for production

2008-05-13 Thread AndyB
I've been down this road and I will say that although you can modify the Admin to do everything you need - it actually turns out to be more complex that just writing your own CRUD (which newforms makes a delight). It's a shame in some ways - Admin is so nearly ready for this kind of thing that

Changing timestamps in apache with mod-python

2008-05-13 Thread Sebastian
Hi All, I have a question about using Django with apache and mod-python. We are based in the UK and it seems that since we have moved to British Summer Time (BST), timestamps are moving back and forth in Apache. Here is a snippet of our apache log: [16/Apr/2008:09:22:05 ]

how to interact with the user from a caught pre_save/post_save signal?

2008-05-13 Thread Viktor Nagy
Hi, I'm kind of new the django and to learn it I've tried to build a simple calendaring app that would save the event's info locally and create an event at Google Calendar as well. The save locally works fine (I use the admin interface). I also know how to create an event at gcal outside of

Re: django_sessions table getting out of hand

2008-05-13 Thread Matt Davies
ahh Thanks Scott, I thought Arien was referring to me writing a script, when in fact there's one in source code already. Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: using templates for javascript files

2008-05-13 Thread Alex Morega
On May 13, 2008, at 08:43 , MrJogo wrote: > > I'd like my javascripts to know MEDIA_URL so they can pull pictures > from there (for a slideshow) and I was wondering the best way of doing > this. > > I figure the best way would be to create one javascript file that goes > through the Django

Re: handling form errors in separate app

2008-05-13 Thread Alex Morega
On May 13, 2008, at 01:00 , Mike Chambers wrote: > > I am working on a simple comment app that is meant to be generic and > reusable. Everything is going well, but the one thing I am having a > problem with is how to handle comment submissions that dont validate. > > For a normal form post, I

wrong URL after invalid form submission

2008-05-13 Thread Mike Chambers
I am doing a simple comment submission form. The page that the comment form is on is: /item/2/ the comment form action url is: /item/comment/ On the submission, I check if the form is valid, and if it is not, I return the form to the user / template, which then displays the form errors. If

Django email and BCC recipients

2008-05-13 Thread Julien
Hi, Apparently others have had trouble with the BCC attribute of the Django email classes [1]. I also have a problem, but a bit different. The 'to' recipients receive the email, but not the 'bcc' recipients. Works: msg = EmailMultiAlternatives(subject, plain_body, sender_email, recipients)