> I think I figured it out, your RegEx should be:
> (?P\d+)/$
Ah, much better. I've looked at the completely wrong places. I still
wonder a bit about the error message.
Now it only complains about missing templates which I should be able to fix.
Thanks so much
Arthur
On 3/23/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> Limodou,
> Thank you for your reply.But I meant something different.
> I need to have several input fields in s form - for example PIECES -
> and I need each input field to be different in my template
>
> So I thought that I can join
On 3/23/06, Arthur <[EMAIL PROTECTED]> wrote:
>
> > I got it . You should pass the info_dict as **info_dict, but not
> > info_dict directly.
>
> Thanks for your answer. I don't think you can do that inside tuples.
> It throws a syntax error.
>
> Arthur
Oh, I made a mistake. I'm sorry.
--
I like
On 3/23/06, Arthur <[EMAIL PROTECTED]> wrote:
>
> > The info_dict never gets implicitly passed -- it's always explicitly
> > passed. We're removing the magic, not adding to it! :)
> >
> > But as for your question, it seems like you're getting that error
> > because you're passing in 'queryset'
> The info_dict never gets implicitly passed -- it's always explicitly
> passed. We're removing the magic, not adding to it! :)
>
> But as for your question, it seems like you're getting that error
> because you're passing in 'queryset' twice.
I've minimized the app to the bare minimum, but the
On 3/23/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> Is there a way to join two( or more) variables in templates?
> Thanks for reply
> L.
>
What do you want to do?
{{ varA }}{{ varB }}
Can this helps?
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist:
Is there a way to join two( or more) variables in templates?
Thanks for reply
L.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
DavidA wrote:
>NameVirtualHost *
>
>ServerName data
>DocumentRoot "C:/Dev/Source/Web/data"
>SetHandler mod_python
>PythonHandler django.core.handlers.modpython
>SetEnv DJANGO_SETTINGS_MODULE data.settings
>PythonPath sys.path+['C:/Dev/Source/Web']
>PythonDebug On
>
DavidA wrote:
>I am prepopulating my database with data from a number of flat files.
>
>
BTW, if you do this repeatedly and format of those flat files is not a
requirement it is possible to have all initial data in a form of SQL
script. If you place it in /sql/.sql then Django will
include
DavidA wrote:
> First, to use the model from a script I had to set the
> DJANGO_SETTINGS_MODULE environment variable and add the base directory
> to sys.path. I've seen this before so I guess this is just the way it
> is but it would be nice not to have dependencies on environment
> variables. Is
Hi there. I am having trouble with two many to many fields on the same
model.
I've looked around and found this very similar to ticket 327 (
http://code.djangoproject.com/ticket/327 )
my models follow:
class Project(meta.Model):
name = name = meta.CharField(maxlength=100)
...
I am prepopulating my database with data from a number of flat files.
I've written a small script to do this using my model class. While this
works, there are a couple of kludges I made to get it to work and I was
hoping someone could advise my on a better way to do this.
First, to use the model
I am running django on a Windows server (apache 2.0.54/mod_python
3.1.3/postgres 8.0.3)
Django would crash apache when running multiple automated scripts
POSTing data at a high rate through a generic create_object view.
After scanning the net I found various threading fix patches, and I
ended
New facts, which may help, i i put onmy detail page
{% load i18n %}
a part from the admin template
{% if not user.is_anonymous %}
{% trans 'Welcome,' %} {% if
user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{%
endif %}. {% block userlinks %}{% trans
'Documentation' %}
On 12/14/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 12/13/05, oron <[EMAIL PROTECTED]> wrote:
> > coming from ROR where it's easy to cache partials (parts of templates)
> > I couldn't find a way to cache just parts of my template easily without
> > going back to the cache low level
Strange, apperently the admin is in the LANGUAGE_CODE language but nor
my website. Do i have to import anything special ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Anyone using non english setting in their app ?
same problem with form validation error messages in english.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
On 3/22/06, Alan Bailey <[EMAIL PROTECTED]> wrote:
> Thanks! Silly me. But maybe a mention in the custom SQL section pointing
> to the where / tables stuff would be good.
Good idea! I've updated the docs to put in that pointer. Should be
live on the site within 15 minutes.
Adrian
--
Adrian
Joseph Heck writes:
> I've had very good luck with the tickets when they're explicit - most got
> added very quickly, and the ones that didn't had a quick note to let me
> know why.
Thanks for the pointer.
I get to do most of my learning/hacking on weekends.. so look forward to
going over
This is excellent. You should file a bug in trac to integrate it at
http://api.djangoproject.com. I like how you have edited the css to fit
in with the djangoproject site.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Thanks! Silly me. But maybe a mention in the custom SQL section pointing
to the where / tables stuff would be good.
Alan
On Wed, 22 Mar 2006, [EMAIL PROTECTED] wrote:
>
> Alan Bailey wrote:
> > I know I can write custom SQL with the db cursor and it returns raw
> > rows... but I would like
I've read this documentation:
http://www.djangoproject.com/documentation/modpython/
but I can't figure out how to configure the VirtualHost section to get
the URLs I want.
Here's what I'm trying to do:
I have one Django project (data) with two apps under it (trades,
marks). I also have the admin
On 3/22/06, Arthur <[EMAIL PROTECTED]> wrote:
> > Your example you aren't passing in that info_dict you created.
>
> Thanks Max. That's what I tried first. But from the partially updated
> tutorial in the mr branch docs and the error message
> "object_detail() got multiple values for keyword
Hi,
i created a css to build a django styled API doc with epydoc.
http://djangoapi.quamquam.org/ Beta Version :)
I hope we can integrate it as http://api.djangoproject.com someday.
kindly regards
daniel
--~--~-~--~~~---~--~~
You received this message
hi,
I'm having trouble getting django to work together with apache an
mod_python
if I try to access the admin page through my browser it displas the
following message
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File
> > I'm trying to use generics on the magic removal trunc and I'm a bit at
> > a loss because the queryset variable seems to get autoconverted to a
> > string. The following urls.py always results in a "AttributeError:
> > 'str' object has no attribute 'model'":
> >
> > from
Alan Bailey wrote:
> I know I can write custom SQL with the db cursor and it returns raw
> rows... but I would like (and it'd be easy to implement) a way to use
> custom SQL (specifically only WHERE clauses) when doing a get_list or
> get_object.
>
> For example:
>
> foo =
Hello,
I know I can write custom SQL with the db cursor and it returns raw
rows... but I would like (and it'd be easy to implement) a way to use
custom SQL (specifically only WHERE clauses) when doing a get_list or
get_object.
For example:
foo = users.get_list(status__exact='active',
Arthur wrote:
> Hi all
>
> I'm trying to use generics on the magic removal trunc and I'm a bit at
> a loss because the queryset variable seems to get autoconverted to a
> string. The following urls.py always results in a "AttributeError:
> 'str' object has no attribute 'model'":
>
> from
Kartikeya Sinha wrote:
> hi, Django Users
> i am Kartik from INDIA
> i want to know that what i can use the statment of scanf like in C we
> use it to get input from the user. so which statment we can use to take
> values from the user in Python...
> plz do help me out
>
> \by
$ python
I just finished up a very crude Ant "wrapper" script so that I could drive builds and tests (mostly tests, as ther isn't much to compile) from CruiseControl. It's a pretty simple setup, but I recommend it for really any sized team.
I snagged the 2.4.1 release of Cruisecontrol, which pretty much
I've had very good luck with the tickets when they're explicit - most got added very quickly, and the ones that didn't had a quick note to let me know why.-joeOn 3/21/06,
Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
On 3/22/06, Francisco Reyes <
[EMAIL PROTECTED]> wrote:
Russell Keith-Magee
The error "no such column" suggests that your schema is out of whack with your model.Use the 'python manage.py sqlall [APPLICATIONNAME]' to determine what Django thinks your schema should be, and compare that to what is there.
While doing heavily development, I use a script to rebuild the whole
hi, Django Users
i am Kartik from INDIA
i want to know that what i can use the statment of scanf like in C we
use it to get input from the user. so which statment we can use to take
values from the user in Python...
plz do help me out
\by
plz can u tell me how can i use a scanf statment like in c to get the
inputs from user as in Python.
i question is that by what statment we can give user an option of
asking the values for the variables by what statment. my mail id is
"[EMAIL PROTECTED]"
Hi,
Does the HttpResponse object set its own content-length header ? (e.g.
the size of the template after it has been loaded). If not, how come?
- Martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
On 3/22/06, Mary Adel <[EMAIL PROTECTED]> wrote:
> I am working with flatpages and they are amazing for me and i customized
> them for my first needs then i am developing another site now that has
> another needs and i need to customize flatpages but in different way so
> how this could be done
Hi all
I'm trying to use generics on the magic removal trunc and I'm a bit at
a loss because the queryset variable seems to get autoconverted to a
string. The following urls.py always results in a "AttributeError:
'str' object has no attribute 'model'":
from django.conf.urls.defaults import *
On 3/22/06, Mary Adel <[EMAIL PROTECTED]> wrote:
> I am working with flatpages and they are amazing for me and i customized
> them for my first needs then i am developing another site now that has
> another needs and i need to customize flatpages but in different way so
> how this could be done
On 3/21/06, ChaosKCW <[EMAIL PROTECTED]> wrote:
> I am wondering what I need to do in order to get the admin site to
> enforce the maxlength property. I am using the MR Branch.
>
> I have a model with a CharField where maxlength=3. I goto in admin. It
> shows a huge box ie way more than 3
>
> Dear All ,
> I am working with flatpages and they are amazing for me and i customized
> them for my first needs then i am developing another site now that has
> another needs and i need to customize flatpages but in different way so
> how this could be done
may we ask what the other needs
Dear All ,
I am working with flatpages and they are amazing for me and i customized
them for my first needs then i am developing another site now that has
another needs and i need to customize flatpages but in different way so
how this could be done
Thanks,
Mary
okay, i finally got this fixed..
what i had to do was..
create the database using utf-8 collation from the very beginning.. and
not try to convert it.. for some reason, when i try to convert it, it
would not convert all the tables..
thanks for your help!
i putted LANGUAGE_CODE = 'fr' in my settings.py
{% free_comment_form for recettes.recipes recipe.id %}
display a comments form in my template, but the button is still in
english.
"preview comments"
have a look
http://ozserver.no-ip.com:345/cefinban/recettes/guest-recipe/
why ?
i want to use
This patch works:
http://groups.google.com/group/django-developers/browse_thread/thread/e784f1e5fde630ed/b7920dba4b69e455#b7920dba4b69e455
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
45 matches
Mail list logo