Re: Building Django web application

2008-10-10 Thread mguthrie
The following link seems to support Graham's conclusion: http://www.technobabble.dk/2008/aug/25/django-mod-wsgi-perfect-match/ -MG On Oct 10, 6:53 pm, mguthrie <[EMAIL PROTECTED]> wrote: > Graham, >    Thanks for the detailed response.  I have yet to get too much into > the internals of Apache

Re: change data of combo in admin (django 1.0)

2008-10-10 Thread Bruno Gomes
admin.py def get_form(self, request, obj=None, **kwargs): self._request = request return super(PaginaOptions, self).get_form(request, obj=obj, **kwargs) def queryset(self, request): """ Method of ModelAdmin, override it if you want to change li

Is this a reasonable way to approach a calendar based form(set)?

2008-10-10 Thread Nick Lo
Hello all, I'd like some advice on how to approach the design of a calendar based form(set). This is an example of one of several similar forms I'm working on: Blood glucose readings for Oct 2008 Reading for 11 Oct: |___| Reading for 10 Oct: |___| Reading for 09 Oct

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
Thanks. On Fri, Oct 10, 2008 at 11:37 AM, Carl Meyer <[EMAIL PROTECTED]> wrote: > RegistrationForm is a normal Form instance. Most errors will be > attached to specific fields, and thus will be in > form.field_name.errors, as documented. Errors not associated with any > particular field are ava

Re: Building Django web application

2008-10-10 Thread mguthrie
Graham, Thanks for the detailed response. I have yet to get too much into the internals of Apache in regards to Python applications. My background is in PHP which is a whole different beast with it's own unique way of being tweaked. I'll have to look into the mod_wsgi setup you mentioned. I

Re: Building Django web application

2008-10-10 Thread Graham Dumpleton
On Oct 11, 9:23 am, mguthrie <[EMAIL PROTECTED]> wrote: > I had read in more than one place that a django instance can eat up to > 10mb - 30mb of memory.  I don't know whether that is fact or fiction > and I'm also confused by the term instance.  Is an instance defined as > multiple different Dj

How to detect changes in a model's fields before save() ?

2008-10-10 Thread zhango
I'm overriding a model's save() method, and I want to detect changes in values for some of the model's fields (i.e. differences between the unsaved instance's values for some fields, and the values for those same fields currently in the database and about to be overwritten). Is it possible to do t

Picky Generic Views

2008-10-10 Thread Jeff Anderson
Hello, So I'm working on a third party Django app, and we use a couple generic views, specifically login and logout. For the urls.py in a project that uses our app, we do this: (r'^path', include(smug.urls), {'repo': 'docs'}) Our own views need the repo kwarg. This is something necessary fo

Re: model definition must come before reference in models.ForeignKey?

2008-10-10 Thread Malcolm Tredinnick
On Fri, 2008-10-10 at 19:39 -0400, Fenwick, Jacob L. wrote: > If I have a model that has a models.ForeignKey field, does the model > it depends on have to be defined before the model that contains the > field? > > > > I suppose this makes sense, but what if I have a very complicated > hierarc

Re: unable to open database file - sqlite3/apache problem - help?

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:24 PM, shawn <[EMAIL PROTECTED]> wrote: > > Hey guys, > > So I want to be able to use mod_python and apache to host my django > project, but I'm running into a little problem. When I go to my URL, I > get this error: > > > Exception Type: OperationalError at /admin/ > Exc

Re: model definition must come before reference in models.ForeignKey?

2008-10-10 Thread James Bennett
On Fri, Oct 10, 2008 at 6:39 PM, Fenwick, Jacob L. <[EMAIL PROTECTED]> wrote: > I suppose this makes sense, but what if I have a very complicated hierarchy? > Such as if I have three tables, and their foreign keys relationships form a > triangle? The documentation for ForeignKey covers this case;

Re: contrib admin and admindocs problem

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:45 PM, Michael Graz <[EMAIL PROTECTED]>wrote: > Greetings, > > The contrib.admin module depends on the contrib.admindocs module due to "{% > url django-admindocs-docroot as docsroot %}" being part of the admin > base.html template. However there is a problem with the fol

model definition must come before reference in models.ForeignKey?

2008-10-10 Thread Fenwick, Jacob L.
If I have a model that has a models.ForeignKey field, does the model it depends on have to be defined before the model that contains the field? I suppose this makes sense, but what if I have a very complicated hierarchy? Such as if I have three tables, and their foreign keys relationships form

Re: Registration - adding first_name and last_name to form.

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 4:02 PM, NoviceSortOf <[EMAIL PROTECTED]> wrote: > > > I'm trying to add first_name and last_name to the registration form. > > Under class RegistrationForm(forms.Form) > > I add > > first_name = forms.RegexField(regex=r'^\w+$', >max_length

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Adam V.
> OT: I respect your position but, why you use mssql? Our IT systems at work are already Windows / SQL Server based, so it made sense to do our new web development against the same database. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: djangosnippets.org list navigation

2008-10-10 Thread Alessandro Ronchi
2008/10/10 Gerard Petersen <[EMAIL PROTECTED]>: > > You can simply add this to your keywords in google (and thus use google): > > site:www.djangosnippets.org > > End result: > > http://www.google.nl/search?q=site%3Awww.djangosnippets.org+state Maybe if djangosnippets.org adds the google search the

Re: Building Django web application

2008-10-10 Thread mguthrie
I had read in more than one place that a django instance can eat up to 10mb - 30mb of memory. I don't know whether that is fact or fiction and I'm also confused by the term instance. Is an instance defined as multiple different Django projects or a single Django project used multiple times? If

Re: Building Django web application

2008-10-10 Thread Colin Bean
On Fri, Oct 10, 2008 at 12:34 PM, mguthrie <[EMAIL PROTECTED]> wrote: > > I've been looking into Django for building something that is more web > application than it is website. I understand that Django has been > developed in a sort of CMS mindset but to date I haven't found any > reason why it

Re: Custom middleware: using process_view to modify the view_func

2008-10-10 Thread barbara shaurette
:) Thanks for this - it does seem simple in retrospect, but I've been banging my head against the same problem too. On Sep 17, 11:53 am, intrepidweb <[EMAIL PROTECTED]> wrote: > FYI, I answered my own question. It's pretty simple, actually. If you > want process_view() to override the view_func()

Re: Oracle DateTime SQL error

2008-10-10 Thread Ian
On Oct 10, 1:08 am, dusans <[EMAIL PROTECTED]> wrote: > Im getting this error when updating or inserting a row with a DateTime > Field. Did i do something wrong or is it a bug? Same error in admin > console also. > > ERROR: > ORA-01830: date format picture ends before converting entire input > str

Building Django web application

2008-10-10 Thread mguthrie
I've been looking into Django for building something that is more web application than it is website. I understand that Django has been developed in a sort of CMS mindset but to date I haven't found any reason why it couldn't create non-content centric web apps as well. My project requirements a

unable to open database file - sqlite3/apache problem - help?

2008-10-10 Thread shawn
Hey guys, So I want to be able to use mod_python and apache to host my django project, but I'm running into a little problem. When I go to my URL, I get this error: Exception Type: OperationalError at /admin/ Exception Value: unable to open database file I'm using sqlite3 and apache, and I've

use related field for date_field argument in generic view

2008-10-10 Thread J
Hi all, I've got a couple of related models that I want to use together in a queryset, which I will be passing to a the generic view "date_based.archive_index". This generic view requires a "date_field" argument specifying "the name of the field that the date-based archive [view] should use to de

Re: djangosnippets.org list navigation

2008-10-10 Thread Gerard Petersen
You can simply add this to your keywords in google (and thus use google): site:www.djangosnippets.org End result: http://www.google.nl/search?q=site%3Awww.djangosnippets.org+state Regards, Gerard. David Durham, Jr. wrote: > The list navigation on djangosnippets is not so good. Take this pag

contrib admin and admindocs problem

2008-10-10 Thread Michael Graz
Greetings, The contrib.admin module depends on the contrib.admindocs module due to "{% url django-admindocs-docroot as docsroot %}" being part of the admin base.html template. However there is a problem with the following usage: urlpatterns = patterns('', (r'^admin/doc/', include('django.con

Registration - adding first_name and last_name to form.

2008-10-10 Thread NoviceSortOf
I'm trying to add first_name and last_name to the registration form. Under class RegistrationForm(forms.Form) I add first_name = forms.RegexField(regex=r'^\w+$', max_length=30, widget=forms.TextInput(attrs=attrs_dict), label=

a model-less user class, possible?

2008-10-10 Thread Chunlei Wu
Hi, Our institute has already built an user account system based on microsoft ADAM (Active Directory Application Mode). There are a bunch of web service APIs available for all user management (add/ modify/delete, etc). I plan to write a Django App to use its system for user management, no

Keeping track of song play count in django and flash

2008-10-10 Thread M Godshall
Is anyone familiar with any techniques or tutorials that would allow me to keep track of a song's play count using django and a flash player? I realize this might be a question more directed toward flash users, but I figured I'd try here in case any django users have had experience with this. Th

related_name in filter search

2008-10-10 Thread Alessandro
In a project I have class Scheda(models.Model): referente = models.ForeignKey(User,related_name="schede", editable=False) and I can use: User.objects.distinct().filter(schede__isnull=False): in another I have class Notizia(models.Model): edizione = models.ForeignKey(Edizione, related_name

Re: Environment settings error when running unit tests in Django

2008-10-10 Thread davenaff
So, I haven't had this problem specifically, but all the tests I've written don't make changes to DJANGO_PATH or os.environ. I believe the test runner takes care of this automatically. If your tests are in project/app/tests.py and you're running them with: python manage.py test you should be o

Does django integrate with google apps?

2008-10-10 Thread walterbyrd
I know that google offers django on google apps engine. I am wondering if that would make it any easier to integrate with google apps like gmail, calendar, and sites. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Environment settings error when running unit tests in Django

2008-10-10 Thread Karthik Krishnan
Hi, I am trying to run a unit test for my models. My unit test is as follows import os import unittest from myproject import models DJANGO_PATH = "DJANGO_SETTINGS_MODULE" os.environ[DJANGO_PATH] = "myproject.settings" class ModelsTestCase(unittest.TestCase): user = None def setUp(self):

Re: bug?: get_%s_display on CharField with choices (select field)

2008-10-10 Thread felix
On Oct 10, 3:08 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > I think I found a bug. > You have, but it's in your code, not Django. :-) brilliant :) yeah I wasn't entirely sure. it smelled like a bug. > If you look at ReleaseFeedback.get_rating_display at the > interactive prompt, yo

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Unfortunately, that is the explanation. I really appreciate all the help though; how disappointing that i didn't learn anything other than not allowing anyone to touch my projects without me around. On Oct 10, 9:59 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 10, 2008 at 12:51 PM,

Re: login problem, Django 1.0

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 12:51 PM, Robocop <[EMAIL PROTECTED]> wrote: > > Bad news guys, someone deactivated my test user and didn't tell me. > I'm so sad. > Do you mean that is the explanation for why auth.login hasn't been working? Or is there still a problem that needs to be investigated? Kare

Re: Pyjamas-Desktop and Pyjamas

2008-10-10 Thread lkcl
On Oct 7, 3:17 pm, Finder <[EMAIL PROTECTED]> wrote: > Wow, this is kindof of an exciting combo. Thanks! no problem :) i've since written a tutorial, on how to create your own widgets: http://pyjd.org/controls_tutorial.html it's a damn site simpler than pygtk2 also there's an introductio

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Bad news guys, someone deactivated my test user and didn't tell me. I'm so sad. --~--~-~--~~~---~--~~ 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

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Also worth noting: I tried using the built in django.contrib.views.login, but that resulted in the same behavior. Did some automagic default session setting in django .96 get changed to something that needs to be manually set in 1.0? --~--~-~--~~~---~--~~ You recei

Re: Django book says MSSQL works with 1.0...?

2008-10-10 Thread Ovnicraft
2008/10/9 Adam V. <[EMAIL PROTECTED]> > > I'm the django-mssql maintainer; please do post in bugs or weirdness > you run into to http://code.google.com/p/django-mssql/ > and I'll try to get the fixed. OT: I respect your position but, why you use mmsql? > > > Thanks, > -Adam V. > > (For what it'

Re: login problem, Django 1.0

2008-10-10 Thread Robocop
Sorry for the sloppy post, i was reposting an old ignored thread in my frustrated rage. The code i'm working with right now looks like: from django.contrib import auth def log(request): news_list = New.objects.all().order_by('-date') if request.method == 'POST': username = request.POST

Model Inheritance and save

2008-10-10 Thread sanrioyt
Hi, How does the save work, if you have a base abstract class that has save, and the parent class has save? For example: Model A: save(self): super(A, self).save() class Meta: abstract=True Model B(A): save(self): # Some stuff super(B, self).save() Thi

Re: Password Change Usage

2008-10-10 Thread Carl Meyer
On Oct 10, 7:44 am, "Chris Spencer" <[EMAIL PROTECTED]> wrote: > That might be the problem then. I dislike the default markup, so I'm > using my own. How do you find if the form as errors? > Usinghttp://docs.djangoproject.com/en/dev/topics/forms/as a guide, I've > tried using form.has_errors, for

Navigation elements at top and bottom

2008-10-10 Thread pihentagy
Hi! I need an advice. Until now, I have a base.html, which looks like sg. like: {%block prev %}{% endblock %} {% block next %}{% endblock %} {% block path %} {% endblock %} {% block content %} {% endblock%} By inheriting this template in all other templates, and filling the block went fine. But

Re: How to get the value of a form field within a template?

2008-10-10 Thread Ales Zoulek
I have working django app using new forms at the moment, so I cann't try it out. But I guess that you are looking for: {{ form.cleaned_data.field_name }} On Fri, Oct 10, 2008 at 1:34 PM, Matias Surdi <[EMAIL PROTECTED]> wrote: > > The same I do > > {{form.interface.initial}} > > I'd like to

Re: Is there anything like the RailsKits for Django?

2008-10-10 Thread bruno desthuilliers
On 10 oct, 14:19, Wayne M <[EMAIL PROTECTED]> wrote: > I am currently debating between using Django or Ruby on Rails for a > new SaaS web app I'm thinking of making. I've not done a subscription- > based site before, so I'm looking for something that provides the > basic functionality since I wou

Re: Django on Apache (mod_python) administration cookie problem

2008-10-10 Thread Daniel bodom_lx Graziotin
Thank you very much for your replies, Alvaro and Graham! Removing php5-mhash solved the problem --~--~-~--~~~---~--~~ 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@g

Re: GeoDjango - Ogr seg fault

2008-10-10 Thread Graham Dumpleton
In that case, would be a shared library version conflict where PHP components are compiled against different shared library version or variant than what Python modules are using. Graham On Oct 11, 12:36 am, guillaume <[EMAIL PROTECTED]> wrote: > Ok, I've found the answer myself : > it happens wh

Re: Using raw_id_fields with a many-to-many field

2008-10-10 Thread Karen Tracey
On Thu, Oct 9, 2008 at 5:59 PM, Hancock, David (dhancock) < [EMAIL PROTECTED]> wrote: > I've found that using raw_id_fields saves a lot of time for our users > over loading an entire many-to-many select. (But for shorter lists, the > many-to-many widget is by far the best interface I've seen for

Re: Development server serves media from wrong directory

2008-10-10 Thread Thomas Guettler
Hi, > MEDIA_URL = 'D:/workspace/isiscore/media/ That's not a URL. A URL looks like 'http://myserver/' or '/media/' Thomas -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de --~--~-~--~~~---~--~~ You received this messa

Re: newbie question about breadcrumbs

2008-10-10 Thread Thomas Guettler
Mirto Silvio Busico schrieb: > Hi all, > I'm lost in understanding how to use/reuse or create breadcrumbs. > > Where can I find documentation /examples of setting up breadcrumbs? > > Hi, I wrote a small snippet that we use in our projects: http://www.djangosnippets.org/snippets/1026/ Of cour

Re: Learning Django

2008-10-10 Thread Thomas Guettler
appi schrieb: > Please help me out the overview of what to download in order work the > combination of Django, Python, MySQL, in windows xp and ubuntu(linux), > and the entire setup within eclipse. > > Hi, if you have never used python, it maybe be wise to start to learn it first. If you have

Re: GeoDjango - Ogr seg fault

2008-10-10 Thread guillaume
Ok, I've found the answer myself : it happens when mod_php is also activated. let mod_python goes alone and it's fine. Don't know why though... On 10 oct, 15:01, guillaume <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experiencing trouble when using geodjango.gdal : > from a standard python console,

Re: GeoDjango - Ogr seg fault

2008-10-10 Thread Graham Dumpleton
Try forcing application to run in main Python interpreter. PythonInterpreter main_interpreter. Graham On Oct 11, 12:01 am, guillaume <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experiencing trouble when using geodjango.gdal : > from a standard python console, pnt = OGRGeometry(someWKT) goes fine

Re: Is there anything like the RailsKits for Django?

2008-10-10 Thread Rock
Satchmo is your best bet at this time. It provides a rather complete Django-based web storefront and includes explicit support for subscription management. See satchmoproject.com for more information. There is a Google group for satchmo users called satchmo-users. On Oct 10, 7:19 am, Wayne M <

Re: Is there anything like the RailsKits for Django?

2008-10-10 Thread Wayne M
Thanks.. I'll look at it, but I'm not looking for a storefront, just a way to handle subscription-based access to the web site, and the ability to restrict the number of users or similar based on the subscription package (think Basecamp/Backpack/Highrise). I'll read into it though and see what it

GeoDjango - Ogr seg fault

2008-10-10 Thread guillaume
Hi, I'm experiencing trouble when using geodjango.gdal : from a standard python console, pnt = OGRGeometry(someWKT) goes fine but when using it in Django run by Apache 2.2 mod_python, I get a seg_fault. Would anyone know why ? regards Guillaume --~--~-~--~~~---~--~-

admin inline formsets / drag/drop resp. move-up/down / how to retrieve "order_with_respect_to"?

2008-10-10 Thread patrickk
I like to implement drag/drop functionality resp. move-up/move-down buttons for inline-elements within the admin-interface. therefore, in tabular.html/stacked.html I need to know whether or not "order_with_respect_to" is being used for that model - if yes, the buttons will be available - if not, t

Re: Claiming a field that exists is not existing in admin

2008-10-10 Thread Karen Tracey
On Fri, Oct 10, 2008 at 7:04 AM, Leaf <[EMAIL PROTECTED]> wrote: > > I'm getting a mysterious error. When I try to access the admin site, > it claims that the PageAdmin.fields is referring to a ManyToManyField > named 'sideboxen' that doesn't exist in the form. However, my "Page" > model does have

Re: Password Change Usage

2008-10-10 Thread Chris Spencer
That might be the problem then. I dislike the default markup, so I'm using my own. How do you find if the form as errors? Using http://docs.djangoproject.com/en/dev/topics/forms/ as a guide, I've tried using form.has_errors, form.errors and form.message.errors, but Registration doesn't seem to use

Re: ManyToManyField status when post_save signal is emitted

2008-10-10 Thread Aljosa Mohorovic
i've used threading.local with post_save and request_finished signals to execute an action previously executed in post_save signal. now manytomanyfield is saved when i'm executing this action and everything is working as expected. if anybody has time please take a look at http://dpaste.com/hold/8

Is there anything like the RailsKits for Django?

2008-10-10 Thread Wayne M
I am currently debating between using Django or Ruby on Rails for a new SaaS web app I'm thinking of making. I've not done a subscription- based site before, so I'm looking for something that provides the basic functionality since I would probably not be able to write my own without it taking a l

PyCon 2009 - Call for tutorials

2008-10-10 Thread Greg Lindstrom
The period for submitting tutorial proposals for Pycon 2009 (US) is open and will continue through Friday, October 31th. This year features two "pre-conference" days devoted to tutorials on Wednesday March 25 & Thursday March 26 in Chicago. This allows for more classes than ever. Tutorials are 3-h

How to get the value of a form field within a template?

2008-10-10 Thread Matias Surdi
The same I do {{form.interface.initial}} I'd like to do something like {{form.interface.value}} How can I do this? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Learning Django

2008-10-10 Thread appi
Please help me out the overview of what to download in order work the combination of Django, Python, MySQL, in windows xp and ubuntu(linux), and the entire setup within eclipse. Srinivasa.k.p --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Multiple projects, model inheritance, and one common database

2008-10-10 Thread Malcolm Tredinnick
On Wed, 2008-10-08 at 09:47 -0700, barbara shaurette wrote: > We're building a couple of different projects - one social network-y > site, and one that's bloglike. So each has its own unique database, > but they do share one common set of content. > > I've created a third "common" project to ho

Claiming a field that exists is not existing in admin

2008-10-10 Thread Leaf
I'm getting a mysterious error. When I try to access the admin site, it claims that the PageAdmin.fields is referring to a ManyToManyField named 'sideboxen' that doesn't exist in the form. However, my "Page" model does have a field named sideboxen. I've pasted the traceback to http://dpaste.com/83

Re: Why cannot get a hidden input value by POST method?

2008-10-10 Thread Eric Abrahamsen
On Oct 10, 2008, at 5:14 PM, GAEFans wrote: > > OS: windows XP > SDK: Google App Engine 1.1.3 (Django / 0.96.1) > > template snippets: > ... > > > > You've got "value" misspelled for these two fields, correct that and try again... E > > > > E-mail: > > readonly=

Re: Why cannot get a hidden input value by POST method?

2008-10-10 Thread Malcolm Tredinnick
This is a very difficult message to understand, since there's so much HTML to wade through and no actual explanation of the problem. But we can guess a bit... On Fri, 2008-10-10 at 02:14 -0700, GAEFans wrote: [...] > view source by right click on FireFox: > ... > > > vlaue="agxtZWV0aW5nLXJvb2

Why cannot get a hidden input value by POST method?

2008-10-10 Thread GAEFans
OS: windows XP SDK: Google App Engine 1.1.3 (Django / 0.96.1) template snippets: ... E-mail: password: realName: Debug infos: BadKeyError at /delemployeeinf

Re: Oracle DateTime SQL error

2008-10-10 Thread dusans
It works on postgres. On Oct 10, 9:08 am, dusans <[EMAIL PROTECTED]> wrote: > Im getting this error when updating or inserting a row with a DateTime > Field. Did i do something wrong or is it a bug? Same error in admin > console also. > > ERROR: > ORA-01830: date format picture ends before conver

Re: Primary key error

2008-10-10 Thread dusans
Ah my bad, tnx :) On Oct 10, 10:45 am, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 10 oct, 10:19, dusans <[EMAIL PROTECTED]> wrote: > > > If i set a primary key by myself, django syncdb doesnt create a > > sequence, so when i make a new Row i get primary key is null valiation > > > like t

Re: Primary key error

2008-10-10 Thread Malcolm Tredinnick
On Fri, 2008-10-10 at 01:19 -0700, dusans wrote: > If i set a primary key by myself, django syncdb doesnt create a > sequence, so when i make a new Row i get primary key is null valiation > > like this > id_ifs_uifn = models.IntegerField(db_column='ID_IFS_UIFN', > primary_key=True) Exactly. You

Re: viewdoesnot exist at /

2008-10-10 Thread Arnoud Tijssen
I From: urukay <[EMAIL PROTECTED]> To: django-users@googlegroups.com Date: 10-10-2008 09:27 Subject: Re: viewdoesnot exist at / looks like, the problem is in importing newforms. what django version are u using? Radovan ATijssen wrote: > > Hey, > > I`m a newbie when it comes to Django

Re: using request.POST as keyword args

2008-10-10 Thread bruno desthuilliers
On 9 oct, 20:53, Taylor <[EMAIL PROTECTED]> wrote: > Dave, that is the problem. I need to be able to call perform > elsewhere in the code (not necessarily from a view), and it would be > difficult to build the datadict to do that Why so ??? Using keywords, your call would like this: ab.per

Re: form fields

2008-10-10 Thread Håkan Waara
Or, as Adrian suggests, you can put verbose_name on the field on your *model*, not in the modelform. /H 10 okt 2008 kl. 10.37 skrev Ulises: > >> class GameForm(ModelForm): >> class Meta: >> model = Game >> time_days_W = forms.CharField(max_length=128, >> verbose_name="time") >

Re: Primary key error

2008-10-10 Thread bruno desthuilliers
On 10 oct, 10:19, dusans <[EMAIL PROTECTED]> wrote: > If i set a primary key by myself, django syncdb doesnt create a > sequence, so when i make a new Row i get primary key is null valiation > > like this > id_ifs_uifn = models.IntegerField(db_column='ID_IFS_UIFN', > primary_key=True) Use models

Re: form fields

2008-10-10 Thread Ulises
> class GameForm(ModelForm): >class Meta: >model = Game >time_days_W = forms.CharField(max_length=128, verbose_name="time") >fields = ('white', 'black', 'time_days_W', 'inc_time') The field definition should be in the scope of the main class definition as in: class Ga

Re: form fields

2008-10-10 Thread Alfredo Alessandrini
I've changed the model form, but don't work... class GameForm(ModelForm): class Meta: model = Game time_days_W = forms.CharField(max_length=128, verbose_name="time") fields = ('white', 'black', 'time_days_W', 'inc_time') I've this error: TypeError: __init__() got an

Primary key error

2008-10-10 Thread dusans
If i set a primary key by myself, django syncdb doesnt create a sequence, so when i make a new Row i get primary key is null valiation like this id_ifs_uifn = models.IntegerField(db_column='ID_IFS_UIFN', primary_key=True) --~--~-~--~~~---~--~~ You received this mes

Re: viewdoesnot exist at /

2008-10-10 Thread urukay
u're welcome. But don't use 0.96 and earlier versions, you'll be missing lot enhacements, changes etc. Instead just change one line in ur code and everything should work :-) Radovan Arnoud Tijssen wrote: > > Thnx for the advice. > > I will have a look at the code and maybe try a django ver

Re: viewdoesnot exist at /

2008-10-10 Thread Arnoud Tijssen
Thnx for the advice. I will have a look at the code and maybe try a django version prior to 1.0. Greetings, Arnoud From: urukay <[EMAIL PROTECTED]> To: django-users@googlegroups.com Date: 10-10-2008 09:50 Subject: Re: viewdoesnot exist at / go to the ...surftrackr\log\ folder and chan

Re: form fields

2008-10-10 Thread Adrian-Bogdan Andreias
You can customize the form template and render each field separately or define the label in your model, using verbose_name parameter: class Game(Model): # ... time_days_W = CharField(max_length=128, verbose_name="time") 2008/10/10 Alfredo Alessandrini <[EMAIL PROTECTED]> > > Hi, > > I'v

Re: viewdoesnot exist at /

2008-10-10 Thread urukay
go to the ...surftrackr\log\ folder and change it in view.py file (at the top) in error trace there is information about where does the problem has occured (surftrackr.log.view) R. Arnoud Tijssen wrote: > > How do I change this? > Where can I find the necessary file to change/edit this. >

Re: viewdoesnot exist at /

2008-10-10 Thread Russell Keith-Magee
On Fri, Oct 10, 2008 at 3:34 PM, Arnoud Tijssen <[EMAIL PROTECTED]> wrote: > > I`m using django 1.1 pre-alpha SVN-9218 and according to surftrackr it was > best to use the latest django version from subversion. It sounds like they need to update either their advice or their code - preferably both

Re: viewdoesnot exist at /

2008-10-10 Thread Arnoud Tijssen
How do I change this? Where can I find the necessary file to change/edit this. BTW. Thnx for the quick respons. ___ Arnoud Tijssen Technical Consultant RAM Mobile Data Planetenbaan 26 3606 AK Maarssen ( 030-2390 390 Ê 030-2390 300 * [EMAIL PROTECTED] RAM Mobi

Re: viewdoesnot exist at /

2008-10-10 Thread urukay
As Russell wrote, you need to change the way u're importing newforms: from django import forms R. ATijssen wrote: > > I > > > > > From: > urukay <[EMAIL PROTECTED]> > To: > django-users@googlegroups.com > Date: > 10-10-2008 09:27 > Subject: > Re: viewdoesnot exist at / > > > > > >

Re: viewdoesnot exist at /

2008-10-10 Thread Arnoud Tijssen
I`m using django 1.1 pre-alpha SVN-9218 and according to surftrackr it was best to use the latest django version from subversion. From: urukay <[EMAIL PROTECTED]> To: django-users@googlegroups.com Date: 10-10-2008 09:27 Subject: Re: viewdoesnot exist at / looks like, the problem is in imp

Re: viewdoesnot exist at /

2008-10-10 Thread Russell Keith-Magee
On Fri, Oct 10, 2008 at 3:14 PM, Arnoud Tijssen <[EMAIL PROTECTED]> wrote: > > Exception Type: ViewDoesNotExist at / > Exception Value: Could not import surftrackr.log.views. Error was: cannot > import name newforms Looks like you're using Django v1.0, but you're using code that hasn't been updat

Re: viewdoesnot exist at /

2008-10-10 Thread urukay
looks like, the problem is in importing newforms. what django version are u using? Radovan ATijssen wrote: > > Hey, > > I`m a newbie when it comes to Django and python. > > I`m trying to install surftrackr, a squid and dansguardian log analyzer, > which uses the django framework. > Hopeful

form fields

2008-10-10 Thread Alfredo Alessandrini
Hi, I've create a model form by: class GameForm(ModelForm): class Meta: model = Game fields = ('white', 'black', 'time_days_W', 'inc_time') and the form template: {{ form.as_p }} The view function is ok, but I want to change the label of a field. I want to change "tim

viewdoesnot exist at /

2008-10-10 Thread Arnoud Tijssen
Hey, I`m a newbie when it comes to Django and python. I`m trying to install surftrackr, a squid and dansguardian log analyzer, which uses the django framework. Hopefully someone can help me here. When I try to open the webinterface of surftrackr I get the following error with traceback: Vie

Oracle DateTime SQL error

2008-10-10 Thread dusans
Im getting this error when updating or inserting a row with a DateTime Field. Did i do something wrong or is it a bug? Same error in admin console also. ERROR: ORA-01830: date format picture ends before converting entire input string Django SQL: UPDATE "IFS_UIFN_SLO_TUJ" SET "DATUM_VKLJUCITVE" =