Random UnicodeDecodeError ??

2008-02-13 Thread Meista
Hi, im getting a UnicodeDecodeError in my application. The strange thing is that it appears on the very first request after a restart. Then everything works fine but the error appears sporadic over the day. The app runs as fastcgi. Django version is trunk from 01/27/2008 request.session['akt_Firm

Re: Xcode as Django IDE

2008-02-13 Thread Eric Abrahamsen
Oh... Well, TextMate has esc to cycle through completion based on words previously used in the document, but other than that it mostly works off tab triggers. On Feb 14, 2008, at 2:56 PM, [EMAIL PROTECTED] wrote: > > I don't think thats what he meant be syntax completion, usually that > mea

Re: Django Import "mysite" Problem

2008-02-13 Thread Malcolm Tredinnick
On Thu, 2008-02-14 at 13:07 +0530, Sairam Krishnamurthy wrote: > Hi, > > I created the tables in the database using models.py. It was > successful. I tried to write a script to populate the database. My > project name is "myproject". I have an app "test" inside that project. > > When i tried to

Django Import "mysite" Problem

2008-02-13 Thread Sairam Krishnamurthy
Hi, I created the tables in the database using models.py. It was successful. I tried to write a script to populate the database. My project name is "myproject". I have an app "test" inside that project. When i tried to import a class "Users" from models.py("from myproject.test.models import Users

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread grahamu
On Feb 14, 12:04 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > That's because you are expecting things from reverse() that it > explicitly doesn't do. In particular, the "args" and "kwargs" parameters > to reverse are only checked against capturing groups in the URL's > regular expression.

Python & Django Noob at Django Sprint at PyCon 2008?

2008-02-13 Thread lirit
I'm new to Python and Django. I will be at the PyCon 2008. I'm thinking about staying after the talks for the Django Sprint, but I'm not sure what I can contribute... any suggestion? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread Malcolm Tredinnick
On Wed, 2008-02-13 at 22:35 -0800, grahamu wrote: > > On Feb 13, 7:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > [...] > > As Alex pointed out, you're calling reverse() on something that isn't a > > direct URL pattern. Don't do that. It makes no sense to call reverse() > > on somethin

Re: Xcode as Django IDE

2008-02-13 Thread [EMAIL PROTECTED]
I don't think thats what he meant be syntax completion, usually that means if I start typing a keyword/function/ or possibly a variable name it will start to complete it. On Feb 14, 12:48 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > Make sure you've got the document recognized as a Django tem

Re: Xcode as Django IDE

2008-02-13 Thread Eric Abrahamsen
Make sure you've got the document recognized as a Django template (ie it says "HTML (Django)" at the bottom of the page). Try typing "if" and hitting tab; does it turn into a set of if/endif template tags? Look under the gear menu, also at the bottom of the page, for other stuff you can do

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread grahamu
On Feb 13, 7:15 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [...] > As Alex pointed out, you're calling reverse() on something that isn't a > direct URL pattern. Don't do that. It makes no sense to call reverse() > on something that is actually a collection of URL patterns. Instead, > pick

Re: Xcode as Django IDE

2008-02-13 Thread Francis
how do you get syntax completion? I can't get it work with textmate. And it's one reason I'm sticking with eclipse (pydev). On 13 fév, 17:18, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > Textmate works great for me. I use GetBundle > (http://projects.validcode.net/getbundle) to get the Django bund

how to set initial value for select multiple

2008-02-13 Thread cschand
I have a form class NetworkForm(forms.Form): choices = [] for network in Network.objects.all(): choices.append((network.id, network.name)) network = forms.CharField(widget=forms.CheckboxSelectMultiple(choices=choices)) and in view i called this network f

Null ManyToManyFields

2008-02-13 Thread SeanFromIT
I have a class with ManyToManyFields that are 'optional' relations. If I set the ManyToManyField to null=True and blank=True, the admin interface treats it as optional, but when I hit Save I get the error: OperationalError at /admin/app/report/add/ (1048, "Column 'addedBy_id' cannot be null") So

Re: Null ManyToManyFields

2008-02-13 Thread Malcolm Tredinnick
On Wed, 2008-02-13 at 19:34 -0800, SeanFromIT wrote: > I have a class with ManyToManyFields that are 'optional' relations. If > I set the ManyToManyField to null=True and blank=True, the admin > interface treats it as optional, but when I hit Save I get the error: > > OperationalError at /admin/

Can't login to /admin/ on production server over FastCGI

2008-02-13 Thread Dave Dash
When I go to /admin/ and login the screen just returns to the login screen again with no errors or anything. I have SESSION_COOKIE_DOMAIN set propperly as well and that didn't help (the faq said it might). I then tried using the built in server, and I ran that using the same domain, but port 800

Re: def __str__ invalid syntax

2008-02-13 Thread SeanFromIT
The problem was blank space mismatch. Choose your IDE wisely... On Feb 3, 9:10 pm, SeanFromIT <[EMAIL PROTECTED]> wrote: > class Report(models.Model): > ID = models.AutoField(primary_key=True) > Abstract = models.CharField(blank=True, maxlength=60) > def __str__(self): > retur

How to return Admin to previous filters after save?

2008-02-13 Thread cyberjack
I have an admin interface managing a few thousand records. Finding a record requires heavy use of multiple list_filter selections. However, once a user edits a record, the admin interface redirects to the root admin URL and loses the filter state. Is there an easy way to have the admin editor ret

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread Malcolm Tredinnick
On Wed, 2008-02-13 at 15:22 -0800, grahamu wrote: [...] > >>> reverse('eat') > Traceback (most recent call last): [...] > NoReverseMatch > > Is there a workaround for this issue? Am I doing something > incorrectly? As Alex pointed out, you're calling reverse() on something that isn't a direct U

Re: FloatField Size on Generic Views

2008-02-13 Thread Malcolm Tredinnick
On Wed, 2008-02-13 at 10:35 -0800, [EMAIL PROTECTED] wrote: > Is there a way to set the "size" attribute of FloatFields in Generic > Views? Currently they're pretty big, and it seems like max_digits was > deprecated in FloatFields with the arrival of DecimalFields. You're confusing two concepts

Re: Using the sites-system with a twist - is it possible?

2008-02-13 Thread Malcolm Tredinnick
On Wed, 2008-02-13 at 14:52 +0100, Johan Liseborn wrote: [...] > As far as I can tell, the Django site-system relies on the different > sites having different domains, Well not exactly, but close. The idea is one site per settings file. At the moment you can't change that to be more dynamic. It'

TemplateDoesNotExist at /admin/

2008-02-13 Thread Roy Lowrance
I am new to Django and working my way through the Django book, which I believe is the 0.96 release. I'm up to Chapter 6 and trying to get the admin site to work. When my browser goes to http://.../admin/, I get the message in the subject line. I'm guessing that the admin directory under mysite ne

Re: Xcode as Django IDE

2008-02-13 Thread Eric Abrahamsen
> Textmate, and a couple of terminal windows for mysql and ipython. > 2 monitors helps ;-) > > what does 'getbundle' do? I already have django specific templates in > textmate via the "mateup" script on their site. Another happy TextMate user! GetBundle is just a simpler interface (itself a bund

Releasing django-treemenus: a generic menu application for Django

2008-02-13 Thread Julien
Hi all, I hope it's ok if I do this announcement here, as my blog hasn't been hooked up to the Django community aggregator yet . I remember when starting using Django, I was a bit disappointed that there was no easy-to-use or straight-forward application to build menus, at least I didn't find an

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread Dj Gilcrease
Try writing your urls like this urlpatterns = patterns('', url(r'^drink/', 'views.func', kwargs={'myname':'drink'}, name='drink'), url(r'^eat/', 'views.func', kwargs={'myname':'eat'}, name='eat'), url(r'^exercise/', 'views.func', kwargs={'myname':'exercise'}, name='exercise'), url(r'^s

Re: Links to images in Blog posts

2008-02-13 Thread Eric Abrahamsen
> Do you have any idea if it is possible to modifyupload_toin a way   > that it uses the ID of the the object? That one gets asked a lot: http://groups.google.com/group/django-users/browse_thread/thread/7e193c1532920a6f# eric --~--~-~--~~~---~--~~ You received th

Re: OR lookups

2008-02-13 Thread [EMAIL PROTECTED]
@Julien as did I. On Feb 13, 5:20 am, Julien <[EMAIL PROTECTED]> wrote: > Maybe a quick mention in the docs saying: "Warning, this might not > work in such and such case. But it is worked on and should be > eventually fixed, see the queryset-refactor branch." > > I have to say that I spent quite

Releasing django-treemenus: a generic menu application for Django

2008-02-13 Thread Julien
Hi all, I first meant to announce it on the Django community aggregator, but Jacob hasn't replied to my request of hooking up my blog to it yet :) So I thought I'd post it here instead. I remember when starting using Django, I was a bit disappointed that there was no easy-to-use or straight-for

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread grahamu
Thanks for your explanation, Alex. Unfortunately, "reverse('views.func')" always returns the first match for that function in urlpatterns. My objective is to distinguish between two different URL patterns which both resolve to the same view function. Given your suggestion, I tried the following:

Re: What are the advantages of using Django for building things like blogs and CMS?

2008-02-13 Thread Doug B
> Basically I'm looking for some users to placate my fear that I'll run > into insurmountable problems down the road and I'll end up kicking > myself for not going with a CMS or blog system because the problems > could have been trivially addressed with those systems. It all depends on your needs

Re: What are the advantages of using Django for building things like blogs and CMS?

2008-02-13 Thread [EMAIL PROTECTED]
Well for one thing you get the built in admin! Also for your specific problem you mentioned you would go download comment-utils by James Bennet. On Feb 13, 5:57 pm, fyleow <[EMAIL PROTECTED]> wrote: > I have been reading a lot about Django and created some test websites > but nothing serious yet

Re: TemplateDoesNotExist for django-registration (but it does)

2008-02-13 Thread jonathan . lukens
Hi Karen, Thanks, that is what the problem was. Doh. Jonathan On Feb 13, 7:11 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Feb 13, 2008 6:04 PM, <[EMAIL PROTECTED]> wrote: > > > > > > > Trying to get django-registration up and running, and I bumped into > > this error: > > > TemplateDoes

Re: TemplateDoesNotExist for django-registration (but it does)

2008-02-13 Thread Karen Tracey
On Feb 13, 2008 6:04 PM, <[EMAIL PROTECTED]> wrote: > > Trying to get django-registration up and running, and I bumped into > this error: > > TemplateDoesNotExist at /accounts/register/ > registration/registration_form.html > > BUT: below, I can see that Django actually found the template, which I

What are the advantages of using Django for building things like blogs and CMS?

2008-02-13 Thread fyleow
I have been reading a lot about Django and created some test websites but nothing serious yet. I really like it and have been considering using it to create my own website which would probably include some sort of blog and various other CMS type functionality. I think it would be a great way to l

[OT][ANN] Nanoki

2008-02-13 Thread Petite Abeille
[Not even remotely related to Django, Python or anything] Nanoki, a sweet little wiki engine implemented in Lua [1]. http://alt.textdrive.com/nanoki/ Online demo: http://svr225.stepx.com:3388/nanoki Kind regards, PA. [1] http://www.lua.org/about.html --~--~-~--~~~--

Re: Upgrade to 0.96.1

2008-02-13 Thread Russell Keith-Magee
On Feb 14, 2008 8:03 AM, Robert Swerdlow <[EMAIL PROTECTED]> wrote: > > We are currently using 0.96 and want to upgrade to 0.96.1, but it is > not clear if it is backward compatible. > > For example, does 0.96.1 have the newforms change from clean_data to > cleaned_data? Which changes are in 0.96

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread Alex Koshelev
Hi, graham Imagine that your urls2.py has some number of patterns. And then you call `reverse('eat')` what of them have to be returned? So to get proper result you have to write something like this `reverse('views.func')` On 14 фев, 02:22, grahamu <[EMAIL PROTECTED]> wrote: > Lots of people corr

Re: create user, using generic.auth

2008-02-13 Thread dall
Hmm, I was think so, but not sure, thanks! On Feb 13, 10:28 pm, Michael Newman <[EMAIL PROTECTED]> wrote: > Before saving the user you can add all your information after you call > the function. So: > new_user = User.objects.create_user(user name, email, password) > new_user.first_name = 'john' >

reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread grahamu
Lots of people correctly suggest using named url patterns and the {% url %} template tag to obtain a URL. The concept is great and follows the DRY principle. However, I believe that if a pattern has an "include()" instead of a view function, the existing mechanism fails. An example of the problem,

Re: Xcode as Django IDE

2008-02-13 Thread Ian Holsman
Alex Ezell wrote: > Textmate works great for me. I use GetBundle > (http://projects.validcode.net/getbundle) to get the Django bundle > which does syntax completion and highlighting for Django-specific > Python files and Django template HTML. > > Textmate, and a couple of terminal windows for m

Re: Django with SQLAlchemy?

2008-02-13 Thread Russell Keith-Magee
On Feb 14, 2008 2:21 AM, Michael Hipp <[EMAIL PROTECTED]> wrote: > > I've been reading stuff like this: > http://groups.google.com/group/django-developers/browse_thread/thread/5149e1c60dc65bff/a177bb34cfde1ec7 > > And a zillion others on a Google search of 'django sqlalchemy'. > > What's the statu

TemplateDoesNotExist for django-registration (but it does)

2008-02-13 Thread jonathan . lukens
Trying to get django-registration up and running, and I bumped into this error: TemplateDoesNotExist at /accounts/register/ registration/registration_form.html BUT: below, I can see that Django actually found the template, which I created and placed in the place specified by the documentation:

Upgrade to 0.96.1

2008-02-13 Thread Robert Swerdlow
We are currently using 0.96 and want to upgrade to 0.96.1, but it is not clear if it is backward compatible. For example, does 0.96.1 have the newforms change from clean_data to cleaned_data? Which changes are in 0.96.1 and which are later? Bottom line: what changes do we need to worry abou

Re: 'unicode' object has no attribute 'strftime'

2008-02-13 Thread Alex Koshelev
You create string object with bits from form. But you have to make date object. Example: from datetime import date _dob = date( year = form.clean_data['dob_year'], month = form.clean_data['dob_month'], day = form.clean_data['dob_day'] )

Re: 'unicode' object has no attribute 'strftime'

2008-02-13 Thread Darthmahon
Hi Alex, Not quite sure what you mean exactly. This is how that field is structured in my models.py file: birthday = models.DateField(blank=True) So it's already set as a datefield, but for some reason it seems as though my join is converting it into a string and Django doesn't like that. By t

Re: 'unicode' object has no attribute 'strftime'

2008-02-13 Thread Alex Koshelev
If birthday UserProfile field in DataField you must set date object to it. Not string. On 14 фев, 00:50, Darthmahon <[EMAIL PROTECTED]> wrote: > Hmm I seem to have hit another problem just after another! > > I've got a form that lets user's select the birthday via three > dropdowns (day, month an

Re: Xcode as Django IDE

2008-02-13 Thread James Bennett
On Feb 13, 2008 3:57 PM, zombat <[EMAIL PROTECTED]> wrote: > So what do you use? Emacs inside Terminal. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Links to images in Blog posts

2008-02-13 Thread Florian Lindner
Am 13.02.2008 um 15:00 schrieb Michael Newman: > > Hi Florian; > > You might want to look into a separate object for your images and add > them as either a manytomanyfield in you story object or have them > edited inline as foreign key objects. Look at the relationships here: > http://www.django

Re: Xcode as Django IDE

2008-02-13 Thread Alex Ezell
Textmate works great for me. I use GetBundle (http://projects.validcode.net/getbundle) to get the Django bundle which does syntax completion and highlighting for Django-specific Python files and Django template HTML. More info here: http://code.djangoproject.com/wiki/TextMate /alex On Feb 13, 2

Xcode as Django IDE

2008-02-13 Thread zombat
Hi Djangonauts. I was looking around for a good IDE for the Mac and have tried simple text editors like Smultron (http://smultron.sourceforge.net/) and full featured IDEs like Eclipse with PyDev but I am still not really satisfied. Simple text editors lack features like code completition or file

Book clarifications Post here

2008-02-13 Thread [EMAIL PROTECTED]
Hi guys and gals I wanted to post something here where as you have gone through the book things have not been as clear as you had hoped and wanted to offer some insight to people getting tripped up. Also hopefully they will make these changes. Ill start it off: http://www.djangoproject.com/docum

'unicode' object has no attribute 'strftime'

2008-02-13 Thread Darthmahon
Hmm I seem to have hit another problem just after another! I've got a form that lets user's select the birthday via three dropdowns (day, month and year). This is all using newforms. Basically, within my views.py file I have a function that creates new users - one part of this process is to make

Re: Setting request.GET when sending an HttpResponse

2008-02-13 Thread Etienne Robillard
I'll try to help ya a little... > I receive a request via GET and, based on request.GET, I generare a > result and send a HttpResponse. However, when sending the response, > I'd like to set additional parameters in the query string. > > For example, suppose I receive the following request: > > h

Re: Using newforms and a select - how do I stop a user from selecting a value?

2008-02-13 Thread Darthmahon
Hi Julian, Good thinking - None didn't work but this did: ('','Month',) (1,'January',) Thanks! :) On Feb 13, 8:58 pm, Julien <[EMAIL PROTECTED]> wrote: > I can't test it myself at the moment, but maybe try setting a None > value for 'Month': > > MONTH_CHOICES=( >                 (None,'Mo

Re: limiting users to one session at a time

2008-02-13 Thread Michael Graz
Thanks for the idea I will give it a try. Regards On Feb 10, 2008 11:37 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2008-02-10 at 11:00 +, Michael Graz wrote: > > Greetings. Would like to be able to prevent a user from having two > > concurrent, active sessions. For exam

Re: static content permissions

2008-02-13 Thread jonathan . lukens
Hi Michael, This is actually just about what I had in my httpd.conf, but for some reason looking at it shook loose the wax in my brain and I realized I had a broken symlink... so thank you for the help! Programming is not my day job (as is evident), but I have a project that i want to get online

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-13 Thread Steve
Thanks for all the quick replies, fixed it with © and I'm looking into the utf-8 encoding. Steve On Feb 14, 12:56 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Steve napisał(a): > > > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > > position 1393: unexpected code byte > > The str

Re: Using newforms and a select - how do I stop a user from selecting a value?

2008-02-13 Thread Julien
I can't test it myself at the moment, but maybe try setting a None value for 'Month': MONTH_CHOICES=( (None,'Month',), (1,'January'), On Feb 14, 7:24 am, Darthmahon <[EMAIL PROTECTED]> wrote: > Hey, > > I'm using the newforms functionality to

Re: create user, using generic.auth

2008-02-13 Thread Michael Newman
Before saving the user you can add all your information after you call the function. So: new_user = User.objects.create_user(user name, email, password) new_user.first_name = 'john' new_user.last_name = 'doe' new_user.save() Note the user isn't actually created until you make the save call. If yo

Using newforms and a select - how do I stop a user from selecting a value?

2008-02-13 Thread Darthmahon
Hey, I'm using the newforms functionality to create my forms - so the structure is something like this: / FORMS.PY / class RegisterForm(forms.Form): MONTH_CHOICES=( (0,'Month',), (1,'January'), (2,'February

Re: static content permissions

2008-02-13 Thread Michael Newman
Hey Jonathan; You are going to love that setup (I know I do). Django actually is never aware of media files. It just lets apache serve them. To set this up in your apache site configuration you should have DocumentRoot set and then for the path of you media file have a Location entry with SetHan

create user, using generic.auth

2008-02-13 Thread dall
Why in User.objects.create_user(user name, email, password) I can`t add more data, like birthday, last name, first name ? Or how to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: SQL Join

2008-02-13 Thread Nicolas Steinmetz
Gus a écrit : > any help would be much appreciated Maybe this thread will help you (my issue was quite similar) Nicolas --~--~-~--~~~---~--~~ You received this message because y

Re: Issue on joining objects/table

2008-02-13 Thread Nicolas Steinmetz
Malcolm Tredinnick a écrit : So the solution is : In views.py : user_skill = user.userskill_set.all().select_related() results = [{'domain': o.name.domain, 'item': o} for o in user_skill] (exactly as said by Malcolm) And in the template : >{% regroup results by domain as domain

static content permissions

2008-02-13 Thread jonathan . lukens
Forgive my idiocy, I have just installed Ubuntu + Apache 2.2 + MySQL + mod_python + django on an old machine and am using it for development. I am having difficulty getting my stylesheets to render. If I'm not using the *bad* way of serving the static content, do I still need a view to process

Re: Problem starting new project

2008-02-13 Thread Mr. Mister
I forgot to mention, I am using official release 0.96. --~--~-~--~~~---~--~~ 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

Re: Tutorial - How to create online games portal in several hours in Django?

2008-02-13 Thread Jeffar
> One minor thing I noticed while goign through tutorial 2 - you > probably want to make your slug fields indexed and (unique=True on > the attribute definition) so as to avoid clashes with your URLs. Thanks, you're right. I'm not checking uniques but I should. I'll keep it in mind when doing tut

Problem starting new project

2008-02-13 Thread Mr. Mister
Hi, I have had some problms installing Django in Windows XP. I have finally got it to work, in a fashion. I can go to the command prompt and type "django-admin.py startproject mysite" I set path variables, etc so this command is semi-valid. The only problem is that instead of creating a 'mysite' f

Setting request.GET when sending an HttpResponse

2008-02-13 Thread mario
It seems to me that I'm asking something verys obvious. However I couln't find and example anywhere for solving my problem. Here it goes... I receive a request via GET and, based on request.GET, I generare a result and send a HttpResponse. However, when sending the response, I'd like to set addit

FloatField Size on Generic Views

2008-02-13 Thread [EMAIL PROTECTED]
Is there a way to set the "size" attribute of FloatFields in Generic Views? Currently they're pretty big, and it seems like max_digits was deprecated in FloatFields with the arrival of DecimalFields. --~--~-~--~~~---~--~~ You received this message because you are

ANN: NUCULAR B3 Full text indexing (now on Win32 too)

2008-02-13 Thread Aaron Watters
Hi. As previously mentioned, I'd like someone to try out using Nucular inside Django. In our last episode someone wanted Nucular to support Windoze. Now it does. Here is the announcement: == cut = ANNOUNCE: NUCULAR Fielded Full Text Indexing, BETA 3 Nucular is a system for creating f

Re: Django Success Story

2008-02-13 Thread Jacob Kaplan-Moss
On 2/12/08, Ben <[EMAIL PROTECTED]> wrote: > If you'd like to read about the recent success of a summer project > involving Django, read on. Thanks, Ben! Jacob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Django with SQLAlchemy?

2008-02-13 Thread Etienne Robillard
Looks like they have resumed development, and looking forward on using Elixir. I guess that's not totally a bad idea... ;) http://code.google.com/p/django-sqlalchemy/source/browse/trunk/django_sqlalchemy/models/base.py Regards, Etienne On Feb 13, 2008 12:21 PM, Michael Hipp <[EMAIL PROTECTED]> w

Re: Tutorial - How to create online games portal in several hours in Django?

2008-02-13 Thread NickJ
I've just had a skim through the first few tutorials and it looks like an excellent beginners tutorial, great stuff. I especially like the demo site running with admin access, so users can see the final result. One minor thing I noticed while goign through tutorial 2 - you probably want to make y

Re: How to make a simple employee attendance management system using Django?

2008-02-13 Thread Tim Chase
> Manual imput (e.g. a form for employee id and password) would > not be too hard, just watch out for employees punching their > late friends in. Swipe card or biometrics might get a bit more > hairy, I know nothing about this but I am pretty sure this > could be done. From what I have seen, a

Django with SQLAlchemy?

2008-02-13 Thread Michael Hipp
I've been reading stuff like this: http://groups.google.com/group/django-developers/browse_thread/thread/5149e1c60dc65bff/a177bb34cfde1ec7 And a zillion others on a Google search of 'django sqlalchemy'. What's the status? Thanks, Michael --~--~-~--~~~---~--~~ Yo

Tutorial - How to create online games portal in several hours in Django?

2008-02-13 Thread Jeffar
Hello, I only want to inform all Django users that just begin this beautiful journey, that I created simple toturial describing how to create simple online games portal in several hours. It shows many Django elements in simple and condensed way. It may not be very interesting for Django experts.

سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex

2008-02-13 Thread سميره
سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex http://www.66rb.net فتاه تبحث عن سكس http://www.forex.zw2j.com http://www.66rb.net/e3lan/e3lan.html http://www.groups-goole.l7n6rb.com/sex-free.html تعارف جنسي للبالغين http://www.groups-goole.l7n6rb.com/sex-free.html

سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex

2008-02-13 Thread سميره
سكس سعودي سكس سعودي سكس سعودي سكس سكس SEX SEX sex sex سكس سكس SEX SEX sex sex http://www.66rb.net فتاه تبحث عن سكس http://www.forex.zw2j.com http://www.66rb.net/e3lan/e3lan.html http://www.groups-goole.l7n6rb.com/sex-free.html تعارف جنسي للبالغين http://www.groups-goole.l7n6rb.com/sex-free.html

Re: How to make a simple employee attendance management system using Django?

2008-02-13 Thread kevinski
>i have been asked to make a simple application that stores >the "in-time" and "out-time" of employees everyday Manual imput (e.g. a form for employee id and password) would not be too hard, just watch out for employees punching their late friends in. Swipe card or biometrics might get a bit mor

Re: newforms admin and Django registration

2008-02-13 Thread Michael Newman
I am exploring this further in the morning and I am wondering if the issue is the fact that django.contrib.auth.views uses the oldform methods. Could this be what is throwing this error? Is there or are there plans for converting django.contrib.auth.forms to new forms? If I spent time doing that w

Paginator confuse

2008-02-13 Thread Henhiskan
Hi fellows, Am very confused about the paginator implementation. I am using 0.95 version and I implemented a generic view using list_detail.object_list and works very good. Basically that I have is : url.py: requests_list = { 'queryset' : Request.objects.all(), 'template_name': 'admin/req

Re: filter fields that have a value

2008-02-13 Thread Martin
that didn't work too, because it selects only those articles, that have the first video (video in model Video, with id=1) attached. i have figured it out that i have to use dictinct().. now it works like it's supposed to work ;) thanks anyway, enjoy martin On Feb 13, 3:13 pm, Michael Newman <[

Re: Weird caching issue

2008-02-13 Thread [EMAIL PROTECTED]
Django version is .96, but I'm not sure about the exact build. I know maxlength is still max_length in the build I'm using, if that helps. I know there's some way to check the exact build, but I don't know how. What I've got going is a legacy php site that's drawing the latest forum posts over vi

Re: filter fields that have a value

2008-02-13 Thread Michael Newman
The problem is you are filtering the video attribute of your articles and thus returning 3. Try Article.objects.filter(video=True) I think that should work. On Feb 13, 7:04 am, Martin <[EMAIL PROTECTED]> wrote: > hello, > > i'm struggling with ManyToMany fields (Rajesh helped me a lot;) and > hav

Re: Links to images in Blog posts

2008-02-13 Thread Michael Newman
Hi Florian; You might want to look into a separate object for your images and add them as either a manytomanyfield in you story object or have them edited inline as foreign key objects. Look at the relationships here: http://www.djangoproject.com/documentation/model-api/#relationships . You would

Using the sites-system with a twist - is it possible?

2008-02-13 Thread Johan Liseborn
Hi all, I am trying to figure out if I can use Django's sites-system in a small experiment I am conducting. Please bear with me, as I am still struggling to fully understand the sites-system. I am using the svn version of Django (currently rev 7106, I believe). I would like to build a site publi

Re: Django Admin Page Media Path

2008-02-13 Thread [EMAIL PROTECTED]
thanks, my problem has been solved. On Feb 13, 2:33 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Feb 13, 2008 8:24 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > > Hi Karen: > > > it's running on production(0.96). > > > and the django project path is: > > /home/xxd/Desktop/Djang

Re: transaction.commit_manually

2008-02-13 Thread Ariel Mauricio Nunez Gomez
I hit the same wall when writing a loaddata variant to load json on geodjango. I couldn't find a solution either. :( I hope someone can give us light in this regard. Ariel. On Feb 12, 2008 5:34 PM, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > Are people using the transaction.commit_manually dec

Re: Django Admin Page Media Path

2008-02-13 Thread Karen Tracey
On Feb 13, 2008 8:24 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Karen: > > it's running on production(0.96). > > and the django project path is: > /home/xxd/Desktop/Django-0.96.1/django/bin/project > > I'd like to move the admin page media path from > /usr/lib/python2.5/site-packages/

Re: Django Admin Page Media Path

2008-02-13 Thread [EMAIL PROTECTED]
Hi Karen: it's running on production(0.96). and the django project path is: /home/xxd/Desktop/Django-0.96.1/django/bin/project I'd like to move the admin page media path from /usr/lib/python2.5/site-packages/django/contrib/admin/media to /home/xxd/Desktop/Django-0.96.1/django/bin/projec/media/a

Re: OR lookups

2008-02-13 Thread Julien
Maybe a quick mention in the docs saying: "Warning, this might not work in such and such case. But it is worked on and should be eventually fixed, see the queryset-refactor branch." I have to say that I spent quite some time trying to find out what was wrong with my code, as I fully trusted the d

Re: Persistent data (other than sessions)

2008-02-13 Thread mickey ristroph
I just got it working using the global variable (the first of your suggestions). I did not know about Python's global statement, but that did the trick. I just had to say: final_graph = None def graph_search(request): global final_graph if not final_graph: final_graph = build_graph()

Re: Django Admin Page Media Path

2008-02-13 Thread Karen Tracey
On Feb 13, 2008 5:41 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello everyone! > I'd like to change the Admin Page media path for my website which is > based on Django. Are you running this site in production (apache, perhaps?) or development (using the built-in development server)? >

Re: Persistent data (other than sessions)

2008-02-13 Thread mickey ristroph
Dan- Thanks a lot for the ideas. I tried the first suggestion, but get an UnboundLocalError, local variable 'graph' referenced before assignment. Not sure how to fix this. I also tried the following: local_data = threading.local() local_data.__dict__.setdefault('graph', None) if not

Re: SQL Join

2008-02-13 Thread J. Clifford Dyer
The type field on Membership rules out m2m. There's a patch in the works (6095) to address this, and it could use testing, if you'd like to try it out. Alternatively, set up a many to one from membership to user, and from membership to group, and call the backrefs "groups" and "users" respective

Re: InspectDB showing up error

2008-02-13 Thread Karen Tracey
On Feb 13, 2008 5:39 AM, Sairam Krishnamurthy <[EMAIL PROTECTED]> wrote: > Thanks Malcolmn, > > This issue was discussed already in this group. I saw that after posting > the message. It had a fix. > > > http://groups.google.com/group/django-developers/browse_thread/thread/2a5d168c19c5774/0d8a0b5b

filter fields that have a value

2008-02-13 Thread Martin
hello, i'm struggling with ManyToMany fields (Rajesh helped me a lot;) and have another question. My model Article, has ManyToMany relation with Video model (for storing only youtube videos). class Article(models.Model): video = models.ManyToManyField(Video, blank=True, null=True) class Vid

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-13 Thread Jarek Zgoda
Steve napisał(a): > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > position 1393: unexpected code byte > The string that could not be encoded/decoded was: ight ? 2006 > > The part of the static template it is complaining about is the (c) > character: > > Copyright (c) 2006-200

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-13 Thread J. Clifford Dyer
0xA9 is the codepoint for the copyright symbol, but in UTF-8, characters above 0x7F are not encoded with their codepoint value. That means your documents are probably encoded in ISO-8859-1 or ISO-8859-15. So as per Malcolm's advice, you should either re-save your templates in UTF-8, or tell Djan

Django Admin Page Media Path

2008-02-13 Thread [EMAIL PROTECTED]
Hello everyone! I'd like to change the Admin Page media path for my website which is based on Django. However, i tried that command below: manage.py --adminmedia='/home/media/' but it does not work at all, so i have to edit the css or to add new javascript code into: /usr/lib/python2.5/site-packa

  1   2   >