I have created a new ticket for this issue for those interested.
The ticket number is #10369
On 27 Feb., 03:36, Malcolm Tredinnick
wrote:
> On Thu, 2009-02-26 at 01:11 -0800, Briel wrote:
> > I stumbled upon this by accident, and after doing some research on the
> >
> "Jacob" == Jacob Kaplan-Moss writes:
Hi Jacob,
let me express my gratitude for providing Django 1st!
Jacob> The best thing you can do is try both and pick the one that works
Jacob> better for you. Me, I generally try to pick the software that's
Jacob> got
On Thu, 2009-02-26 at 21:15 -0800, Bobby Roberts wrote:
> Is it possible to execute a view from within a view?
>
> I've got a situation in my current view where if a condition is met, I
> need to branch control to a new view and send it new parameters. I
> have the following but it doesn't
I guess the error is in the line where u are passing the parameters to
ShowAuctionDetails view. Check if it works without passing request object as
the parameter. It worked in a similar view in my project.
The function signature then would be:
ShowAuctionDetails(slug=currentslug,selfbidder=1)
> You just call it, views are normal python functions, that being said it is
> often better to redirect where possible(or sensible).
>
> Alex
hey alex -
Thanks for your quick reply. Is my syntax above correct to execute
it? it doesn't seem to be working at all. I know the code is
executing
On Fri, Feb 27, 2009 at 12:15 AM, Bobby Roberts wrote:
>
> Is it possible to execute a view from within a view?
>
> I've got a situation in my current view where if a condition is met, I
> need to branch control to a new view and send it new parameters. I
> have the
Is it possible to execute a view from within a view?
I've got a situation in my current view where if a condition is met, I
need to branch control to a new view and send it new parameters. I
have the following but it doesn't work:
Showdetails(request,slug=currentslug,selfbidder=1)
I have read
On Fri, Feb 27, 2009 at 12:02 AM, adrian wrote:
>
>
> I have a working app I'm trying to host. I have this line in urls.py
> in my project directory:
>
> url(r'^$', direct_to_template, {"template": "homepage.html"},
> name="home")
>
> and my base template uses the tag {%
I have a working app I'm trying to host. I have this line in urls.py
in my project directory:
url(r'^$', direct_to_template, {"template": "homepage.html"},
name="home")
and my base template uses the tag {% url home %}, and I am getting the
error message:
NoReverseMatch: Reverse for
Ok, thanks for your time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
On Thu, 2009-02-26 at 17:04 -0800, AKK wrote:
> Hi,
>
> I have a template and I want to get some images out of my media root.
> I was wondering is there anyway to automatically return the media root
> from settings.py rather than manually specifying it rather each time.
You are probably wanting
On Thu, Feb 26, 2009 at 10:10 PM, Jack Orenstein wrote:
>
> On Feb 26, 2009, at 10:04 PM, Alex Gaynor wrote:
>
> >
> >
> > On Thu, Feb 26, 2009 at 9:56 PM, Jack Orenstein
> > wrote:
> >
> >
> > > value="m" name="gender" /> male
> > > value="f"
On Feb 26, 2009, at 10:04 PM, Alex Gaynor wrote:
>
>
> On Thu, Feb 26, 2009 at 9:56 PM, Jack Orenstein
> wrote:
>
>
> value="m" name="gender" /> male
> value="f" name="gender" /> female
>
>
> I want to get rid of the ul and li tags, and just put a between
> the two
On Thu, 2009-02-26 at 13:00 -0800, Tim White wrote:
> Hi -
>
> Is there a way to get the name and path of the current template being
> rendered?
Not really. If settings.DEBUG is True, there is an "origin" attribute on
the template, but it may not contain a useful value (after all,
templates
On Thu, Feb 26, 2009 at 9:56 PM, Jack Orenstein wrote:
>
> On Feb 26, 2009, at 9:44 PM, Alex Gaynor wrote:
>
> > On Thu, Feb 26, 2009 at 9:42 PM, Jack Orenstein
> > wrote:
> >
> > Suggestion: Instead of hardwiring formatting into Django, allow
> >
On Feb 26, 2009, at 9:44 PM, Alex Gaynor wrote:
> On Thu, Feb 26, 2009 at 9:42 PM, Jack Orenstein
> wrote:
>
> Suggestion: Instead of hardwiring formatting into Django, allow
> attributes to specify formatting. E.g., here is the minimal HTML for
> radio buttons for
On Thu, Feb 26, 2009 at 9:42 PM, Jack Orenstein wrote:
>
> I'm new to Django, and making good progress rewriting a Struts-based
> website. (It started rotting because I found Struts so painful and
> non-intuitive. Django is so much easier.)
>
> The major problems I'm running
I'm new to Django, and making good progress rewriting a Struts-based
website. (It started rotting because I found Struts so painful and
non-intuitive. Django is so much easier.)
The major problems I'm running into have to do with HTML generation,
first with error messages, and then with
On Thu, 2009-02-26 at 01:11 -0800, Briel wrote:
> I stumbled upon this by accident, and after doing some research on the
> docs, it seems that there is a flaw with the translation template tags
> and the auto escaping. I might have missed something or maybe it's
> created to do this, so I'm
if you include the django.core.context_processors.media context processor
http://docs.djangoproject.com/en/dev/ref/templates/api/?from=olddocs#django-core-context-processors-media
On Thu, Feb 26, 2009 at 8:04 PM, AKK wrote:
>
> Hi,
>
> I have a template and I want
Hi,
I have a template and I want to get some images out of my media root.
I was wondering is there anyway to automatically return the media root
from settings.py rather than manually specifying it rather each time.
Thanks
Andrew
--~--~-~--~~~---~--~~
You
On Wed, 2009-02-25 at 16:42 -0800, saxon75 wrote:
[...]
> The culprits seem to be the for loop in the template that iterates
> over node.article.tags and also the two calls to node.comment_count.
> As you can see from the model, node.comment_count is a member function
> that returns the value of
On Wed, 2009-02-25 at 10:41 -0800, Kevin Audleman wrote:
> Ah, gotcha.
>
> Maybe django should include a iin function =)
We already do. It's spelled reduce(operator.or, [...], Q()). :-)
Databases don't support inexact IN matching, so Django doesn't support
it directly. Wrapping what is already
On Wed, 2009-02-25 at 16:37 +0100, Thomas Guettler wrote:
> Hi,
>
> I profiled my application and discovered, that it spends
> a lot of time in _cull() and get_num_entries() in the file
> cache backend.
>
> It is very easy to have a cron job which cleans the directory
> by deleting all files
I've extended the User model with a UserPofile model and have inline
editing working. Setup is something like this:
class UserProfile(models.Model):
user = models.ForeignKey(
User,
unique=True,
)
position = models.ForeignKey(Position)
...etc...
I need a
I'm curious if anyone knows why you can't thread a "next" parameter
through the contrib.auth password reset machinery the way you can with
login/logout/etc.
Is it an oversight, or have folks thought it through carefully and
pronounced it a bad idea?
(Just thought I'd check before I cut-n-paste
On Thu, Feb 26, 2009 at 6:13 PM, jacks...@gmail.com <
jackson.torr...@gmail.com> wrote:
>
> I try to make my own custom storage like:
>
> from django.core.files.storage import Storage
>
> CUSTOM_MEDIA_ROOT = 'blah'
> CUSTOM_MEDIA_URL = 'bleh'
>
>
> class MediaStorage(Storage):
>def
On Thu, Feb 26, 2009 at 6:26 PM, Jason Broyles wrote:
>
> Thanks for the reply. I was talking about using memcache to cache the
> view. If a search changes, will it get the cache or hit the database?
>
> On Feb 26, 6:11 pm, Alex Gaynor wrote:
> > On
I try to make my own custom storage like:
from django.core.files.storage import Storage
CUSTOM_MEDIA_ROOT = 'blah'
CUSTOM_MEDIA_URL = 'bleh'
class MediaStorage(Storage):
def __init__(self, location=CUSTOM_MEDIA_ROOT,
base_url=CUSTOM_MEDIA_URL, *args, **kwargs):
On Thu, Feb 26, 2009 at 9:22 AM, Sushant Sinha wrote:
> I agree with you that a user code can best determine whether to roll
> back or commit. However, I think this is not reflected in the
> documentation for the models at all.
>
>
Thanks for the reply. I was talking about using memcache to cache the
view. If a search changes, will it get the cache or hit the database?
On Feb 26, 6:11 pm, Alex Gaynor wrote:
> On Thu, Feb 26, 2009 at 6:08 PM, Jason Broyles wrote:
>
> > I have a
On Thu, Feb 26, 2009 at 6:08 PM, Jason Broyles wrote:
>
> I have a question about per view caching. Say I have a search form and
> someone performs a query that returns all of the results, then those
> results are cached. If they then did a new search with criteria in the
>
I have a question about per view caching. Say I have a search form and
someone performs a query that returns all of the results, then those
results are cached. If they then did a new search with criteria in the
search, will it use the cache or hit the database again? Or if they
just sorted those
On Feb 27, 12:29 am, "omat * gezgin.com" wrote:
> Thanks for the pointer.
>
> But I checked the architecture of the liblwgeom.so with 'file' and the
> result is:
> /usr/local/pgsql_saved_0804141532/lib/liblwgeom.so: Mach-O bundle i386
>
> which is the correct architecture for
On Thu, Feb 26, 2009 at 7:22 AM, stuart wrote:
>
> Hi,
>
> I'm new to django and am having problems configuring the django-cms
> application with apache (using mod_python). I have followed the
> install steps (http://django-cms.org/installation/) but Apache throws
>
Hi -
Is there a way to get the name and path of the current template being
rendered?
Thanks!
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
> Django Reference suggests that we use Transaction Middleware in the
> web applications.
Mm, the documentation doesn't suggest you use it, it merely details
how to use it if you in fact need it. Whether you need it or not is a
design decision you must make.
> What is the usual practice
[fixed top-posting]
On Thu, Feb 26, 2009 at 09:31, Matej wrote:
> On Feb 26, 3:38 pm, Alex Gaynor wrote:
>> On Thu, Feb 26, 2009 at 4:36 AM, Matej wrote:
>>
>> > Hello.
>> > I would like to get my translated text from
Daniel,
thanks much. That was the problem.
Damn -- its so freakishly easy to miss such nasty little things when
you're over worked :-)
thanks again.
-pranav.
On Feb 26, 4:03 pm, Daniel Roseman
wrote:
> On Feb 26, 8:12 pm, "uno...@gmail.com"
My suggestion would be don't. I think allowing users to edit their own
emails will create more problems than it will solve, as I don't think
you can trust users to put in valid info their email unless they have
a motivating reason (like registering). Better to put a contact link
to an admin to
I started exploring this, but quickly hit the roadblock of how to get
the session associated with a particular user. This is not easily done
- the only way I can see doing it is to iterate over all session
objects, decode them and check for the user id. That seems like a lot
of overhead with the
On Feb 26, 8:12 pm, "uno...@gmail.com" wrote:
> I have the following model form:
>
> class EditProfileForm(ModelForm):
>
> class Meta:
> model = UserProfile
> exclude = ('user',)
>
> The corresponding model is:
>
> class UserProfile(models.Model):
>
>
On Feb 26, 7:10 pm, seamusjr wrote:
> > But what is points? Where is it coming from? As the traceback shows
> > you, you haven't set the points variable anywhere. Where are you
> > expecting it to come from?
> > --
> > DR.
>
> I want to iterate thru the points property of the
On Feb 26, 3:12 pm, "uno...@gmail.com" wrote:
> I have the following model form:
>
> class EditProfileForm(ModelForm):
>
> class Meta:
> model = UserProfile
> exclude = ('user',)
>
> The corresponding model is:
>
> class UserProfile(models.Model):
>
>
I'm putting a Pinax-based app on WebFaction using mod_python. It's
generating
these errors in the apache error log:
http://dpaste.com/1966/
This is probably an apache configuration or settings.py or path issue
because I don't get the error
with the dev server. The directory structure is as
I have the following model form:
class EditProfileForm(ModelForm):
class Meta:
model = UserProfile
exclude = ('user',)
The corresponding model is:
class UserProfile(models.Model):
user = models.ForeignKey(User)
firstname =
Hi
I am wondering if I can use django and create forms which have
textarea and people are allowed to format its content (like bold,
italics)..Something like WYSIWYG
Second Question, in admin interface I am able to group fields together
and assign them a class.
Ex: ('Date information',
2009/2/26 Matthias Kestenholz :
>
> Hey,
>
> A topic which comes up on this list from time to time is an automatic
> admin interface for django-mptt. I'd like to advertise a piece of code
> we have written at our company a little bit, and I'd also like to invite
>
Editing user properties (without admin interface)
I would like User to be able to user properties like email, and user
profile stuff like secret question, location etc.
I have created AUTH_PROFILE_MODULE; which has User as foreign key
models.ForeignKey(User,unique=True)
class
> But what is points? Where is it coming from? As the traceback shows
> you, you haven't set the points variable anywhere. Where are you
> expecting it to come from?
> --
> DR.
I want to iterate thru the points property of the Song object, from
models.py, how can I output that from the views to
> But what is points? Where is it coming from? As the traceback shows
> you, you haven't set the points variable anywhere. Where are you
> expecting it to come from?
> --
> DR.
I want to iterate thru the points property of the Song object, from
models.py, how can I output that from the views to
> But what is points? Where is it coming from? As the traceback shows
> you, you haven't set the points variable anywhere. Where are you
> expecting it to come from?
> --
> DR.
I want to iterate thru the points property of the Song object, from
models.py, how can I output that from the views to
Hi everyone,
I've had pretty good success with TinyMCE/django-admin-uploads so far,
but FCKEditor is boasting Python integration. Sure would be nice to
get built-in file handling support for Images, Flash, etc without
having to integrate any other 3rd party apps.
Has anyone been able to
On Feb 26, 11:20 am, tyler kunter wrote:
> thanks eric...I was able to fgure that out after a lil frustration thank you
> for your response.
>
> On Thu, Feb 26, 2009 at 1:32 AM, Eric Abrahamsen wrote:
>
> > On Feb 26, 2009, at 4:30 PM, tykun...@gmail.com
I have a simple question over the best way I can paginate the result
coming from parameters passed by a POST.
In my current impelementation, I do the following :
The Form "posts" the information to filter the data and the result
is : "page one" of the query result.
The resulting page generates
Hi,
Django Reference suggests that we use Transaction Middleware in the
web applications.
What is the usual practice followed here? Do we use Transaction
Middleware most of the time?
The reason why I am asking is due to the following reason:
In my code, I at many places do the
Disregard. Change was due to some changes in Amazon and/or XMLtramp,
coupled with inadequate error handling in my code.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Feb 26, 5:10 pm, seamusjr wrote:
> Ok, I got rid of the pointx variables, replaced them with the
> following and restarted the server.
>
> selected_song_set.points = points
> selected_song_set.save()
>
> Here is the traceback:
>
> Environment:
>
> Request Method: POST
>
I figured out what to do.
I created a new instance in the view.py:
def search(request):
newdate='1999'
In the template I used the "Y" for both instances and was able to get
the comparison to work:
{% ifequal items.startdt|date:"Y" newdate|date:"Y" %}
this does the correct
> j...@john-laptop:~/Django/mysite$ ls -l
Try using the full path to the file rather than the ~ shortcut:
/home/username/Django/mysite/mysite_data.db
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
Thanks, everyone exactly what I was missing.
wegi
On 25 Feb., 15:28, Daniel Roseman
wrote:
> On Feb 25, 12:33 pm,wegi wrote:
>
>
>
> > Hi all,
> > I'm new to django, made my way through the tutorial and parts of the
> > remaining
Sorry for repeating this, but I'm still clue-less on it and the
deadline approaches fast: The current work_around(http://dpaste.com/
hold/427) seems too ugly. But that's not why I'm back. I've stumbled
upon one more similar problem. Both can be grouped together into this
statement: What's the
This code used to work, but appears to have stopped working at some
point. I suspect it's either a unicode or escaping thing. I'm trying
to use Amazon web services and return books:
amazonfile = urllib.urlopen("http://webservices.amazon.com/onca/xml?
Ok, I got rid of the pointx variables, replaced them with the
following and restarted the server.
selected_song_set.points = points
selected_song_set.save()
Here is the traceback:
Environment:
Request Method: POST
Request URL: http://127.0.0.1:8000/polls/1/vote/
Django Version: 1.1 pre-alpha
using django 1.0.x from svn
I'm doing the following to disassociates a relation.
instance = Some.objects.get(pk=1)
insance.bar_set.clear()
bar_set has a method clear yet and the foreignkey in bar is
"null=True"
Yet if I call "clear()" then nothing happens. the foreignkeys are not
set to NULL
Hello everybody,
I've been hitting my head against the walls for the last two days
because I can't figure out what I'm doing wrong with this middleware.
I added the middleware in my MIDDLEWARE_CLASSES that way :
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
Hi Karen,
5.0.1 just came out a few days ago. Upgrading solved the issue and now
I can get connected to Oracle. Woohoo.
b
On Feb 20, 11:44 am, Karen Tracey wrote:
> On Fri, Feb 20, 2009 at 10:52 AM, Brandon Taylor
> wrote:
>
>
>
>
>
> > Hi
Thank you for all the suggestions!
Solution 1 - Did not work: pub4=Publication.objects.filter
(techpubcombo__technology=t).filter(pathpubcombo__pathology=p).filter
(commpubcombo__commodity=c)
Solution 1 didn't pull any records
Solution 2 - Did not work:
On Thu, Feb 26, 2009 at 2:46 AM, Gour wrote:
> Although I'm still fiddling on my 'localhost', I'd like to know which
> web server you recommend to settle on between lighty and nginx (Apache
> excluded) so I can be clear in the future when choosing hosting/VPS for
> Django
thanks eric...I was able to fgure that out after a lil frustration thank you
for your response.
On Thu, Feb 26, 2009 at 1:32 AM, Eric Abrahamsen wrote:
>
>
> On Feb 26, 2009, at 4:30 PM, tykun...@gmail.com wrote:
>
> >
> > Hi I am trying to pass an HTML table to a template and
Thank you, that set me on the right track.
On Feb 24, 9:35 pm, Malcolm Tredinnick
wrote:
> On Tue, 2009-02-24 at 11:36 -0800, ggates03 wrote:
> > Is there any way to have multiple sessions for one browser?
> > Basically
> > I have a need for different cookie values to
This looks like it should work but it does not.
WebStoreRating fields delivery and ui have defined
choices=RATING_CHOICES
>>> r = WebStoreRating.objects.filter(pk=1)
>>> r = r[0]
>>> r.get_delivery_display()
3
>>> r.get_ui_display()
3
>>>
I get the first field insted of the second.
Here I get 3
hello dear djangonauts,
Could anyone explain what is wrong here and i am getting an error 32:
broken pipe?
I am using this url: ...appname/mama/10/10/
*
url.py
(r'^appname/mama/(?P\d+)/(?P\d+)/$',
'appname.views.mama')
(r'^appname/mama/(?P\d+)/(?P\d+)/(?P.*)$',
'django.views.static.serve',
On Thu, Feb 26, 2009 at 7:23 AM, Stefan Tunsch wrote:
>
> Hi!
>
> I have a site that is starting to be used by a growing number of users,
> and I find myself in the need of creating some kind of user manual.
> My first thought has been to use the docstrings with which I'm
>
On Thu, Feb 26, 2009 at 4:36 AM, Matej wrote:
>
> Hello.
> I would like to get my translated text from ugettext_lazy() result.
> How can I do that?
>
> Example:
> http://dpaste.com/1744/
>
> #models.py
> RATING_CHOICES = (
>('0', _('I don\'t know')),
>('1',
On Wed, 2009-02-25 at 23:09 -0500, Karen Tracey wrote:
> You want to use the transaction commit/rollback routines, not cursor
> ones:
>
> http://docs.djangoproject.com/en/dev/topics/db/transactions/
I did not know about this.
>
>
> I think that the cursor should rollback
Hi
Recently I'm trying to write tests for almost every thing in my code.
Including HTTP and XMLRPC requests.
from django.test import TestCase
class XmlRpcCase(TestCase):
def setUp(self):
self.xmlrpc = xmlrpclib.ServerProxy("http://127.0.0.1:8000/
store/xmlrpc")
def
Hi,
I'm new to django and am having problems configuring the django-cms
application with apache (using mod_python). I have followed the
install steps (http://django-cms.org/installation/) but Apache throws
the following error:
ImportError: No module named cms
My foo.com website code has 1
Thanks for the pointer.
But I checked the architecture of the liblwgeom.so with 'file' and the
result is:
/usr/local/pgsql_saved_0804141532/lib/liblwgeom.so: Mach-O bundle i386
which is the correct architecture for my Intel based macbook pro.
I am lost.
On Feb 26, 1:25 pm, Graham
On Feb 26, 3:41 am, seamusjr wrote:
> I am trying to modify the polls example from djangoproject.com to take
> a integer point value for each of the 1 thru 5 poll items instead of
> having a radio button where u select one. However, I am having
> problems with the views.py
Hi!
I have a site that is starting to be used by a growing number of users,
and I find myself in the need of creating some kind of user manual.
My first thought has been to use the docstrings with which I'm
documenting my code.
I've seen that django comes with a Documentation option in the
On Thu, Feb 26, 2009 at 9:51 AM, jason zones wrote:
> hello, all.
> i have a problem when i type "python manage.py dbshell" in the commandline
> within the mysite folder. i used sqlite3 as the db.
> when i typed the command, it showed the error "You appear not to have the
>
Thank you for your replies,
Kevin,
Adding a slash does no good when it comes to calling static files
using serve(). It works different than the regexp for calling a def
from views.py because it searches for directories, file extensions
etc.
Raffaele,
swaping the lines produces an "error 32,
hello, all.
i have a problem when i type "python manage.py dbshell" in the commandline
within the mysite folder. i used sqlite3 as the db.
when i typed the command, it showed the error "You appear not to have the
'sqlite3' program installed or on your path."
my installed python version is 2.6 and
Or perhaps they will remain trivial for a while.
I added the name as such:
DATABASE_NAME = '/Django/mysite/mysite_data.db'
{I have tried w/ ~, w/o leading /, with /john/Djan..., and w/ john/
Dja...}
My project looks like this:
j...@john-laptop:~/Django/mysite$ ls -l
total 24
-rw-r--r-- 1 john
Hi all,
Following the instructions on in http://geodjango.org/docs/install.html,
i managed to get to "Creating a Spatial Database Template" section.
But when trying to execute the line below (as postgres user of
course):
$ psql -d template_postgis -f `pg_config --sharedir`/lwpostgis.sql
it
Thanks!!!
On Feb 26, 10:28 am, Eric Abrahamsen wrote:
> On Feb 26, 2009, at 6:23 PM, marco sedda wrote:
>
>
>
> > Hi,
> > I want to select a "single" field from a table, i've read the
> > QuerySet API reference but i can't find anything to solve my query.
>
> > Just to
On Feb 26, 2009, at 6:23 PM, marco sedda wrote:
>
> Hi,
> I want to select a "single" field from a table, i've read the
> QuerySet API reference but i can't find anything to solve my query.
>
> Just to explain:
>
> If i've a table like:
>
> User
> first_name =
On Thu, Feb 26, 2009 at 7:23 PM, marco sedda wrote:
>
> Hi,
> I want to select a "single" field from a table, i've read the
> QuerySet API reference but i can't find anything to solve my query.
>
> Just to explain:
>
> If i've a table like:
>
> User
> first_name =
Hi,
I want to select a "single" field from a table, i've read the
QuerySet API reference but i can't find anything to solve my query.
Just to explain:
If i've a table like:
User
first_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
how i can execute
WOW!!! That was painfully obvious. As I said newbe...to python,
django, and programming. Hopefully my questions will get more
interesting soon!
Thanks
On Feb 26, 3:29 am, Karen Tracey wrote:
> On Thu, Feb 26, 2009 at 2:41 AM, john wrote:
>
> > I am
Hey,
A topic which comes up on this list from time to time is an automatic
admin interface for django-mptt. I'd like to advertise a piece of code
we have written at our company a little bit, and I'd also like to invite
everyone to give comments and feedbacks. I do have many more ideas
floating
Hello.
I would like to get my translated text from ugettext_lazy() result.
How can I do that?
Example:
http://dpaste.com/1744/
#models.py
RATING_CHOICES = (
('0', _('I don\'t know')),
('1', _('Very bad')),
('2', _('Bad')),
('3', _('OK')),
('4', _('Good')),
('5',
On Feb 26, 2009, at 4:30 PM, tykun...@gmail.com wrote:
>
> Hi I am trying to pass an HTML table to a template and have it display
>
> Currently I have{{table1}} inside my template to mark the position
> I wish to display the table
>
> In my views.py I havereturn
On Thu, Feb 26, 2009 at 2:41 AM, john wrote:
>
> I am trying to follow the Django | Writing your first Django ap part 1
> tutorial. When I get to the python manage.py syncdb command I get the
> following:
>
> Traceback (most recent call last):
> [snip]
>raise
The error message provides the answer: "Please fill out DATABASE_NAME in the
settings module before using the database."
When using sqlite3 you are required to provide a path the target DB as per
comment: # Or path to database file if using sqlite3.
so
Add the full path to DATABASE_NAME. I.E.
Hi I am trying to pass an HTML table to a template and have it display
Currently I have{{table1}} inside my template to mark the position
I wish to display the table
In my views.py I havereturn render_to_response('results_s.html',
{'table1': table1})
>From this all I get back is the
It's a good news for the django develpement ...
2009-02-26
bruce.hpshare
发件人: पुनित मदान
发送时间: 2009-02-26 15:31:41
收件人: django-users
抄送:
主题: Re: NetBeans IDE for Python
u dont need to move django ... but need to configure python path in project
properties
2009/2/26
I am trying to follow the Django | Writing your first Django ap part 1
tutorial. When I get to the python manage.py syncdb command I get the
following:
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File
I stumbled upon this by accident, and after doing some research on the
docs, it seems that there is a flaw with the translation template tags
and the auto escaping. I might have missed something or maybe it's
created to do this, so I'm posting here to figure out what's going on.
Anyways, the
1 - 100 of 101 matches
Mail list logo