Re: Adding a group, and users to that group

2007-06-06 Thread Russell Keith-Magee
On 6/7/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > > TypeError: create() takes exactly 1 argument (2 given) > > Any ideas? Calling g = Group.objects.create("section81") is the same as calling Group("section81") This yeilds an error because there is no way of knowing which model field the

if 'photo' in request.FILES seems to be not working

2007-06-06 Thread Dushyant Sharma
hi friends i am trying to upload an image file but i am getting errors. code is as follows def thing_add(request): if request.method == 'POST': if 'photo' in request.FILES: # it aint getting here just skip this section try: img =

Re: Newforms: Override FileField save method

2007-06-06 Thread grahamu
Russ, Perhaps you are correct. I am using 5335 patched with #3297, but guess I just don't know how to code (or name?) the necessary method. This explanation of what I'm doing may help: class ToolRun(models.Model): revision = models.IntegerField(blank=True, null=True) project =

Adding a group, and users to that group

2007-06-06 Thread Vincent Nijs
Hi, I am trying to create a group so that I can then add users to that group. I tried the following which is very similar to how you create users. from django.contrib.auth.models import Group g = Group.objects.create('section81') However this give the following error: exceptions.TypeErro

Re: Creating a current path Context Processor

2007-06-06 Thread Evan H. Carmi
James Bennett wrote: > On 6/3/07, Evan H. Carmi <[EMAIL PROTECTED]> wrote: >> I don't know how to pass the context processor with HttpResponse so my >> template can do the ifequal. If someone can send me in the right >> direction it would be glorious. > > Have a look at the documentation, which

Re: Login Right After Creating a New User

2007-06-06 Thread Russell Keith-Magee
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > I'm trying out django and it's been really easy getting the auth > library up and running. I hit an issue where I want to login a new > user right after they've registered and take them to their profile > page. > > I

5000$ in few days

2007-06-06 Thread dee dj
a great news for you having the e-gold account ! Only with 0.5$ from your e-gold, you will have the opportunity to get 5000$. It's no doubt because I've proved it. Just click here http://www.springfund.com/?own=pa2_cho - Kunjungi halaman depan

Login Right After Creating a New User

2007-06-06 Thread [EMAIL PROTECTED]
Hi Everyone, I'm trying out django and it's been really easy getting the auth library up and running. I hit an issue where I want to login a new user right after they've registered and take them to their profile page. I tried calling the auth.login method but I got an error saying that the

Re: Saving POSTed Data

2007-06-06 Thread Matt McClanahan
On Jun 6, 8:06 pm, robo <[EMAIL PROTECTED]> wrote: > So when data containing fields from both models get POSTed. I would > write (pseudo) code like so ?: > > if request.method == 'POST': > ... > Orders = form_for_model(Order) > f = Orders(prefix='orders') > Order_Details =

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread Nate Straz
On Wed, Jun 06, 2007 at 10:41:15PM -, ATLBeer wrote: > TheBest.xappx: No module named xappx.models > > > > > > [EMAIL PROTECTED] TheBest]# ls -al > > > > > drwxr-xr-x 9 thebest bestx 4096 Jun 6 15:35 . > > > > > drwxr-xr-x 3 thebest bestx 4096 Jun 6 15:31 .. > > > > > drwxr-xr-x 2 thebest

Re: Authenticated user

2007-06-06 Thread birkin
José, > ... I thought I can do that overriding the save method of my > model class but the problem is how can I know the currently logged user? ... I just had to do this, and found and successfully implemented this "threadlocals middleware" solution:

Re: Saving POSTed Data

2007-06-06 Thread robo
So when data containing fields from both models get POSTed. I would write (pseudo) code like so ?: if request.method == 'POST': ... Orders = form_for_model(Order) f = Orders(prefix='orders') Order_Details = form_for_model(Order_Detail) f2 = OrderDetails(prefix='order_details') ... f.save()

Re: Django Users Portuguese

2007-06-06 Thread semente
The group link: http://groups.google.com/group/django-users-portuguese Sorry. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Using login_required with direct_to_template?

2007-06-06 Thread [EMAIL PROTECTED]
> urlpatterns = patterns('', > (r'^someurl/', login_required(direct_to_template), { 'template': > 'template.html', }), > ) That did it perfectly - thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: GenericRelation support in GeoDjango

2007-06-06 Thread Justin Bronn
> I am wondering if it is known what needs to be done to bring the > contrib.contenttypes functionality up to date in the gis branch. > Specifically I'm looking for the generic relation support. I hadn't used or tried out generic relations until today, it's good stuff. The GIS branch is

Django Users Portuguese

2007-06-06 Thread semente
Was created the list Django User Portuguese[1]. The propostity of the list is to congregate brazilians, portugueses and any another speak of the portuguese language, independent of the your nacionality. Ours objective is to help of those that not speak english and need aid about of the django.

Re: Authenticated user

2007-06-06 Thread Kelvin Nicholson
> > class Item(models.Model): > created_by = models.ForeignKey(User, editable = False) > > I set editable = False because I don't want this field appears in the > admin interface but it need to be in the database table. So, what I > want is when a user create an Item, it automatically

Re: Another Django Site with Source Code

2007-06-06 Thread Kelvin Nicholson
On Wed, 2007-06-06 at 09:22 -0700, Werner wrote: > Hello Kelvin, > > just a few sugsession: > > * use sqlite3 to have a simple & fast setup Ahh, good idea. > * use CACHE_BACKEND = 'dummy:///' (again easier for the first steps) Another good idea! > * remove Google Analytics from the

Re: DBMigrations - an library/tool for database evolution

2007-06-06 Thread Kelvin Nicholson
Sounds great Marinho, thanks for contributing this! *bookmarked* Kelvin -- Kelvin Nicholson Voice: +886 9 52152 336 Voice: +1 503 715 5535 GPG Keyid: 289090AC Data: [EMAIL PROTECTED] Skype: yj_kelvin Site: http://www.kelvinism.com

Re: DBMigrations - an library/tool for database evolution

2007-06-06 Thread Russell Keith-Magee
On 6/6/07, Marinho Brandao <[EMAIL PROTECTED]> wrote: > > Hello all, > > first, my english is not *fantastic", forgive em some wrong phrase :) No need to apologise. Your English is much better than my (I'm guessing here) Portuguese. :-) > I've created at last days a project called DBMigrations

Re: Data versioning (staging)

2007-06-06 Thread Russell Keith-Magee
On 6/6/07, oggie rob <[EMAIL PROTECTED]> wrote: > > Hi all, > I have some models and need to add the capability of versioning the > data. Basically for each object that represents a page, I want to have > a "running" version and an "editing" version of the same page, so that > users can see the

Re: Newforms: Override FileField save method

2007-06-06 Thread Russell Keith-Magee
On 6/7/07, grahamu <[EMAIL PROTECTED]> wrote: > > Does anyone here know where/how I should override the default save > method for a newforms-based FileField? It looks like you're looking for the functionality requested in ticket #3297. The patch that is there works, but probably won't be

Re: Is composite primary key possible?

2007-06-06 Thread Russell Keith-Magee
On 6/7/07, Lars Stavholm <[EMAIL PROTECTED]> wrote: > > And then I hit a snag: there's one table that uses a composite > primary key made up of three fields. (the attachment table in trac.db) > > I've scanned the doco and I've googled, this is what I came up with: > > o define one of the fields

Re: Uploading Image, Marking a Field as True

2007-06-06 Thread Russell Keith-Magee
On 6/6/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > Alright, example model: > > # Baseball > baseball = models.PositiveIntegerField('Baseball Skill Level', > blank=True, null=True, maxlength=4) > baseball_approved = models.BooleanField('Approved', default=False) > baseball_proof =

Is composite primary key possible?

2007-06-06 Thread Lars Stavholm
Hi All, I'm trying to get a django model created from an already existing database using the inspectdb feature of django. (it's the trac db if anyone's interested). At the first look: brilliant! And then I hit a snag: there's one table that uses a composite primary key made up of three fields.

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread ATLBeer
Yeah... the directory structure is confusing but, I'm pretty sure I have it correct [EMAIL PROTECTED] ~]# cd /home/thebest/TheBest/alpha1/TheBest/ [EMAIL PROTECTED] TheBest]# ls -l total 112 drwxr-xr-x 2 thebest apache 4096 Jun 6 15:35 CRON drwxr-xr-x 2 thebest apache 4096 Jun 6 15:30 x

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread Michael Trier
Actually from what I can tell he has his path incorrect. If you have a structure like this: /home/thebest/TheBest Then you need to have your apache configuration like this: SetHandler python-program PythonPath "['/home/thebest'] + sys.path" PythonHandler django.core.handlers.modpython

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread Don Arbow
On Wednesday, June 6, 2007, at 01:58 PM, [EMAIL PROTECTED] wrote: > > I'm trying to push a beta build of an App I wrote to my Apache server > but, I'm running into some problems (I'm pretty sure it's permission > related) > [code] > [EMAIL PROTECTED] alpha1]# ls -al > total 24 > drwxr-xr-x 3

Re: Newforms: Override FileField save method

2007-06-06 Thread grahamu
Just a clarification, the model instance save is being done via form.save(), not directly from the instance. Graham On Jun 6, 3:43 pm, grahamu <[EMAIL PROTECTED]> wrote: > Does anyone here know where/how I should override the default save > method for a newforms-based FileField? > >

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread ATLBeer
I can't su into apache but, I can su into thebest (the user who 'own's' the application) export PYTHON_PATH=/home/thebest/TheBest/alpha1 export DJANGO_SETTINGS_MODULE=TheBest.settings django-admin.py validate TheBest.xappx: No module named xappx.models Interesting error... At least it's

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread Joseph Heck
Well, it certainly looks right. I guess my next step in debugging would be to "act like the webserver" as much as possible to make sure I didn't miss anything. su - apache cd / export PYTHONPATH=/home/thebest/TheBest/alpha1 export DJANGO_SETTINGS_MODULE TheBest.settings django-admin.py validate

Re: Saving POSTed Data

2007-06-06 Thread Matt McClanahan
On Jun 6, 10:00 am, robo <[EMAIL PROTECTED]> wrote: > I'm wondering if someone can help me out with a similar problem. I'm > trying to save to 2 different models (Order and Order_Detail, where in > Order_Detail there is a foreign key to Order) from one click of the > Submit button. How would I

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread ATLBeer
Apache is running under the user/group apache I added chgrp'd apache to the directory (recursively) and chmod'd as well. Still the errors. I also added apache to the group bestx. This is the group that the user 'thebest' belongs to. On Jun 6, 6:07 pm, "Joseph Heck" <[EMAIL PROTECTED]>

Re: Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread Joseph Heck
What user does apache run as - set group read permissions (at least) to that. If you're using Ubuntu or Debian, it is likely "www-data", so the following commands (as root) would do the trick: chgrp -R www-data /home/thebest/TheBest/ chmod -R g+r /home/thebest/TheBest/ -joe On 6/6/07, [EMAIL

Newforms: Override FileField save method

2007-06-06 Thread grahamu
Does anyone here know where/how I should override the default save method for a newforms-based FileField? Specifically, I want to dictate the location where the file is saved because the location will be different for every instance of my model. Additionally I want to remove any existing file

Re: Simple Template Dict Problem

2007-06-06 Thread [EMAIL PROTECTED]
w : {1: 10, 2: 10, 19: 0, 29: 0, 30: 10} {% for d in w %} {{d.1}} {{d.2}} {% endfor %} d ISN'T an interation of a loop incrementing. It's interating THROUGH w. So d is one element of w each iteration list : {'a','b','c','d'} {% for item in list %} {{item}} {% endfor %} a b c d If your

Re: Many to many in template question

2007-06-06 Thread [EMAIL PROTECTED]
This doesn't exactly answer your question (because I'm a huge noob still), but M2M relationships work in both directions: http://www.djangoproject.com/documentation/db-api/#many-to-many-relationships I think to access it in the template, you'd just need to pass the information from your view?

Django Deployment Headache (Apache Permissions?)

2007-06-06 Thread [EMAIL PROTECTED]
I'm trying to push a beta build of an App I wrote to my Apache server but, I'm running into some problems (I'm pretty sure it's permission related) Here's the details. httpd.conf [code] SetHandler python-program PythonPath "['/home/thebest/TheBest/alpha1'] + sys.path" PythonHandler

Many to many in template question

2007-06-06 Thread [EMAIL PROTECTED]
I know I'm making this harder than it has to be, but the logic is just escaping me. I've got two models, say "Foo" and "Bar" "Bar" establishes a manyToManyField relationship with "Foo": foos = models.ManyToManyField(Foo, filter_interface=models.HORIZONTAL, null=True, blank=True) I'm using a

Re: problem representation

2007-06-06 Thread Alfonso Ali
another option could be use the contenttype framework, it's not well documented but using the source and examples could help, take a look here http://feh.holsman.net/articles/2006/06/03/django-contenttype to get an idea about the framework and links to examples. Regards, Ali On 6/4/07, Joseph

Re: form_for_model, custom save(), and saving excluded fields?

2007-06-06 Thread ringemup
> I'd suggest ditching form_for_model and writing a custom form; it's > extremely easy to do that (as opposed to trying to shoehorn things > into form_for_model), and really any time you need customized behavior > you should be tailoring a form exactly to suit; anything else is > asking for pain

Re: unique and core with edit_inline breaks admin

2007-06-06 Thread kent
This is a bug, see http://code.djangoproject.com/ticket/565 Kent --~--~-~--~~~---~--~~ 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: any django users in Cuba?

2007-06-06 Thread Alfonso Ali
yes, at least in infomed we are two, i even offered two conferences about django, one as part of Lihab-LUG meeting's and the other as part of a course about python and free software, so i expect the number of users increase with the time ;), i also have in plan a course specifically about django

Simple Template Dict Problem

2007-06-06 Thread Trey
I have a simple problem that I am not quite sure why it won't work. Take this dict. {1: 10, 2: 10, 19: 0, 29: 0, 30: 10} w is simply a list of numbers {% for d in w %} {{dict.1}} {{dict.d}} {% endfor %} The first line, dict.1 works fine. But when I try to use the d variable for the dict

can this db error be related to db://cache?

2007-06-06 Thread omat
I was receiving a notification of a "ProgrammingError: current transaction is aborted, commands ignored until end of transaction block" mail from the production server which I cannot reproduce neither in the development server nor in the production. The error seems to happen randomly nearly for

Re: Using login_required with direct_to_template?

2007-06-06 Thread Nathaniel Whiteinge
Until Malcolm swoops in with the answer to your question about the docs, you can use callables in your urlconf to accomplish what you want. from django.contrib.auth.decorators import login_required from django.views.generic.simple import direct_to_template urlpatterns = patterns('',

Re: Unique for user, auto_slug?

2007-06-06 Thread bjornkri
unique_together, how did I miss that? Thanks alot, I'll give this a try. :) Björn On Jun 6, 5:07 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > I don't have a problem with two or three or ten users entering Harry > > Potter into the database; annoyingly though, all but the first user > > will

Saving POSTed Data

2007-06-06 Thread robo
I'm wondering if someone can help me out with a similar problem. I'm trying to save to 2 different models (Order and Order_Detail, where in Order_Detail there is a foreign key to Order) from one click of the Submit button. How would I distinguish the POSTed data between which form fields belong

GenericRelation support in GeoDjango

2007-06-06 Thread Brian Luft
I am wondering if it is known what needs to be done to bring the contrib.contenttypes functionality up to date in the gis branch. Specifically I'm looking for the generic relation support. I tried the naive approach of copying over the directory from the Django trunk but it errors out when

Freelance Django developers wanted!

2007-06-06 Thread Siliconbits
We are currently looking for Django developers to join us on a freelance basis. Location is irrelevant as long as you have a fast and reliable Internet access. You will be working from home, so you should be able to work independently, but also be able to demonstrate effective people and time

What is the current state of implementing admin change list functionality outside the admin?

2007-06-06 Thread [EMAIL PROTECTED]
I'm writing some task management software, and I'd like to implement the admin page change list functionality in my application. Specifically, I'd like to be able to use the search, filter, and date heirarchy functionality in a grid of tasks, but only displaying items assigned to the currently

Re: Another Django Site with Source Code

2007-06-06 Thread Werner
Hello Kelvin, just a few sugsession: * use sqlite3 to have a simple & fast setup * use CACHE_BACKEND = 'dummy:///' (again easier for the first steps) * remove Google Analytics from the base.html Template :-)) I am still a django virgin and very frustrated there aren't more *good & readable*

Re: Using login_required with direct_to_template?

2007-06-06 Thread [EMAIL PROTECTED]
> An explanation of what you expect to happen and what is actually > happening for a start, along with any error message. > > How are your trying to use login_required in your template? Your initial > paragraph says you are trying to use the login_required *decorator*, but > that is something

Re: form_for_model, custom save(), and saving excluded fields?

2007-06-06 Thread James Bennett
On 6/6/07, ringemup <[EMAIL PROTECTED]> wrote: > If I've got a form_for_model but I've excluded some fields from it > entirely (because I don't want people to be able to find the values in > hidden fields, or even try to submit them), how do I set values back > for those fields before saving the

form_for_model, custom save(), and saving excluded fields?

2007-06-06 Thread ringemup
Yes, another newforms question If I've got a form_for_model but I've excluded some fields from it entirely (because I don't want people to be able to find the values in hidden fields, or even try to submit them), how do I set values back for those fields before saving the data? When I try

Re: robots.txt?

2007-06-06 Thread Rob Hudson
Great. Thanks for all the help everyone. -Rob On Jun 5, 9:56 am, "Joseph Heck" <[EMAIL PROTECTED]> wrote: > Yes, you'd set in something like: > > >SetHandler None > > > (which is exactly what I've done) > > -joe > --~--~-~--~~~---~--~~ You received this

JOB: Full-time Django/Python/etc position in NYC

2007-06-06 Thread Jeff Forcier
Hey folks, I've been tasked by my employer to find another full-time developer to assist me with a fairly large Django-based intranet project, as well as to curate/create other miscellaneous small projects in various languages (Python, PHP, shell scripts, etc). The workplace is a medium-sized

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread ilDave
That's it! I was going crazy looking inside the settings.py, and the problem was in the httpd.conf, that I assumed was correct :) Thanks a lot! On Jun 6, 5:10 pm, "Deryck Hodge" <[EMAIL PROTECTED]> wrote: > On 6/6/07, ilDave <[EMAIL PROTECTED]> wrote: > > > > > The line is there, inside the

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread Deryck Hodge
On 6/6/07, ilDave <[EMAIL PROTECTED]> wrote: > > The line is there, inside the settings.py > It looks like > ROOT_URLCONF = 'testdrorys.urls' > ('testdrorys' is the name of my project) > and the file urls.py is in the same directory as settings.py > > I'm getting confused... On a second look,

Re: Unique for user, auto_slug?

2007-06-06 Thread Tim Chase
> I don't have a problem with two or three or ten users entering Harry > Potter into the database; annoyingly though, all but the first user > will get an error saying the slug must be unique. Can I define the > slug as having to be unique for the user? Looks like you want the "unique_together"

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread ilDave
The line is there, inside the settings.py It looks like ROOT_URLCONF = 'testdrorys.urls' ('testdrorys' is the name of my project) and the file urls.py is in the same directory as settings.py I'm getting confused... On Jun 6, 4:56 pm, "Deryck Hodge" <[EMAIL PROTECTED]> wrote: > On 6/6/07,

Re: Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread Deryck Hodge
On 6/6/07, ilDave <[EMAIL PROTECTED]> wrote: > AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF' > > > What's wrong with my configuration? It seem that python can't find the > urls.py file, but it is in the right place and everything is readable > by apache... > Your settings

inheriting a models.Model inherited class

2007-06-06 Thread [EMAIL PROTECTED]
I hope the subject isn't too confusing but what I want to do seems pretty common so I think I might be missing something obvious (or should be doing in a different way) class Person(models.Model): name = models.TextField() def get_whatever: pass

Settings object has no attribute 'ROOT_URLCONF': what does this message mean?

2007-06-06 Thread ilDave
Hi all, I'm trying to set up a new django app under Apache and mod_python. I created a new project called 'testdrorys', and inside it a new app called 'etichette'. The full path of my project is /var/www/html/testdrorys/testdrorys/myapp The first testdrorys dir is the main directory of the

Unique for user, auto_slug?

2007-06-06 Thread bjornkri
The idea: Users can enter books into a database. The books can be accessed as follows: http://website.com// Here's a simple model: class Book(models.Model): title = models.CharField(maxlength=200) author = models.CharField(maxlength=200) slug =

Re: edit_inline causing problems with multiple relations

2007-06-06 Thread James Punteney
Thanks Malcolm. I went ahead and filed a ticket for this issue. http://code.djangoproject .com/ticket/4490 --James On 6/6/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-05 at 13:01

Re: Music E-zine development in Django

2007-06-06 Thread Ian Lawrence
Hi, Can you post me the svn link too to play around with..i am involved with a Brazilian Free Studio Project called Estudiolivre (http://estudiolivre.org) and it would be great to co-operate. Regards Ian On 6/6/07, temnoregg <[EMAIL PROTECTED]> wrote: > > thanks for response, > > any closer date

Re: Data versioning (staging)

2007-06-06 Thread ringemup
No clue if this would work, but... Could you create a sort of a wrapper object that basically just takes two foreign keys -- one to a "production" content object and one to a "staging" object? Then when you serve up content, instead of calling on a content object, you call on a wrapper object,

Re: Music E-zine development in Django

2007-06-06 Thread temnoregg
thanks for response, any closer date for me? --~--~-~--~~~---~--~~ 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,

DBMigrations - an library/tool for database evolution

2007-06-06 Thread Marinho Brandao
Hello all, first, my english is not *fantastic", forgive em some wrong phrase :) I've created at last days a project called DBMigrations [1] hosted on Google Code and that the goal is a library/tool for database evoluntions and migrations, version based, starting from schema, but in future will

Re: yearless date

2007-06-06 Thread dailer
thx, since I don't know python or django, just looking for some level of comfort I'm on track. Right now I'm actually playing with sub- classing a Field class and having *some* luck with it. On Jun 6, 12:05 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/6/07, dailer <[EMAIL

Data versioning (staging)

2007-06-06 Thread oggie rob
Hi all, I have some models and need to add the capability of versioning the data. Basically for each object that represents a page, I want to have a "running" version and an "editing" version of the same page, so that users can see the "approved" version yet I can work on a newer one. (I've found

Re: Problems with nesh thumbnails and whitespaces

2007-06-06 Thread Alessandro Ronchi
2007/5/31, Michael Newman <[EMAIL PROTECTED]>: > > You mean White Space in the url of the image? In the name. If I upload 'An image file,jpg' or 'an-image-file.jpg' I get thumbnail-none.jpg. Any solution? -- Alessandro Ronchi Skype: aronchi - Wengo: aleronchi http://www.alessandroronchi.net -

Re: Problems with nesh thumbnails and whitespaces

2007-06-06 Thread Alessandro Ronchi
2007/5/31, Kenneth Gonsalves <[EMAIL PROTECTED]>: > ahh - thanks for that tip, some of my sites people were complaining > that they were getting this none.jpg thing and i couldnt replicate > the error and they were thinking that I am an idiot and i was > thinking that they were idiots. White

search_fields an foreignkey

2007-06-06 Thread smalltope
Hello everyone. I have used Django (0.96) for a few days. I have problem with model: http://www.herbaciarnia.net/models.py And my problem is that searching in admin interface always returns all records. When I change search_fields, for example: search_fields = ('katalog',) - then everything

Simple Django search

2007-06-06 Thread Maciej Bliziński
Hi Djangoers! I've been interested in a search feature in Django for some time now. I did some research lately and found the following posts about it: * Search Functionality http://tinyurl.com/28talc * Search options http://tinyurl.com/2xuno3 * How to integrate a search engine in a Django site?

Uploading Image, Marking a Field as True

2007-06-06 Thread Bryan Veloso
Alright, example model: # Baseball baseball = models.PositiveIntegerField('Baseball Skill Level', blank=True, null=True, maxlength=4) baseball_approved = models.BooleanField('Approved', default=False) baseball_proof = models.ImageField('Proof', upload_to="/images/proof/ baseball",

Re: Django meetup in Munich

2007-06-06 Thread Wolfram Kriesing
I will reserve a table under my name "Kriesing" just ask for it and you will find us. cu there Wolfram On 6/5/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > Hi devs in Munich, > > we are a team of a couple django users and would be interested in > meeting up with other django/python/webX.X

Re: Page 404 is getting old fast

2007-06-06 Thread Russell Keith-Magee
On 6/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Request URL:http://localhost:8000/biz/article/ > > Using the URLconf defined in mygration.urls, Django tried these URL > patterns, in this order: > >1. ^admin/ >2. ^entrys/ >3. ^articles/ >4. ^address/ > > The current

Page 404 is getting old fast

2007-06-06 Thread [EMAIL PROTECTED]
I went through the tutorial using my own models and data. I have data loaded in the databases. I am using version .95 and i a trying to follow along with using generic views from the documentation and chapter 09 of the djangobook. here are my project urls urlpatterns = patterns('', # For

Re: problems using django on lighttpd with fastcig

2007-06-06 Thread Paul Rauch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jordi.f schrieb: > Thanks! > > -- Jordi Funollet > > > > > thank you all, too this solved the prob :) greetz Paul Rauch -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

Re: Integrating Selenium web tests with django test suite

2007-06-06 Thread Almad
On Jun 4, 4:15 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/2/07,Almad<[EMAIL PROTECTED]> wrote: > I haven't played with Selenium integration extensively; however, the > broad use case (tests against a live server) is one that I am > interested in supporting. > #2879 contains a