sql used in the save method

2008-11-28 Thread Robert
Hello !! I am using mysql as the backend and trying to use insert delayed of a query (http://dev.mysql.com/doc/refman/5.0/en/insert-delayed.html), to do this I have to change a bit the insert statement, and I want to know if is possible to know before executing the sql what is the sql INSERT stat

Re: ManyToManyField contains

2008-08-18 Thread Robert
the user, rather than a query: > > myUser = User.objects.get(username='thisUsername') > classes = myUser.class_set.all() > > Todd > > On Sun, Aug 17, 2008 at 8:11 PM, Robert <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I'm trying to query a M

Re: ManyToManyField contains

2008-08-19 Thread Robert
push 'submit', it just reloads a new version of itself. Do I need to change any of the code in the view method (other than obviously passing the parameter in to the form) to reflect the parameter change? Thanks so much! -Robert --~--~-~--~~~---~--~~ You

Re: ManyToManyField contains

2008-08-19 Thread Robert
Sure, my form class is as follows: from django import newforms as forms from quizmodo.core.models import Class, Event from django.contrib.auth.models import User class ClassEventForm(forms.Form): c = forms.ModelChoiceField(queryset=Class.objects.all(), label='Class'

Init Parameter Trouble

2008-08-20 Thread Robert
Hello all, I have a custom form class that's called from a separate view file. That form class has an init method, and it works perfectly when I don't have to pass any parameters to that method. However, when I pass in ANY parameter (so it's not a namespace issue) the form simply won't submit. It'

Re: Init Parameter Trouble

2008-08-21 Thread Robert
Sure, it's: [code from quizmodo.base.forms import ClassEventForm class StackForm(ClassEventForm): name = forms.CharField(max_length=100) description = forms.CharField(widget=forms.Textarea) anonymous = forms.BooleanField(required=False) private = forms.BooleanField(required=False) @log

Re: Init Parameter Trouble

2008-08-23 Thread Robert
Any Thoughts On Aug 21, 10:51 pm, Robert <[EMAIL PROTECTED]> wrote: > Sure, it's: > > [code > > from quizmodo.base.forms import ClassEventForm > > class StackForm(ClassEventForm): > name = forms.CharField(max_length=100) > description = forms.CharFiel

Serving static files?

2008-08-31 Thread Robert
Hi, I just got done reading through the 4 django tutorials and they were very helpful. However, I did not find out through the tutorials alone how to serve CSS files along with my HTML. I was told in IRC that these are not directly handled by django. Basically, my main concern is keeping my webs

Model inheritance and app. design considerations

2008-09-19 Thread Robert
500 .. 1000 offers when querying the table. Using Django 1.0 with PostgreSQL. How would you solve this design problem? Thanks, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Can I create unique instances of a model to live under another model?

2008-09-26 Thread Robert
good at learning stuff on my own, so if anyone could even point me in the right direction, I would appreciate it. Maybe this is a common problem, I don't now, but I'm stumped. Thanks in advance. Robert --~--~-~--~~~---~--~~ You received this message becaus

Re: Can I create unique instances of a model to live under another model?

2008-09-26 Thread Robert
I freely admit my biggest problem is that I am quite used to thinking in terms of classes, and almost not at all in terms of database schema. I'll check into that reading you recommended. Kind regards, Robert On Sep 26, 12:42 pm, Rock <[EMAIL PROTECTED]> wrote: > Oops. I mean

select_related and intermediary tables

2008-10-03 Thread Robert
.documents.select_related().all() >>> d[0].agency_docs.study_level but I get the 'has no attribute 'agency_docs' error. I believe I've tried every conceivable combination, I've stuck _set onto the ends of things, I'm completely frustrated. Any help would be grea

Re: select_related and intermediary tables

2008-10-06 Thread Robert
dge a fair bit today, and for that I am appreciative. Kind regards, Robert On Oct 4, 12:06 am, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Sat, Oct 4, 2008 at 5:34 AM, Robert > > <[EMAIL PROTECTED]> wrote: > > > I've been banging my head

Development server serves media from wrong directory

2008-10-09 Thread Robert
s and forward slashes. I'll mention this because it may be important, but I'm also getting a "TemplateSyntaxError: Caught an exception while rendering: nothing to repeat" whenever I save a file and then reload a page. Everything works correctly, however, when I reload again. Any an

Re: Development server serves media from wrong directory

2008-10-09 Thread Robert
tic.serve', > { 'document_root': settings.MEDIA_URL, 'show_indexes': > True, }), > > remember, MEDIA_URL, is a URL, not a filesystem path. > > keith > > On Thu, Oct 9, 2008 at 3:34 PM, Robert > <[EMAIL PROTECTED]>wrote: > >

Re: Development server serves media from wrong directory

2008-10-09 Thread Robert
How is the MEDIA_URL reflected in my settings? If MEDIA_URL is '/ site_media/', should my urls.py then be r'^site_media/$'? I fail to understand the role it plays in all this. Thanks again for your replies. Kind regards, Robert On Oct 9, 3:35 pm, "Keith Eberle&q

URL mismatch when moving from django server to apache server on windows

2009-02-01 Thread Robert
I have set up apache with mod_python and I am able to get django working. I am trying to reach the simple poll application that is in the djangoproject tutorial. I have to add "mysite" in the url when I work with apache. This wasn't the case with the django server. http://localhost/mysite/polls

Authenticate against own model

2009-02-06 Thread Robert
h a Profil- Model nor extending with inheritance). I hope that there is a way... Greetz Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Upload ZIP-File into Database

2009-02-08 Thread Robert
Dear Community, I have a ZIP-File which contains five .lst-Files. I want to fill with these five files a mysql-database. Is there a possibility to handle this via the admin interface? I tried the following but it doesn't work: from django import forms from django.contrib import admin from cStrin

Re: Upload ZIP-File into Database

2009-02-09 Thread Robert
l django to expand these files, read them one by one and fill my database with the values? On Feb 8, 3:34 pm, Karen Tracey wrote: > On Sun, Feb 8, 2009 at 7:24 AM, Robert wrote: > > > Dear Community, > > > I have a ZIP-File which contains five .lst-Files. I want to fill wit

Model-Import doesn't work

2009-02-11 Thread Robert
Hi Folks, I have two app in a django project. Both app contains a model-file. In this model-files are the models (tables) for my application. I imported one of the model in the other application because I created there a foreign key for that. When I now try to import one of the other model in tha

Django unittests will not upload non-.txt files

2009-02-12 Thread Robert
T': # handle the file Am I missing something fundamental? If I change the extension of the .txt file, it still works fine. If I change the extension of a non-text file to .txt, it will not work. Any help is greatly appreciated. Kind regards, Robert --~--~-~--~~

Re: Django unittests will not upload non-.txt files

2009-02-12 Thread Robert
Thank you, Karen. That has solved my problem completely. I appreciate the complete explanation as well. Kind regards, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To po

Charts for Admin Interface

2009-02-13 Thread Robert
out of a mysql db) and display it. It's no problem to register a new model for the admin interface. But I don't know how I can add things like Charts or PDFs, ... I hope anybody can give me a help in this case! Nice regards Robert --~--~-~--~~~---~--~~ Yo

Add views to admin interface

2009-02-15 Thread Robert
ut that doesn't satisfy me because neither the one nor the other point above is done... Best would be if there were a possiblity to register them like models (admin.site.register(View, ViewAdmin)... Greetz Robert --~--~-~--~~~---~--~~ You received this message becaus

Re: Add views to admin interface

2009-02-15 Thread Robert
Well, I read that short paragraph but I don't understand how this should work... Is it possible that you post some code how you solved that problem? Thanks a lot Robert On 15 Feb., 21:13, Brian Neal wrote: > On Feb 15, 1:06 pm, Robert wrote: > > > Hi, > > > how ca

Re: Add views to admin interface

2009-02-15 Thread Robert
I think this is frustrating for users. If I don't want that I will have to define a lot of 'if user has permission then he can see a link, else not' statements. I hope you understand what's my problem Greetz Robert On 16 Feb., 00:09, Malcolm Tredinnick wrote: > On Sun, 2

Re: Add views to admin interface

2009-02-16 Thread Robert
ns, I hope somebody can help me... Thanks and greetz Robert On 16 Feb., 10:45, Ales Zoulek wrote: > > Once you have added a new HTML link to the template that will trigger > > your view, you have to write a view for it. You add something to one of > > your URL Conf files to catch t

If less than in template language

2009-03-22 Thread Robert
terrific idea because it would mean having like... 20 decision structures, and whatnot. Any ideas are greatly appreciated! Thanks -Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: If less than in template language

2009-03-22 Thread Robert
Looks great! Stupid question... it's been a while since i've worked in django. Where's a good place to physically store that document on the server? sorry! On Mar 22, 8:16 pm, Alex Gaynor wrote: > On Sun, Mar 22, 2009 at 8:15 PM, Robert wrote: > > > Hey, > > I

Django installation and the admin

2009-06-24 Thread Robert
nd connect python to django by including django in the python path? Robert --~--~-~--~~~---~--~~ 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@googlegroup

Re: Problem displaying application data

2009-07-05 Thread Robert
I ran into a similar problem. It was solved when I corrected the indentation of "class admin" in models.py of the app. Cheers. Robert On 18 Jun, 18:49, Francis wrote: > Hi, > > In my project, theadmininterface is not able to display tables > content of one application.

Possible to deploy without a command line tool?

2009-07-09 Thread Robert
Question: A web hosting company doesn't necessarily offer a command line tool to create folders and execute scripts on a shared web server. Is it possible to make your way without it to install django on a public server? Cheers. Robert --~--~-~--~~~---~--~

was not closed

2009-07-14 Thread Robert
x27;t been able to find anything useful. Initially I thought it could be a case of a missing bracket or something, but the code seems fine. Would you please look through my code and give me your opinion? Thanks. Appreciate it. Robert --~--~-~--~~~---~--~~ You receiv

problems with reverse lookup of cache_page view

2009-08-14 Thread Robert
I am having a problem with cache_page and url resolver, my problem is that django doesn't resolve correctly my url to the correct url when the view is cached with cache_page decorator. In fact this is in the context of sitemaps contrib, what I am doing is the following: (r'^sitemap.xml$', in

problem with signals

2009-09-10 Thread Robert
have as well another question, what are the reasons to select signals or simply use the direct ? I have a problem with a post_save, which can be easily solved overriding the save method. Any way to decide which to use depending on the situation ? thanks in advance, robert

Re: If less than in template language

2009-03-29 Thread Robert
Sorry, but I really am relatively new to Django, and although I've been poking around for quite a while, I still just can't get that package to work. When I tried to install it inside of the contrib folder, and then add it to the 'installed applications' in the settings.py file, i kept on getting

best option to override login_required decorator

2009-09-16 Thread Robert
,}, ),mimetype='text/plain') tup = self.login_url, self.redirect_field_name, path return HttpResponseRedirect('%s?%s=%s' % tup) Any suggestion will be welcomed ! thanks in advance, robert --~--~-~--~~~---~--~~ You received this mes

Porting issu 0.96 > 1.0

2009-12-05 Thread Robert
time.now(): return I have looked through an article about porting on djangoproject.com but I didn't see anything there that could give me a clue. Are you able to spot the error? Thanks Robert -- You received this message because you are subscribed to the Google Groups "Djang

Re: Porting issu 0.96 > 1.0

2009-12-14 Thread Robert
will break the lines according to the width of the document window. Cheers. Robert On 5 Des, 21:13, Daniel Roseman wrote: > On Dec 5, 4:14 pm, Robert wrote: > > > > > Hi, > > > I try to run an app that ran successfully on 0.96 but doesn't run on > > version

Case insensitive non ascii chars

2010-07-27 Thread Robert
greSQL can't do the UPPER() properly. Is there any chance I can get that working ? Thanks, Robert -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

problem with mod_wsgi+apache and Unicode

2010-02-15 Thread Robert
="es_ES" LC_PAPER="es_ES" LC_NAME="es_ES" LC_ADDRESS="es_ES" LC_TELEPHONE="es_ES" LC_MEASUREMENT="es_ES" LC_IDENTIFICATION="es_ES" LC_ALL=es_ES I just don't get how can I know or change the default charset so mod_wsgi knows that th

View on site

2010-03-11 Thread Robert
;)), in your URLConf. " This shortcut contains this line of code that seems to be on the right track: (r'^(?P\d+)/(?P\d+)/$', 'defaults.shortcut'), However django is not able to match this url. Is this supposed to work? Please advise. Thanks. Robert -- You received t

Re: View on site

2010-03-13 Thread Robert
. Here I had to put a . +. In urls.py: (r'^users/(?P.+)/$', 'some.view'), Logically, this should have been mentioned in the Url dispatcher document in the documentation. On Mar 12, 12:21 pm, rebus_ wrote: > On 12 March 2010 01:04, Robert wrote: > > > > >

No module named defaults

2010-04-01 Thread Robert
mport this module in a python shell, so I don't know why django is complaining all of a sudden. To my knowledge I haven't altered any code that should affect the functioning of this view. Please find enclosed the traceback below. Any ideas on how I can sort this out would be apprecia

Re: No module named defaults

2010-04-01 Thread Robert
e patterns and now it works. Cheers. Robert On Apr 1, 5:29 pm, Robert wrote: > I run a rss feed app on my computer with django 0.96. > > This has worked out well for several months. Now I get an error when I > try to call the update view function. This function is supposed to > ta

ManyToManyFields - a double operation to the database?

2010-04-04 Thread Robert
ment "Making queries" at http://docs.djangoproject.com/en/1.0/topics/db/queries only that I change the authors-field with a users field pointing to the auth.model User. class Entry(models.Model): [..] users = models.ManyToManyField(User) (KT's post below) Please advis

Re: ManyToManyFields - a double operation to the database?

2010-04-04 Thread Robert
other tables are present. Thanks DR Robert On 4 apr, 14:10, Daniel Roseman wrote: > On Apr 4, 11:56 am, Robert wrote: > > > > > > > I wonder whether you have to save a record to the database BEFORE you > > can update a ManyToMany field? > > > I came acr

Re: ManyToManyFields - a double operation to the database?

2010-04-04 Thread Robert
That's a spot on, DR. I'll try that and I'm sure it will work out. Have an excellent day. R On 4 apr, 15:03, Daniel Roseman wrote: > On Apr 4, 1:44 pm, Robert wrote: > > > Hi, > > > I get OperationalError: (1364, "Field, 'user_id' doesn'

signals vs. save()

2007-06-15 Thread Robert
l the time (if not using cache). Example: nr of posts posts in forum thread, scores.. etc. When should I use post_save() and when should I use save() ? Thanks, -- Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

generic views create/delete on_success function callback

2007-06-20 Thread Robert
uestion is whether it should override rendering the response (imho, not). The function would be used for simple actions, like sending emails f.e. What do you think about it ? Thanks, -- Robert --~--~-~--~~~---~--~~ You received this message because you are subscri

permalink decorator

2007-07-16 Thread Robert
n _get_reverse_dict 212. for key, value in pattern.reverse_dict.iteritems(): File "c:\django_src\django\core\urlresolvers.py" in _get_reverse_dict 209. if not self._reverse_dict and hasattr(self.urlconf_module, 'urlpatterns'): File "c:\django_src\django\core\urlresolv

Re: permalink decorator

2007-07-16 Thread Robert
ouldn't resolve it). All fixed, and working. Will look into the manage.py shell next time before posting :-) Thanks again for help, and for unicode branch. -- Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

django-discussion

2007-07-20 Thread Robert
Hello, Has anybody been using the django-discussion at: http://code.google.com/p/django-discussion/ ? Any thoughts ? Thanks, -- Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: django-discussion

2007-07-20 Thread Robert
which doesn't exist > :) > > [1] darcs gethttp://www.jonathanbuchanan.plus.com/repos/devdocs/ Will take a look! Thanks for great django-* apps published so far. Regards, -- Robert --~--~-~--~~~---~--~~ You received this message because you a

File Upload field problem in auto-generated django forms

2007-07-27 Thread Robert
d. Does anyone know how to fix this? I'm just having a ton of trouble with it, despite a lot of looking around. Thanks so much for any input! I hope I was able to express the problem, and if not, please let me know. Thanks again -Robert --~--~-~--~~~---~--~--

Re: File Upload field problem in auto-generated django forms

2007-07-28 Thread Robert
Awesome, sorry about the duplicate reply! Thanks so much, though -Robert On Jul 27, 11:11 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 7/28/07, Robert <[EMAIL PROTECTED]> wrote: > > > > > Hi all- > > I'm very new to django, so pard

Dynamic values for BaseForm

2007-08-07 Thread Robert
it in my view via form.cleaned_data['somegroup'] as well.) Also I don't want to display the "somegroup" selector in form (I know how to work out this problem). Can anyone please help? Thanks, Robert --~--~-~--~~~---~--~~ You received

Re: Dynamic values for BaseForm

2007-08-14 Thread Robert
end" the variable twice, when sending the POST dict. to the form, and when initiating it. NewForm = forms.form_for_model(Model, form=SomeBaseForm) if request.method == "POST": form = NewForm(request.POST, somegroup=somegroup) do_some_stuff() else:

Calling User data from within templates

2007-09-03 Thread Robert
x27;ve tried very hard to search through the docs etc. to find something related to this, but have simply failed. Any help is greatly appreciated Thanks so much -Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Calling User data from within templates

2007-09-03 Thread Robert
Shouldn't that automatically be "Turned on"? How can I check to see if it is, and if it's not, how can I install it? Thanks, sorry for such a dumb question -Robert On Sep 3, 2:20 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Check your TEMPLATE_CONTEXT_PROCES

Re: Calling User data from within templates

2007-09-03 Thread Robert
7;s not working for me? Sorry, and thanks so much -Robert On Sep 3, 4:13 pm, eXt <[EMAIL PROTECTED]> wrote: > On 3 Wrz, 21:50, Robert <[EMAIL PROTECTED]> wrote:> Shouldn't that > automatically be "Turned on"? > > You're right here., it's turned on

ModelForm field queryset filter

2008-02-18 Thread Robert
e no idea on how to do this with ModelForm. If anyone could share the example. Thanks, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Free Ebooks on Cooking, Hacking, IT, Sex etc.. Website Submission, Forum, .

2007-02-15 Thread Robert
Free Ebooks on Cooking, Hacking, IT, Sex etc.. Website Submission, Forum, Visit http://www.aonearticles.com. No membership required. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: psycopg2 ?

2007-02-28 Thread Robert
On 28 Lut, 16:18, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > > Change your DATABASE_ENGINE to "postgresql_psycopg2". > > (Perhaps the docs and default settings file should be updated to reflect > this.) It is :-) http://www.djangoproj

Copy table Design many, many times

2007-04-01 Thread Robert
, while we are at it.. is there a way to place a prototype class table in models.py that does NOT run as sql at syncdb? This would simply be a class for forming part of a set of other classes. Thanks very much Robert --~--~-~--~~~---~--~~ You received this message

Re: Copy table Design many, many times

2007-04-03 Thread Robert
n, however.. nothing that is going to serve a web site, but something I am just doing to verify something else. Call it an off-label use of a db. Thanks again.. Robert On Apr 1, 8:24 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote: > To expand on what true.chesire is saying: There&#x

newforms & existing project

2007-04-07 Thread Robert
sues. Also, the service will be internationalized in the future. Adrian has created a new unicode branch recently, that's really a great news (Thanks!). What's your opinion ? Which way should I go? ... or maybe I should wait ? Thanks, Robert --~--~-~--~~~

SelectDateWidget unicode problem

2007-04-11 Thread Robert
t; in render 171. output.append(u'%s' % (escape(option_value), selected_html, escape(smart_unicode(option_label UnicodeDecodeError at /prod/add/ 'ascii' codec can't decode byte 0xc5 in position 6: ordinal not in range(128) Tried with both Django 0.96 & SVN (as of

Re: cache problem of new forms: make ChoicesField's choices list on fly

2007-04-23 Thread Robert
ble only have two unit's > records. after some minutes, may be the unit's records grows, but the > CancelForm only have two choices. I must restart apache server to > renew the CancelForm. > > thanks for your patience. You may want to look at ModelChoiceField(), look at:

Re: Newforms edit with custom form

2007-04-23 Thread Robert
ject.com/browser/django/trunk/django/newforms/models.py how it's done in forms_for_model/instance, save_instance, save_instance, model_save or wait for complete documentation :) -- Robert --~--~-~--~~~---~--~~ You received this message because you are sub

fastCGI

2007-05-10 Thread Robert
listing: OK.. so... is WSGIServer missing... related to Django, python or apache? and typecast_... are these normal..? Thanks very much for any assistance Robert # ./mysite.fcgi WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME

new fastcgi for iis

2007-10-11 Thread Robert
Dunno who's seen this, but fyi: MS IIS now has official FastCGI support. I look forward to seeing how this'll work with Django installs under IIS. http://www.iis.net/php --rbt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Time zone problem

2007-11-13 Thread Robert
rope/Warsaw' and 'America/Chicago'. It's not regular, and does not depend on how many times I refresh the page. There are many DateTime fields in my models which makes the TZ problem very confusing. Using Apache 2.0.59 & mod_pyth

How to add a parent class to the Poll class? (First tutorial)

2007-12-27 Thread Robert
Hi, I wanted to expand the Poll example in the first tutorial by organizing polls in groups. I thought this could be done by simply adding a Foreign key to the Poll class. from django.db import models class Pollgroup(models.Model): name = models.CharField(maxlength=200) class Poll(models.M

Re: How to add a parent class to the Poll class? (First tutorial)

2007-12-27 Thread Robert
Hi, Sorry about the misunderstanding. I am supposed to get this message when I try to add a new object: However, after having added a foreign key in the poll class I receive this error instead: "Poll has no attribute choice" Why? On Dec 27, 11:14 pm, [EMAIL PROTECTED] wrote: > > Why do I get

Re: How to add a parent class to the Poll class? (First tutorial)

2007-12-28 Thread Robert
forum. If anyone can confirm that it is in fact possible or not, it would be helpful. Thanks. On Dec 28, 7:50 am, Empty <[EMAIL PROTECTED]> wrote: > On Dec 27, 2007 5:22 PM, Robert <[EMAIL PROTECTED]> wrote: > > > > > Hi, Sorry about the misunderstanding. > > >

QuerySet filters & AJAX

2006-09-25 Thread Robert
hoice.display|escape}} {% endfor %} Please help, Thanks, Robert --~--~-~--~~~---~--~~ 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@googlegroup

GV create_object & update_object with values preserved

2006-10-10 Thread Robert
moved/changed.., - http://code.djangoproject.com/ticket/1563 - ) What is the best way to get this thing done ? Thanks, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

model_set.all filtering and custom model manager

2006-10-25 Thread Robert
complicated for me at this point of my python knowledge. Thanks, Robert --~--~-~--~~~---~--~~ 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@googlegroup

newforms & object save

2007-01-06 Thread Robert
.Model): author = models.ForeignKey(Author) when = models.DateField(blank=False) title = models.CharField(blank=False, maxlength="10") content = models.TextField(blank=True, null=True) class Admin: pass def __str__(self): return self.title I'm getting:

Model with 4 ForeignKeys, display 50 recoreds (MySQL vs. PostgreSQL)

2007-01-11 Thread Robert
jango itself ? Any example of low-level api cache usage ? I've searched google for 'query cache' PostgreSQL and it seems there is no such thing. I don't want to start a war - both DBs are great IMHO. Thanks, Robert --~--~-~--~~~---~--~~ You re

Q() query problem

2007-01-16 Thread Robert
ion has been made less then 60minutes ago. I can't get both at once. Can I use Q() or other filterings to get all (not yet reserved & recently reserved) offers ? DB: Sqlite3 (winxp). Thanks, Robert --~--~-~--~~~---~--~~ You received this message be

Re: per-view cache and CACHE_MIDDLEWARE_SECONDS

2007-01-18 Thread Robert
Did you specify the timeout ? in your cache_page decorator ? -- Robert --~--~-~--~~~---~--~~ 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@googlegro

Newforms practice (common situation)

2007-01-18 Thread Robert
hey are not in this form. That's just a thought. I've considered the example from: http://groups.google.com/group/django-users/browse_frm/thread/d9e03cf29739869f/71c60c65387802bc?lnk=gst&q=newforms&rnum=8#71c60c65387802bc but I'd rather avoid using hiddenfields. Also I need to use

foreign_key limiting choices

2006-05-21 Thread Robert
elect only from ext_ips not used by another computer. What is the best way to accomplish this ? Do I need to play with raw sql or I missed anything when played with an API ? Maybe this/my models should be done a different way ? Thanks, Robert --~--~-~--~~~---

Re: foreign_key limiting choices

2006-05-22 Thread Robert
ther thatn dict) example? I don't know how to put a subselect or other comparison to check whether the specified ext_ip (Ext_ip model) has been already "attached" to the computer (Computer model). Please shed some light on this. Thanks for y

Re: foreign_key limiting choices

2006-05-22 Thread Robert
ext_ip = models.IPAddressField(choices = getFreeEXTIP(), ...) Thanks, Robert X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.53.63 with SMTP id b63mr135641cwa; Mon, 22 May 2006 13:51:37 -0700 (PDT) X-Google-Token: 02n0kQwtP9jERTIXFOCceFcAbmNz Received: from 81.190.91.213 by j73g2000cwa.google

Custom Manipulator problem

2006-07-14 Thread Robert
quot;, " }}{% endif %} Phone nr: {{ form.nr }} {% if form.nr.errors %}*** {{ form.nr.errors|join:", " }}{% endif %} Mobile nr: {{ form.nr_mobile }} {% if form.nr_mobile.errors %}*** {{ form.nr_mobile.errors|join:", " }}{% endif %} Thanks, Robert --~--~-~--~~

Re: Custom Manipulator problem

2006-07-14 Thread Robert
ation methods defined in my model, and validator_list= for specified field in my model definition), but I've decided to play (and learn the) with manipulators. Thanks! Robert Jorge Gajon napisal(a): > Hi, > You need to implement the save() method in your custom manipulator. > > C

Design question (models? apps? field_type?)

2006-08-01 Thread Robert
Hello, Using version 0.95. I am designing a new truck transport database data service. There will be 2 kinds of offers: import & export Let's name seaport 'X'. Trucks: 1. Deliver package from Y to X (on the road from X to Y it's empty) 2. Deliver package from X to Y (on the road from Y to X it

Re: Design question (models? apps? field_type?)

2006-08-02 Thread Robert
Hello Julio and thank you for your helpful response. I think you got the main idea, but I'm not sure Here's a quick spec. I got from the guy. "Export market" (which shows the table after carrier logs in with columns below) | date_load | container_type | shipowner | container_type | place_load

Generic views table sort

2006-09-05 Thread Robert
hen going to next page. Seems like templatetag is the best solution. Anyone doing sort with templatetag ? Thanks, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Generic views table sort

2006-09-06 Thread Robert
Hello Aidas, I will try to implement your view :) As for pagination, I've found a great templatetag at: http://code.djangoproject.com/wiki/CookBookTemplateTags Thanks, Robert --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Noob question

2012-08-02 Thread Robert
Hi all, I´ve developed that model, but i´m quite confused about the sintax, looks a bit freaky... Hers my code: from django.db import models ## PROJETOS ## class Projetos(models.Mod

setting the database when using a rawqueryset

2011-09-13 Thread Robert
I have inherited the support of a Django application and am new to the language so I would appreciate some advice. The application requires getting data from different databases depending on the client. The existing code uses the syntax: .objects.using(self.CLIENT_DB).get to connect to the corr

Re: setting the database when using a rawqueryset

2011-09-13 Thread Robert
cuting-custom... > > Cheers, > AT > > > > On Tue, Sep 13, 2011 at 5:51 PM, Robert wrote: > > > I have inherited the support of a Django application and am new to the > > language so I would appreciate some advice.  The application requires > > getting data

Re: setting the database when using a rawqueryset

2011-09-13 Thread Robert
I apologize for using AT rather than your name, Andre. On Sep 13, 6:42 pm, Robert wrote: > Thanks, AT.  Actually this is the article where I learned how to do > raw SQL in Django. It made life easy for complex queries. > Unfortunately it does not specify how to dynamically set the

Re: Newbie question: first project can't connect to MySQL

2013-08-09 Thread Robert
I got the same problem. I solved it just now. http://stackoverflow.com/questions/18150858/operationalerror-2002-cant-connect-to-local-mysql-server-through-socket-v On Thursday, February 5, 2009 1:41:21 AM UTC+8, Kevin Audleman wrote: > > Hello everyone, > > I am running through the tutorial and s

Odp: Aw: Internationalization in Django.

2011-06-15 Thread Robert
What about django-datatrans ? Had no problems with that. RM. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/-wSxOnaLg2gJ. To post to this group, send ema

  1   2   3   4   5   >