Hi,
Dumb question - In a feed situation, I am using something like:
return Page.objects.order_by('-date')[:30]
That will always return (say) 30 results. They don't change, it's always the
same 30, with perhaps a few new ones.
Do I have to worry about this sameness -- or does the syndication sys
On Tue, 2009-01-27 at 06:21 -0800, Almad wrote:
> On Jan 26, 1:19 am, Russell Keith-Magee
> wrote:
> > On Sun, Jan 25, 2009 at 10:45 PM,Almad wrote:
> > > I still feel kinda weird that I must hack around Django so much to
> > > make basic testing things working :-]]]
> >
> > Let's be clear here -
On Tue, 2009-01-27 at 17:13 -0500, Matthias Julius wrote:
> I am trying to write a model for which the data can be represented as
> a simple array of a fixed number of one byte integers. To use a
> SQL database for that would be very much overkill. I would simply use
> a file where I can seek to
On Tue, 2009-01-27 at 14:48 -0800, Rodrigo C. wrote:
> > This isn't a Django issue. It's a standard property of browsers: you
> > can't set an initial value for file input fields. This is a security
> > measure, to stop malicious pages uploading files from your hard drive
> > without your explicit
On Tue, 2009-01-27 at 16:48 +0100, felix wrote:
>
> there is some hashing function or combination of URL encoding that can
> do this :
>
>
> given some parameters :
>
> 'music' 'artist' 32L 2L 100 100
> ( artist id 32, 2nd picture, dimensions 100 x 100 )
>
> I wish to generate a fake filenam
On Tue, 2009-01-27 at 22:03 +, Tim Sawyer wrote:
> Hi,
>
> I have a model that includes:
>
> from datetime import date as pydate, datetime
>
> date = models.DateField()
>
> I've overridden delete to do:
>
> def delete(self):
> ...
> if self.date < pydate.today():
>
On Tue, 2009-01-27 at 12:56 -0800, Andrew Fong wrote:
[...]
> Question: Does it make more sense to call setup_environ before or
> after forking?
I'd do it after forking.
>
> In particular, I don't know how Django sets up its database
> connection.
A connection is created the first time you acc
On Tue, 2009-01-27 at 21:44 +0100, Alex Rades wrote:
[...]
> my situation is: It's a site for students and companies, where
> students can post their data and search for internships, and companies
> post their data, internship opportunities, and search for students.
>
> So, students have to fill
On Tue, 2009-01-27 at 11:19 -0800, psj wrote:
> Hi community --
>
> All my models have some common fields, say "created_date" and
> "last_modified_date". However, for various reasons not important here,
> we have some naming conventions on column names: we like them to have
> a prefix that pertai
On Tue, 2009-01-27 at 20:11 +0100, Florian Lindner wrote:
> Hello,
>
> I'm playing around with the contrib.comments framework. I want to
> change the preview form. For that I've copied preview.html to xgm/Blog/
> templates/comments (xgm is my project, Blog is app). My template
> loaders are:
On Tue, 2009-01-27 at 19:36 -0800, vierda wrote:
> Dear all,
>
> Today I'm learning to use generic views for create and update objects.
> It required form_class or model for the argument. My model is User
> from django.contrib.auth.models.User and my form as per below :
>
> from django.contrib.a
On Tue, 2009-01-27 at 09:57 -0800, Almost George wrote:
> -- MODELS -- ( Other, unimportant fields/models have been removed )
>
> class Band(models.Model):
> name= models.CharField(max_length = 50, unique = True)
>
> class Venue(models.Model):
> name
On Tue, 2009-01-27 at 09:25 -0800, Ben Gerdemann wrote:
> Hello,
>
> I'm having problems using {% ifequal s1 "some text" %} to compare
> strings with extended characters in Django templates. When string s1
> contains ascii characters >127, I get exceptions in the template
> rendering.
I know you
On Tue, 2009-01-27 at 08:32 -0800, ajlozier wrote:
> I have made a little progress on the problem I posted about earlier
> (http://groups.google.com/group/django-users/browse_thread/
> thread/100679d9c298dc52/ffa1564be0c4b276?hl=en&lnk=gst&q=tree
> +admin#ffa1564be0c4b276">creating tree inputs in
On Tue, 2009-01-27 at 06:53 -0800, chewynougat wrote:
> After having a closer look in django, it seems that the
> RadioFieldRenderer that renders the radio buttons, renders the entire
> set as a single string, therefore it is not possible to split these
> fields in the template (using django) - if
Dear all,
Today I'm learning to use generic views for create and update objects.
It required form_class or model for the argument. My model is User
from django.contrib.auth.models.User and my form as per below :
from django.contrib.auth.models import User
from django.forms import ModelForm
clas
On Tue, 2009-01-27 at 02:17 -0800, Andrew Ingram wrote:
> Hi All,
>
> I'm using something along the following lines to bulk add a bunch of
> objects to a model's reverse foreignkey relationship:
>
> foo.bar_set.add(*bars)
>
> where bars is a list of Bar objects.
>
> I've noticed that Django is
On Tue, 2009-01-27 at 00:37 -0800, SanPy wrote:
> Thanks a lot, Malcolm,
>
> You got me on the right track, I just needed to escape the string,
> like this:
>
> var prices=[{% for price in prices %}[{{ price.0 }}, '{{ price.1|
> escape }}']{% if not forloop.last %},{% endif %}{% endfor %}];
>
>
Hi all,
I recently had a person make me databases for a website and put them
on there for me... I use django - anyway, I got a completely new site
- same host/domain name/etc - just a new outlook for the site -
however the guy who created my databases told me, that in order get
the databases trans
On Jan 27, 9:14 pm, Malcolm Tredinnick
wrote:
> This isn't anything to do with reverse(). It's a Python thing. The
> "args" argument has to be a sequence. A list or a tuple, for example.
Ah, I hadn't thought of that. Somewhere deep within the Django source,
something probably says "for arg in ar
On Tue, 2009-01-27 at 18:07 -0800, Fluoborate wrote:
> Hello All,
>
> I have a question. When I use the function
> django.core.urlresolvers.reverse(), it works fine with args=(), and it
> works fine with args=(string1, string2 [, ...more strings]), and it
> even works fine with args=(anyOneCharac
Thats because of an anouing thing with tuples where args=('12') is
identical to args='12', you would need to do args=('12',) to make it
work right
Dj Gilcrease
OpenRPG Developer
~~http://www.openrpg.com
On Tue, Jan 27, 2009 at 7:07 PM, Fluoborate wrote:
>
> Hello All,
>
> I have a question.
Hello All,
I have a question. When I use the function
django.core.urlresolvers.reverse(), it works fine with args=(), and it
works fine with args=(string1, string2 [, ...more strings]), and it
even works fine with args=(anyOneCharacterLongString). However, if I
give it args=(multiCharacterString)
Here I have a silly function for pretty printing any model object's
data.
def pprint(res):
for instr in dict(res.__dict__):
if instr[-3:] == "_id":
instr = instr[:-3]
displaymeth = "get_%s_display" % instr
try:
atr =getattr(res,displaymeth)
except:
atr =getattr(re
Patricio Palma wrote:
> Hi guys.
> I'm trying to use Rosetta ( http://code.google.com/p/django-rosetta/ )
>
> in a view (home, a rosetta views) is using a ObjectPaginator and
> InvalidPage but i've a execption
> cant find module ObjectPaginator.
>
> Googling I fix it using
>
> from django.core.pa
Hi guys.
I'm trying to use Rosetta ( http://code.google.com/p/django-rosetta/ )
in a view (home, a rosetta views) is using a ObjectPaginator and
InvalidPage but i've a execption
cant find module ObjectPaginator.
Googling I fix it using
from django.core.paginator import Paginator as ObjectPagin
JonUK wrote:
> Solved - problem was caused by these lines
>
> def __init__(self, *args, **kwargs ):
>super( ContactForm, self ).__init__( args, kwargs )
>
> changing to explicit parameter names fixed it.
>
The correct generic form would have been
def __init__(self, *args, **kwargs ):
su
I have Django 1.0.2 installed, using mod_python compiled against Python
2.6.1 and Apache 2.2.11.
Upon accessing my Django project's configured URL, I get the following
errors:
[Tue Jan 27 19:33:05 2009] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Tue Jan 27 19:33:05 2009] [e
On Wed, Jan 28, 2009 at 5:51 AM, Oleg Oltar wrote:
> Hi!
> I am trying to create few nose test for my application.
> I need to test registration/login, so want to create a test sqlite3
> database, and pre-populate it with some data.
> No sure how to do it.
> I created a setup method:
> def setup(
Solved - problem was caused by these lines
def __init__(self, *args, **kwargs ):
super( ContactForm, self ).__init__( args, kwargs )
changing to explicit parameter names fixed it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
DragonSlayre wrote:
>
> On Jan 27, 4:11 pm, Steve Holden wrote:
>
>> DragonSlayre wrote:
>>
>>
>>> On Jan 27, 3:15 pm, Steve Holden wrote:
>>>
DragonSlayre wrote:
>>> How do you do this?
>>>
>> http://www.swc.scipy.org/lec/shell02.html
>>
>> regards
>> S
On Tue, Jan 27, 2009 at 11:21 PM, Almad wrote:
>
> P.S.: Sorry for the sarcastic tone of my e-mail. I appreciate Your
> work as well as Django framework (or at least some parts of it), but I
> just don't get it: for each and every project I've written in Django,
> I banged my head against the wal
I have a ModelForm and a view, but the form's validation messages are
always rendered on first viewing - any idea why?
# ModelForm
class ContactForm( ModelForm ):
first_name = CharField( 'Firstname' )
last_name = CharField( 'Lastname' )
company = CharField( 'Company' )
tel = CharF
thanks for the doc.
So if I have to store a User object in db (with fields (name, email, pass)
How should I define the fixture? Should I define it in setup?
Also, is there a way I can actually create the test db. Still can't
import create_test_db :(
On Wed, Jan 28, 2009 at 12:49 AM, Jeff Hammerb
Hey Matthias,
To use Django's model object for this task, you will need to implement a
custom manager for your file's structure; you can see some basic
documentation at
http://docs.djangoproject.com/en/dev/topics/db/managers/#topics-db-managers.
It should be noted that Django's ORM is not well sui
Hey Oleg,
To load some sample data for your tests, see Django's documentation on
fixtures:
http://docs.djangoproject.com/en/dev/topics/testing/#fixture-loading.
Later,
Jeff
On Tue, Jan 27, 2009 at 1:05 PM, Karen Tracey wrote:
> On Tue, Jan 27, 2009 at 3:51 PM, Oleg Oltar wrote:
>
>> Hi!
>> I
> This isn't a Django issue. It's a standard property of browsers: you
> can't set an initial value for file input fields. This is a security
> measure, to stop malicious pages uploading files from your hard drive
> without your explicit instruction.
I see. If there's no way to set the initial va
great - thanks!
--~--~-~--~~~---~--~~
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
django-users+unsu
On Jan 27, 9:11 pm, "Rodrigo C." wrote:
> I have model that represents a file, and has a FileField, that I am
> rendering via an Inline Formset. When a user fills in the form it gets
> saved with no problems.
> However, I want the users to be able to continue editing the file, but
> when I re-dis
On Tue Jan 27 12:12 , DragonSlayre sent:
>
>Thanks Waylan -
http://achinghead.com/archive/83/installing-multiple-versions-python/
>is just what I needed.
>
>Thanks Shaleh,
>
>I appreciate the detailed explanation :)
>Yes - the shell is something that I have to get more familiar with -
>I've o
Hi!
I'm planing to add an article list to my application. The idea is to show
every article stored in the database but in a truncated way.
So I used the following template tags to produce the list
{% autoescape off %}
{% for article in list_of_articles %}
{{article.title}}
{{article.bod
On Jan 27, 4:52 pm, Matthias Julius wrote:
> mvtango writes:
> > my users keep several browser windows open in my application, I need
> > to keep session information for all these windows separate. But I have
> > only one session object - modifying it while the user works in window
> > A and w
I am trying to write a model for which the data can be represented as
a simple array of a fixed number of one byte integers. To use a
SQL database for that would be very much overkill. I would simply use
a file where I can seek to the index position and read or write that
byte.
While this in it
Margie wrote:
> Thanks very much, autoescape did the trick, here is the result for
> anyone interested:
>
> {% autoescape off %}
> {{ task.done|yesno:" \" alt=\"False\" />, \"False\" />" }}
> {% endautoescape %}
>
Neat, but I think you need to correct your first alt stri
P.S ,,, Never use index in name generation, or you will run out of range one
day ;) think of that nightmare in advance... i can only wish further
schlaf süß,
grüß
Puneet
On Tue, Jan 27, 2009 at 10:25 PM, felix wrote:
>
> ah, danke dir !
>
> that's exactly what I was looking for
>
> full encoding
mvtango writes:
> my users keep several browser windows open in my application, I need
> to keep session information for all these windows separate. But I have
> only one session object - modifying it while the user works in window
> A and window B in parallel might get me in trouble if Request
I have a client that maintains several hundred small web sites
running on dozens of different machines all over the world. These
sites have common data (footers, privacy policy pages, etc.) he would
like to manage through a single CMS. Currently, he uploads all the
changes manually using F
Hi,
I have a model that includes:
from datetime import date as pydate, datetime
date = models.DateField()
I've overridden delete to do:
def delete(self):
...
if self.date < pydate.today():
Notification.process(None, self, 'Event deleted')
and that works fine
If I
felix wrote:
>
> on my dev server (laptop) I serve the MEDIA_ROOT through the normal
> apache localhost.
> I do not get django to serve them.
>
ok, thank's for your attention,
the problem is solved,
i don't know how it solved,
but with deleting table from database,
than create it again with pytho
Thanks guys, it was staring me in the face but I didn't get it until
the 4th or 5th re-read!
Creating links in the list display with allow_tags is a great feature.
Paddy
On Jan 27, 5:42 pm, Malcolm Tredinnick
wrote:
> On Mon, 2009-01-26 at 21:51 -0800, Paddy Joy wrote:
> > The admin interface
on my dev server (laptop) I serve the MEDIA_ROOT through the normal apache
localhost.
I do not get django to serve them.
ie I do not do this at all:
urlpatterns += patterns('',
(r'^site-media/(?P.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
)
ah, danke dir !
that's exactly what I was looking for
full encodings here:
http://docs.python.org/library/codecs.html#standard-encodings
actually I guess in this case I would have a series of numbers;
[ content_type_id, object_id, index, width, height ]
rather than a string. I can figure that
I have model that represents a file, and has a FileField, that I am
rendering via an Inline Formset. When a user fills in the form it gets
saved with no problems.
However, I want the users to be able to continue editing the file, but
when I re-display the newly created object, the data for the Fil
On Tue, Jan 27, 2009 at 3:51 PM, Oleg Oltar wrote:
> Hi!
> I am trying to create few nose test for my application.
> I need to test registration/login, so want to create a test sqlite3
> database, and pre-populate it with some data.
> No sure how to do it.
>
> I created a setup method:
> def setu
Check out http://docs.python.org/library/logging.html for logging.
There's also some Django logging middleware floating around that might
be useful -- just Google for it.
On Jan 27, 11:45 am, defone wrote:
> Hi,
>
> I'm seeing occasionally bug that is causing an infinite loop. What is
> the best
I am running a python process separate from my actual Django web
server to do background processing. Since I need database access and I
like using Django's models, I call
django.core.management.setup_environ at the start of my background
process.
I am now trying to fork the process using the proc
Hi!
I am trying to create few nose test for my application.
I need to test registration/login, so want to create a test sqlite3
database, and pre-populate it with some data.
No sure how to do it.
I created a setup method:
def setup():
setup_test_environment()
create_test_db()
But getting
On Tue, Jan 27, 2009 at 3:25 PM, Jonathan Nelson wrote:
>
> I just figured it out.
>
> Instead of using a decorator, I just used this:
> def myview(request, comment_id):
> ...if not request.user.is_authenticated():
> ..return HttpResponseRedirect('/login/?next=%s') % request.path
>
This is wh
On Tue, Jan 27, 2009 at 5:12 AM, Malcolm Tredinnick
wrote:
>
> On Tue, 2009-01-27 at 00:11 +0100, Alex Rades wrote:
>> Hi,
>> I need to have two sets of users in my application: One is the Person
>> and the other is the Company. So, I have to decide between going with
>> the userprofile way or in
felix wrote:
> no problem uploading using the dev server
>
> no idea. you didn't leave a pdb in your code, did you ?
>
> what is the output if any in the shell ?
i point the url in the browser to http://localhost:8000/admin/
how to debug with pdb in admin area ?
somat.
--
Stay Hungry Stay Fool
phoebebright wrote:
> You might also check,
> You have DEBUG = True in settings.py
> And have permissions set on the photo directory
> And have something in urls.py file to point to the photo directory
0. DEBUG was true,
1. to ensure directory is writable, its set to 777,
3. is it some think like
Hi there,
my users keep several browser windows open in my application, I need
to keep session information for all these windows separate. But I have
only one session object - modifying it while the user works in window
A and window B in parallel might get me in trouble if Request A and
Request B
On Tue, Jan 27, 2009 at 2:57 PM, Jonathan Nelson wrote:
>
> I'm trying to decorate a view function with login_required. I want
> the user to be redirected to the current view after they log in.
>
> I'm trying:
>
> @login_required(redirect_field_name=request.path)
> def myview(request, comment_id
I just figured it out.
Instead of using a decorator, I just used this:
def myview(request, comment_id):
...if not request.user.is_authenticated():
..return HttpResponseRedirect('/login/?next=%s') % request.path
On Jan 27, 11:57 am, Jonathan Nelson wrote:
> I'm trying to decorate a view func
Thanks Waylan -
http://achinghead.com/archive/83/installing-multiple-versions-python/
is just what I needed.
Thanks Shaleh,
I appreciate the detailed explanation :)
Yes - the shell is something that I have to get more familiar with -
I've only really recently started using ubuntu for developme
Hi,
I'm seeing occasionally bug that is causing an infinite loop. What is
the best way to debug these in production environment? I was thinking
that why there is no built-in simple profiler in Django, just for
example to log how much time it takes to e.g. render each view?
--~--~-~--~---
On Tue, Jan 27, 2009 at 2:00 PM, bobhaugen wrote:
>
> Anybody done anything like:
> a) using the django admin change_list filters directly in custom views
> and templates outside of admin?
> or
> b) created something *like* the admin change_list filters for use in
> custom views and templates out
On Tue, Jan 27, 2009 at 3:42 PM, JonUK wrote:
>
> Apologies for the daft question, but after 10 mins of trawling through
> the official docs and various random google articles, I cannot find
> thyis info.
I found it by clicking ion "the Module Index" link in the main
documentation page,
which to
I'm trying to decorate a view function with login_required. I want
the user to be redirected to the current view after they log in.
I'm trying:
@login_required(redirect_field_name=request.path)
def myview(request, comment_id):
return render_to
but, I'm getting a "NameError: name 'reque
Madhav,
You need to configure this in your mail server.
On Wed, Jan 28, 2009 at 1:17 AM, madhav wrote:
>
> I am not very sure, whether this posting will be attributed to
> sendmail or any other mailing software when compared to Django. I am
> using Django 1.0.2. And I have requirement like, e
I am not very sure, whether this posting will be attributed to
sendmail or any other mailing software when compared to Django. I am
using Django 1.0.2. And I have requirement like, each user of the site
will be mailing any other guy and I have rules for that communication
(let them aside for now).
On Tue, Jan 27, 2009 at 6:42 PM, JonUK wrote:
>
> Apologies for the daft question, but after 10 mins of trawling through
> the official docs and various random google articles, I cannot find
> thyis info.
django.forms.widgets
--~--~-~--~~~---~--~~
You received th
Thanks for the answer, I was already getting worried about my
'session' way. No caching for know although it doesn't seem difficult
to implement. And yes the way you do it would have that advantage, but
mine has beautiful urls!! ^^
thanks again,
Tim DG
--~--~-~--~~~---
Hi community --
All my models have some common fields, say "created_date" and
"last_modified_date". However, for various reasons not important here,
we have some naming conventions on column names: we like them to have
a prefix that pertains to the entity itself, so that the Account model
has db_
Hello,
I'm playing around with the contrib.comments framework. I want to
change the preview form. For that I've copied preview.html to xgm/Blog/
templates/comments (xgm is my project, Blog is app). My template
loaders are:
TEMPLATE_LOADERS = (
'django.template.loaders.app_directories.l
Anybody done anything like:
a) using the django admin change_list filters directly in custom views
and templates outside of admin?
or
b) created something *like* the admin change_list filters for use in
custom views and templates outside of admin?
or
c) got any tips on the simplest way one could d
>
>On Mon Jan 26 17:51 , DragonSlayre sent:
>
>>
>>
>>
>>On Jan 27, 1:41 pm, sha...@speakeasy.net> wrote:
>>
>>> Does this help? Found via google and ubuntu
>forums.https://launchpad.net/~doko/+archive
>>>
>>> Sorry, I run Debian (which ubuntu is based on), I just apt-get install all
>>> of the
I had been looking through that documentation already, but it's
certainly possible I missed something. I'll give it another look.
Thanks for the help guys :)
On Jan 23, 5:10 pm, Brian Neal wrote:
> On Jan 23, 2:43 pm,oboedude wrote:
> [...]
>
> > How do I create a custom widget and what do I hav
On Jan 28, 2009, at 1:52 AM, phoebebright wrote:
>
> I have duplicated as best I can the processing for handling variables
> in custom template tags mentioned in an earlier post but it's not
> working for me as I need the value of the variable before I parse it.
> Is there another way of making
Os my bug. It was a mistype in a model. Exception gone now
On Tue, Jan 27, 2009 at 8:43 PM, Oleg Oltar wrote:
> Hi!
> I want to add a profile to every user, that I can register in my
> application. In future it should contain such fields as avatar, email,
> about_me fields
>
> I found a snip
Hi!
I want to add a profile to every user, that I can register in my
application. In future it should contain such fields as avatar, email,
about_me fields
I found a snippet how to extend django User model:
http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/
But when added
On Mon Jan 26 17:51 , DragonSlayre sent:
>
>
>
>On Jan 27, 1:41 pm, sha...@speakeasy.net> wrote:
>
>> Does this help? Found via google and ubuntu
forums.https://launchpad.net/~doko/+archive
>>
>> Sorry, I run Debian (which ubuntu is based on), I just apt-get install all
>> of the
>> available
Thanks!
Ana
On Jan 27, 9:51 am, Adam Stein wrote:
> Eggs seems to be something related to python packages, not sure exactly
> what they are used for. I needed the PYTHON_EGG_CACHE because my web
> server could not write to the default egg cache directory and so I had
> it use a temp place.
>
>
On Tue, Jan 27, 2009 at 12:53 PM, Karen Tracey wrote:
> Don't use cx_Oracle 5.0, use a 4.X version. The docs were recently changed
> to specify that, after investigation into
> http://code.djangoproject.com/ticket/9935 revealed the problem is due to a
> bug in cx_Oracle 5.0.
>
Thanks, Karen. It
-- MODELS -- ( Other, unimportant fields/models have been removed )
class Band(models.Model):
name= models.CharField(max_length = 50, unique = True)
class Venue(models.Model):
name= models.CharField(max_length = 50)
class Event(mod
You might also check,
You have DEBUG = True in settings.py
And have permissions set on the photo directory
And have something in urls.py file to point to the photo directory
On Jan 27, 1:58 pm, Akhmat Safrudin wrote:
> dear list,
> i am a noob,
> i just starting a project, then create app and ad
I have duplicated as best I can the processing for handling variables
in custom template tags mentioned in an earlier post but it's not
working for me as I need the value of the variable before I parse it.
Is there another way of making the variable available?
The tag is being called from the tem
Eggs seems to be something related to python packages, not sure exactly
what they are used for. I needed the PYTHON_EGG_CACHE because my web
server could not write to the default egg cache directory and so I had
it use a temp place.
Perhaps somebody else can better explain eggs.
On Tue, 2009-01
Apologies for the daft question, but after 10 mins of trawling through
the official docs and various random google articles, I cannot find
thyis info.
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django us
Hello Adam,
Thanks! I have already set up several sections for the
django site, so I must not have the syntax quite right for apache to
ignore the static links. I will work on it. One last question? What
are eggs?
SetEnv PYTHON_EGG_CACHE /tmp/.python-eggs
Thanks,
Ana
On Ja
On Jan 27, 11:06 am, May wrote:
> Hello,
>
> The tutorial suggests not serving the static pages with this method on
> a permanent basis. Are you using this method for your production
> server? I'm using windows/apache/modpython and I've tried using the
> IP address and still run into django url
Hi everybody there! :-)
I have a decimal field and I wish I could use a comma as a separator
between the integer and the decimal part (according to my country
habit).
How do you think I can manage that?
I found this snippet [0], which seems promising. The thing is, I need
to use that field in m
Sometimes there's nothing like describing a problem to someone else to
help you solve it. :) I should have marked the Python strings as
Unicode like this and everything works now:
def test(request):
return render_to_response("test.html", {
"s1": u"d
On Tue, 2009-01-27 at 08:42 -0800, May wrote:
> I'm converting PHP pages to Django. I'm using base.html for my
> formatting. I've included the left-side bar in the base.html, which
> includes links that do not require using a database, such as the
> "contact us" page. Since I'm using localhos
Hello,
I'm having problems using {% ifequal s1 "some text" %} to compare
strings with extended characters in Django templates. When string s1
contains ascii characters >127, I get exceptions in the template
rendering. What am I doing wrong? I'm using UTF-8 coding throughout
the rest of applicatio
I ONLY use it for development with the Django server. I only set up to
serve static pages when DEBUG = True (as they show toward the bottom of
the page).
No need to change links on the production server (apache + mod_python)
because the URLs are a different location than what I have set up for
m
Hello,
The tutorial suggests not serving the static pages with this method on
a permanent basis. Are you using this method for your production
server? I'm using windows/apache/modpython and I've tried using the
IP address and still run into django url requests. Do you know of a
way to get apac
Check out:
http://docs.djangoproject.com/en/dev/howto/static-files/?from=olddocs
I have Django serve static files during development so that all my links
that don't need to go thru Django work.
On Tue, 2009-01-27 at 08:42 -0800, May wrote:
> Hello,
>
> I'm converting PHP pages to Django. I'm
I am assuming that you already have an idea of how your datastring will look
like, and what data it is containing... I am considering *"music artist 32L
2L 100 100"* as input data
so here is a example...
L1 = "music artist 32L 2L 100 100".encode("hex")
> L2 = zlib.compress(L1)
> L3 = L2.encode("he
Hello,
I'm converting PHP pages to Django. I'm using base.html for my
formatting. I've included the left-side bar in the base.html, which
includes links that do not require using a database, such as the
"contact us" page. Since I'm using localhost for testing my link
looks something like this
1 - 100 of 137 matches
Mail list logo