On 10/16/07, Pythoni <[EMAIL PROTECTED]> wrote:
...
> so I have in urls.py
> (r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'),
>
> it works only ifNameis one word, e.g. John.
You'll see documentation of python's re syntax here:
http://docs.python.org/lib/re-syntax.html
Based
Hi,
I need a URL like this
My script is called like this
http://myserver.com/Myscript/Name/
where name is a parameter
so I have in urls.py
(r'^Myscript/(?P\w+)/','miproject.apps.mi.views.mi.Myscript'),
it works only ifNameis one word, e.g. John.
If it is e.g. John Smith it does not wo
Please check the command prompt window in which you have django
running. It will tell you what errors you have made. Copy the messages
if you can't make sense of them and post it here...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Thank you a lot... I thought that the gettext should be a py file.
python does have such a file in lib... I downloaded the gettext as u
suggested and YE Its working now. Thank you a lot...
--~--~-~--~~~---~--~~
You received this message because you are sub
Thank you. I am downloading the instant Django right now, will take a
look at it and see what I can do with it.
On Oct 15, 9:46 pm, "Ariel Mauricio Nunez Gomez"
<[EMAIL PROTECTED]> wrote:
> Phwaxmon, the painless way to get django working is to follow cjl advice:
> 1. Uninstall python
> 2.http://
I figured it was something like that. I've also wondered why there
wasn't a way to add a variable in the templates.
In the end I settled for the CSS fix which was also something I'd
never considered before. It works like a charm and I've learned
something new.
Thanks RajeshD!
On Oct 12, 7:04 am
Hi, is there a password confirmation widget around, to automatically
check and validate (with error messages) if it's the same or not with a
password previously entered (in a different CharField)?
If not, any guide lines on implementing would be nice :)
Thanks
Przemek
--
AIKIDO TANREN DOJO -
Hi Greg,
Within the view you can just use python's built in round function
>>> round(92.5698,2)
92.57
The full documentation is here:
http://docs.python.org/lib/built-in-funcs.html
Look for the "round()" function - the second argument is the number of
decimal places you wish to retain.
Hope
Hello,
I have a view that gets a number. It's value is 92.5698, I want to
find out how to convert that number to two decimal places 92.57 from
within the view.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
Phwaxmon, the painless way to get django working is to follow cjl advice:
1. Uninstall python
2. http://www.instantdjango.com/
Note: After you have played a little, you are going to have to go again and
try to install django with postgres, apache and all the crew, but hopefully
you'll have more kn
On 16-Oct-07, at 12:19 AM, Phwaxmon wrote:
> I think I just need something to get me started. So far I have been
> getting errors, or just ain't been able to execute anything. I am not
> sure if everything has installed correctly, or whether you people who
> have more experience can tell me to c
On 15-Oct-07, at 8:31 PM, Rytis Sileika wrote:
> I was just wondering, what are the best practices to setup/manage
> django projects?
>
> Let's assume two developers working on the same project, same machine.
> Models, views are constantly changing, that would make me think that
> the best way i
Yup. My code is essentially the same thing as the one at the very
bottom. I've tried 3 or 4 different fcgi scripts that people claim
have worked with django, they all produce this though.
As it turns out, I'm actually going to be moving to another server and
probably using mod_fastcgi, so it's n
On 10/15/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On 10/15/07, Stefan Bethge <[EMAIL PROTECTED]> wrote:
> > Just an addition. I would not recommend using oracle with django if
> > you don't have an enterprise version which contains the oracle
> > connection manager. Without it you won'
On 10/15/07, Stefan Bethge <[EMAIL PROTECTED]> wrote:
> Just an addition. I would not recommend using oracle with django if
> you don't have an enterprise version which contains the oracle
> connection manager. Without it you won't have connection pooling
> functionality which slows down django qu
Hi there ...
Thank you for reading this message .
Did you here about Islam? I mean the real Islam...
Do you have some questions in your religion and you don't have the
answers for them?
Do you know that you have to condemns in Islam?
Ok... just visit these sites, read and download any thin
Just an addition. I would not recommend using oracle with django if
you don't have an enterprise version which contains the oracle
connection manager. Without it you won't have connection pooling
functionality which slows down django quite a bit.
It seems there are no free alternatives for it.
Ch
On Mon, 2007-10-15 at 14:54 -0700, johnny wrote:
> Is there a way to run python code in the template?
No. You'll find that's pretty much the guiding principle of the Django
templating language: it's for designers, not Python programmers and
there's no variable changing permitted.
If you need to
Is there a way to run python code in the template? In view, I just
fetchall from database and pass it to the template But I found out I
need to break up the content in one of the field. As each records are
looped inside the template, I need to break up a field and display it.
--~--~-~
On 10/15/07, RajeshD <[EMAIL PROTECTED]> wrote:
>
> 1. Don't add myapp_* to site-packages at all. Instead keep them in two
> directory roots say /home/apps/prod and /home/apps/preprod. Similarly,
> you can have two different settings files for the two environments.
>
> 2. In your Apache vhost conf
On Oct 15, 10:23 am, maqr <[EMAIL PROTECTED]> wrote:
> Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY
> is the only response I can get out of my FCGI script?
Did you follow the official FCGI docs over here?
http://www.djangoproject.com/documentation/fastcgi/
--~--~-
>
> Arn't stings slower against integers?
You can always set db_index=True on the type field if you'll be using
it a lot in your lookups and if the number of records in that table is
going to be huge.
http://www.djangoproject.com/documentation/model-api/#db-index
--~--~-~--~~--
> The idea is I would like to set up a production (prod) and pre-
> production (preprod) and have preprod updated and unit tests run
> everytime I commit changes to the SVN repo from my local machine (this
> can be easily done with svn-hooks).
>
> No problems so far, however what worries me is ho
On Oct 15, 9:39 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote:
> On Oct 15, 1:51 pm, onno <[EMAIL PROTECTED]> wrote:
>
> > The most annoying thing about using:
>
> > TYPE = (('1', 'foo'),('2', 'BAR'))
> > type = models.IntegerField(choices=TYPE)
>
> > Is that you can't do this in your views when you
On Oct 15, 1:51 pm, onno <[EMAIL PROTECTED]> wrote:
> The most annoying thing about using:
>
> TYPE = (('1', 'foo'),('2', 'BAR'))
> type = models.IntegerField(choices=TYPE)
>
> Is that you can't do this in your views when you need to select
> something
>
> Foo.objects.filter(type='BAR')
>
> you ha
> Does anybody know a more easy way?
Any particular reason you have to have type as an IntegerField? If you
had it as a CharField, you could do:
TYPE = (('foo', 'foo'), ('BAR', 'BAR'))
type = models.CharField(choices=TYPE)
Foo.objects.filter(type='BAR')
And, possibly add db_index=True to the ty
On Oct 15, 10:01 am, Rytis Sileika <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was just wondering, what are the best practices to setup/manage
> django projects?
[snip]
> Thanks!
>
> Rytis
To expand on Chris' answer, here's what I would recommend:
Create your project in Subversion (or CVS, or what ha
The most annoying thing about using:
TYPE = (('1', 'foo'),('2', 'BAR'))
type = models.IntegerField(choices=TYPE)
Is that you can't do this in your views when you need to select
something
Foo.objects.filter(type='BAR')
you have to remember what number you gave it or make some "def" to
handle it
I think I just need something to get me started. So far I have been
getting errors, or just ain't been able to execute anything. I am not
sure if everything has installed correctly, or whether you people who
have more experience can tell me to check something or try something
else.
--~--~---
Hi David,
If you'd be willing to indulge me, why doesn't DQS doesn't fit your
requirements? I'd love to have some explicit feedback on where it
could be improved to match your needs. And yes, I know there's a LOT
of places where it could be improved... :-)
-joe
On 10/15/07, David Larlet <[EMAIL
2007/10/15, Jarek Zgoda <[EMAIL PROTECTED]>:
>
> We started with cron jobs, but when it grew to unmanageable bunch of
> scripts, we started thinking on using queuing service (ActiveMQ,
> RabbitMQ - something that is compatible with AMQP and/or can be used
> with python client). Still no decision,
Changing host from '' to 127.0.0.1 in setting.py made the error go
away.
it is working fine now.
thanks
On Oct 15, 11:12 am, ydjango <[EMAIL PROTECTED]> wrote:
> my mysql is running under /opt/lammp.
>
> when I run 'python manage.py syncdb'
> i get error _mysql_exceptions.OperationalError: (2002
my mysql is running under /opt/lammp.
when I run 'python manage.py syncdb'
i get error _mysql_exceptions.OperationalError: (2002, "Can't connect
to local MySQL server through socket '/var/lib/mysql/
mysql.sock' (111)")
Is there anyway I can specify it to use /opt/lampp/var/mysql/
mysql.sock inst
Hello Djangonauts,
First of all let me say I'm relatively new to Django and Python.
The problem I came across is how to setup multiple (two, to be
precise) enviroments for my Django app on one physical machine runnig
mod_python. The development environment is set up locally of course.
The idea is
Is it possible to use django caching layer with memcached backend for
caching binary data?
When I store some binary data and try to retrieve them via cache.get, I
almost always got unicode error. After cache.get is called smart_unicode
on basestring and it doesn't detect that data are not inst
Hello,
I have a class defined. From within that class I have a tupel defined
fields = (
('Order Information', {'fields': ('amount', ('order_status',
'customer', ), 'comments')}))
I want to be able to show my id field in my Order Information
section. However, since I don't have id defined as a
Nevermind. You just got newbafied. Our projects override the default date
time format on the callback.
Sorry. Anyone interested in the form code can e-mail me though!
On 10/15/07, personificator <[EMAIL PROTECTED]> wrote:
>
>
> The default models.DateTimeField() renders a 1-24 hour select input
>
On 10/15/07, AP <[EMAIL PROTECTED]> wrote:
> Before I am able to finalize my decision, I just wanted to be sure
> about this point. So, does Django really support Oracle?
Yes; Oracle support was merged into trunk a couple of months ago, and
is by all accounts stable. You'll need to make sure you'
It's always easier to have your own "working copy" of a certain project.
Tools like bazaar and subversion come in handy for this too ;)
El lun, 15-10-2007 a las 15:01 +, Rytis Sileika escribi�:
> Hi,
>
> I was just wondering, what are the best practices to setup/manage
> django projects?
>
Hi Everyone,
I am building a financial website and one of my friends highly
recommends Django. I was almost sure that I wanted to use Django,
until I read on the wikipedia that the support for Oracle DB is not
officially supported in Django. Now, though Oracle isn't really
essential for a financia
Hi,
I was just wondering, what are the best practices to setup/manage
django projects?
Let's assume two developers working on the same project, same machine.
Models, views are constantly changing, that would make me think that
the best way is to have two separate DBs and two separate django
proj
I had a similar problem in one of my models when I was trying to
display a date as a string (had joined a date and a string in a model
function). From what I recall (not certain), unicode() on the date
fixed the problem.
Michael
On Oct 12, 4:34 pm, Greg <[EMAIL PROTECTED]> wrote:
> Hello,
> I
The default models.DateTimeField() renders a 1-24 hour select input
box on the form. Isn't the proper time display from 00:00 - 23:59?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Thanks. That's exactly what I need. My dynamic settings needs are
not really that dynamic. I haven't had a chance to read up on the
various environment variables. Looks like that's what I'll be doing
next.
Regards,
-Brian
On 10/13/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
> On 10
Should be trivial to do with a regular expression.
On Oct 15, 10:29 am, Greg <[EMAIL PROTECTED]> wrote:
> Andres,
> Using Python...how would I take out all the numeric subsequences in my
> message and store them in a list?
>
> On Oct 15, 3:11 am, Andreas Pfrengle <[EMAIL PROTECTED]> wrote:
>
> >
Andres,
Using Python...how would I take out all the numeric subsequences in my
message and store them in a list?
On Oct 15, 3:11 am, Andreas Pfrengle <[EMAIL PROTECTED]> wrote:
> > I'm thinking that I might have to create a for loop, which loops
> > through every Discounter record and checks to
Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY
is the only response I can get out of my FCGI script?
I get this result when i run "python dispatch.fcgi" or when my browser
runs it (and redirects me). The Django development server runs
without any problem and serves up my li
I installed django yesterday on my Mac and it wasn't that simple. I
got stuck with mysqldb-python problem. I found similar problems on the
mailling list without answers.
http://groups.google.com/group/django-users/browse_thread/thread/16b76b7536bc3a1d/e4d222fe60d3f932?lnk=gst&q=mac+mysqldb#e4d222f
> 1) pass_matched always return False
> how can i compare two fields in my class???
def pass_matched(self):
if self.fields['pass'] == self.fields['repass']:
return True
else:
return False
1. use self.cleaned_data instead of self.fields
2. call pass_matche
I have a no-installation-required Django development environment that
runs under Windows.
Check out:
http://www.instantdjango.com
-cjl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
On 15-Oct-07, at 6:04 PM, AniNair wrote:
> Thank alot for the reply. Yes, I too thought that I just don't have
> the file xgettext.py in my python lib, so added that. Still returning
> the same error. (gave the path too in env variable as c:/python25/lib
> and restarted the comp). Any ideas?
i
Hi Thejaswi Puthraya, I have subscribed to that group too but
seems from the recent posts(which should have been deleted the moment
they were posted.. ) that many are misusing it or nobody is attending
to that group. Thank you all the same.
--~--~-~--~~~---~--~-
Thank alot for the reply. Yes, I too thought that I just don't have
the file xgettext.py in my python lib, so added that. Still returning
the same error. (gave the path too in env variable as c:/python25/lib
and restarted the comp). Any ideas?
--~--~-~--~~~---~--~
On 15-Oct-07, at 5:33 PM, AniNair wrote:
> errors happened while running xgettext on __init__.py
> 'xgettext' is not recognized as an internal or external command,
> operable program or batch file.
either you dont have xgettext on your machine or it is not on the
path. You need to install it
On Oct 15, 5:03 pm, AniNair <[EMAIL PROTECTED]> wrote:
[snipped]
> Please guide me/tell me where I should be looking for errors.
Refer to the Django i18n list for best support.
http://groups.google.com/group/django-i18n/
Cheers
Thejaswi Puthraya
--~--~-~--~~~---
Hi,
I am trying to follow
http://www.djangoproject.com/documentation/i18n/
On trying to run the command make-messages.py -l de, I get the
following error.
processing language de
errors happened while running xgettext on __init__.py
'xgettext' is not recognized as an internal or exter
hi
it's about checking confirmations Field
class Foo(Form):
pass = CharField(min_length=6,max_length=20)
repass = CharField(min_length=6,max_length=20)
def pass_matched(self):
if self.fields['pass'] == self.fields['repass']:
return True
else:
return Fa
Where exactly are you stuck? Could you please give some more details? ;-)
2007/10/15, Phwaxmon <[EMAIL PROTECTED]>:
>
> Ok, now that it looks like its installed, I am not getting an error
> anymore from Python GUI, but then I can't get the first project in
> the tutorial to work at all. I need a
Ok, now that it looks like its installed, I am not getting an error
anymore from Python GUI, but then I can't get the first project in
the tutorial to work at all. I need a little help, I am learning this
for one of my college projects. Anything you can help with will be
appreciated.
Amon
On Oc
Now it installed correctly I think. Thank you. Will holler back later,
if I get stuck again.
Amon
On Oct 15, 4:30 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
> This tutorial is quite outdated. Don't run `python setup.py develop`
> but `python setup.py install` to install Django after checking
alright thanks, will try to run 'python setup.py install'
Amon
On Oct 15, 4:30 am, "Horst Gutmann" <[EMAIL PROTECTED]> wrote:
> This tutorial is quite outdated. Don't run `python setup.py develop`
> but `python setup.py install` to install Django after checking it out
> :-)
>
> 2007/10/15, Phwaxm
and now I have an error from command prompt saying:
svn: REPORT request failed on '/svn/!svn/vcc/default'
svn: REPORT of '/svn/!svn/vcc/default' : 200 OK (http://
code.djangoproject.com)
On Oct 15, 4:24 am, Phwaxmon <[EMAIL PROTECTED]> wrote:
> I tried to do the following from the site after I th
This tutorial is quite outdated. Don't run `python setup.py develop`
but `python setup.py install` to install Django after checking it out
:-)
2007/10/15, Phwaxmon <[EMAIL PROTECTED]>:
>
> I tried to do the following from the site after I thought I had
> installed it "We'll assume you have Django
I tried to do the following from the site after I thought I had
installed it "We'll assume you have Django installed already. You can
tell Django is installed by running the Python interactive interpreter
and typing import django. If that command runs successfully, with no
errors, Django is instal
No, afaik there is no installer for Windows. Did you receive any error message?
- Horst
2007/10/15, Phwaxmon <[EMAIL PROTECTED]>:
>
> Do any of you know if there an .exe file for django for win32/64 bit
> PCs? I have tried to install it as they have instructed on the site,
> but then it doesnt s
Do any of you know if there an .exe file for django for win32/64 bit
PCs? I have tried to install it as they have instructed on the site,
but then it doesnt seem to have installed correctly. Can anybody help
out?
Thank you.
--~--~-~--~~~---~--~~
You received this
Thanks. Got it working.
/mac
On Oct 14, 10:51 pm, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] a écrit :
>
> > Exception Value: Template u'base.html' cannot be extended, because it
> > doesn't exist
>
> It's a "convention" in django that your main template is named
> "base.
> I'm thinking that I might have to create a for loop, which loops
> through every Discounter record and checks to see if the 'code'
> variable is in the 'message variable.
Depending on the number of your Discounter-records, this can result in
many queries.
Perhaps instead you could take every con
David,
It's a very common requirement, and some people have run into this
before.
Have a look at this:
http://code.google.com/p/django-queue-service/
I doubt if this 'll be as robust and reliable as a real messaging
product, but for simple setups it'ld do the trick.
Johan
--~--~-
I know there´s a ticket and it should be solved, but I´m on rev 6026
and with using the archive_month generic view, we always have the
first day of the month in two different lists (current month and
previous month).
any solution to this?
thanks,
patrick
--~--~-~--~~~--
EARN $50 DOLLARS DAILY IN INTERNET JOBS- JOIN FREE
IF YOU WANT NON-STOP INCOME
For more details please log on to
http://www.ezinfocenter.com/9844946/CB
PLEASE COMPLETE THE STEPS TO STEP UP YOUR FUTURE
STEP 1 :- FILL THE FORM AND SIGN UP
STEP 2:- CONFIRM YOUR REGISTRATION VIA E-MAIL. IN THAT
David Larlet napisał(a):
> A bit off-topic but I wonder how did you handle asynchronous tasks
> like emailing or crawling or put-here-your-secret-asynchronous-service
> in your django projects? There are some solutions like django-mailer
> but what about a more general (twisted?) queuing service?
Hi, I'm using newforms and would like to have automatic help button/icon
show after each field so a user can click on it to view some help
message.
Is there any support for something like that in newforms? Maybe someone
has worked a different idea for a help message per field?
Przemek
--
AIKIDO
hello ..
i am using this code to insert image into DataBase
new_data = request.POST.copy()
new_data.update(request.FILES)
profile_form = Things(None, name, new_data['photo'])
profile_form.save()
and it is working properly
now i want to copy the content of this image on an
On Mon, 2007-10-15 at 12:24 +0530, Kenneth Gonsalves wrote:
>
> On 15-Oct-07, at 10:57 AM, Malcolm Tredinnick wrote:
>
> > So, in the rare case where, say, self.sponsor is a UTF-8 string,
> > Kenneth's version might lead to trouble down the track -- but I would
> > have thought that trouble woul
On Oct 15, 8:10 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-10-14 at 19:45 -0700, ashok.raavi wrote:
> > Any body got this NoReverseMatch problem fixed?. If so please point me
> > to that.
>
> Which problem would that be? You have provided no context at all for
> your questi
thanks
On Oct 14, 9:23 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2007-10-14 at 11:52 +, faypy wrote:
> > it's a simple test script:
>
> > from django.core.management import setup_environ
> > import settings
> > settings.DATABASE_NAME = '/home/me/mysite/libtest.sdb'
> > prin
77 matches
Mail list logo