On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
[...]
> And here's how I defined the apps in Apache2 (running with lastest
> Django SVN).
>
>
> SetHandler python-program
> PythonPath "['/var/www/myapps'] + sys.path"
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_
On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
>
> [...]
>
>
>
> > And here's how I defined the apps in Apache2 (running with lastest
> > Django SVN).
>
> >
> > SetHandler python-program
> > PythonPath "['/var/www/myap
class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
message = forms.CharField()
email = forms.EmailField()
phone = forms.CharField(max_length=8)
cc_myself = forms.BooleanField(required=False)
is there a way that, between 'email' and 'phone', at least one
On Tue, 2008-08-26 at 01:39 -0700, est wrote:
> class ContactForm(forms.Form):
> subject = forms.CharField(max_length=100)
> message = forms.CharField()
> email = forms.EmailField()
> phone = forms.CharField(max_length=8)
> cc_myself = forms.BooleanField(required=False)
>
>
Try again:
If I do this in urls.py
...
('^accounts/login/(.*)', 'django.contrib.auth.views.login'),
...
I get TemplateDoesNotExist exception, because the template parameter is
empty. The full snippet is
http://dpaste.com/73893/
The template name is empty already at the callback (line 33) - s
I guess I saw it as operating on a group of objects: filtering the
group of authors related to my_book by is_living. I also think I got
RelatedManager confused with Manager.
I think I can handle two db hits, although it's not optimal. I wish
there was a way to get a set of data filtered on many l
for having a custom error message for one of the fields (or both), use
form.errors[key] = forms.util.ErrorList([_('Your error message.')])
within the clean() method.
I haven´t tested it, but it should work. be aware that "raise
forms.ValidationError(_('Your error message.'))" is only tied to a
sp
I am taking an input from user in text area, like comments.
but when I print them, they all display in one line.
how can I format them to display exactly how use entered them? (new
lines, tabs etc)
--~--~-~--~~~---~--~~
You received this message because you are subs
can someone provide an example for this?
moreover, how is it possible to limit choices on a website (not using
ModelAdmin)?
thanks,
patrick
On Aug 25, 9:35 am, krylatij <[EMAIL PROTECTED]> wrote:
> > There is no longer any reason whatsoever to use this in any way in the
> > admin. It was an ug
Malcom,
Thank you very much. It solved my problem!
On Aug 26, 9:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Mon, 2008-08-25 at 23:45 -0700, mario wrote:
>
> [...]
>
>
>
> > And here's how I defined the apps in Apache2 (running with lastest
> > Django SVN).
>
> >
> > SetHandler
Graham,
Thank you for your help. II'll pay attention to cookies to.
Using the PythonInterpreted directive, as Malcom suggested, solved my
problem.
On Aug 26, 9:44 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > On M
On Aug 26, 2008, at 5:00 PM, MrJogo wrote:
>
> I guess I saw it as operating on a group of objects: filtering the
> group of authors related to my_book by is_living. I also think I got
> RelatedManager confused with Manager.
Yaar, it can be a bit confusing. I guess what's important is to
reme
I just tried the same with a fresh installation from SVN trunk and get the
same error.
2008/8/26 Ludwig <[EMAIL PROTECTED]>
> Try again:
>
> If I do this in urls.py
>
> ...
> ('^accounts/login/(.*)', 'django.contrib.auth.views.login'),
> ...
>
> I get TemplateDoesNotExist exception, because t
Hey guys im a django developer and have an interest in the new XIFF
flash api so i have just created a new google group for XIFF
developers or anyone / django developers like me interested in XIFF /
XMPP would be great for everyone involved or interested in this to
join. Its extremely small at the
On Aug 26, 10:12 am, Will Rocisky <[EMAIL PROTECTED]> wrote:
> I am taking an input from user in text area, like comments.
> but when I print them, they all display in one line.
> how can I format them to display exactly how use entered them? (new
> lines, tabs etc)
When you say 'print' I presume
scenario: users are uploading documents (e.g. images, files, ...).
these documents are saved in a model "Attachment" assigned to the
currently logged-in "User". now, every user has the possibility to
attach documents to a blog-entry. these attachments are saved in a
model "BlogEntryAttachment" ass
Nobody have ideas?
On Aug 25, 6:28 pm, fax8 <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> anyone can tell me why the following does not works as expected?
>
> I mean why, when displaying the form with:
>
> form = RenderForm()
> return render_to_response('add_render.html', {'form': form},
> contex
http://groups.google.com/group/xiff-users
On Aug 26, 11:14 am, [EMAIL PROTECTED] wrote:
> Hey guys im a django developer and have an interest in the new XIFF
> flash api so i have just created a new google group for XIFF
> developers or anyone / django developers like me interested in XIFF /
> XM
Hi Ronaldo,
I really think that your providers can give you more help than we can at the
moment because they have clearly got some scripts in place to start / stop the
webserver. I would ask them if there is an errorlog file for the webserver, and
if not ask them if they can set one up. Trying
Hi David!
Many thanks for your response. I assume with S3Storage.py you mean the
file which I have downloaded from AWS, right?
Many thanks, Tom
On 25 Aug., 10:49, David Larlet <[EMAIL PROTECTED]> wrote:
> Hi Tom,
>
> The DEFAULT_FILE_STORAGE setting need to be set with a (python) path
> to yo
Apologies for subjecting people to my debugging effort, but I have now tried
to replicate the problem with a minimal installation.
I create a new project with django-admin.py, and simply edit the database
settings to fit my DB, then run syncdb.
Then I create a minimal urls.py like this:
from djan
Hi,
We are using csrf together with ajax (Patch:
http://code.djangoproject.com/ticket/8127).
For content uploading we are using the YUI uploader but we are getting
an HTTP403 Error when we try to upload with windows (ie 7 and also
firefox 3), but there are no problems with safari and firefox on
Hey
I have a strange problem on windows when trying to do 'python manage.py
runserver'. I get back the error socket.error: (10106, 'winsock error'). I
also get this error when running other commands that open a socket.
I have no idea where this is comming from. But this did used to work before.
T
Hi Emily,
Thanks for your help. I'll ask my service provider to provide me with
a better logging system, but I think the problem I'm facing is
something related with cookies. When the admin interface tries to
test the browser to check if it accepts cookie, the dispatch.fgci
process just dies. Ha
###MODELS.PY###
class Body(models.Model):
body=models.CharField(max_length=50,primary_key=True) #eg. sedan,
hatchback
def __unicode__(self):
return unicode(self.body)
class Car(models.Model):
body=models.ForeignKey(Body)
###VIEWS.PY###
def view_car(request,object_id):
car=get_objec
if you guys want the source here it is:
although if you just had emailed me to my mail account i might have
read this :p
i used pdf because it's sexy and colorful as opposed to the
following.
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# (regular exp, function, op
Hi Timothy,
I'm almost 100% sure that this is due to some misconfiguration in windows.
Doing a Google search for the error message gave me this:
http://forums.sun.com/thread.jspa?messageID=1913234#1913234
It is suggested here that the system root variable is not set
correctly in windows.
Anothe
Hi, I am doing a series of cheat sheets, this is on models. It is a
two page concise, example based demonstration of how to use
models.Model
http://www.scribd.com/doc/5077400/the-django-model-cheat-sheet
If you have never used scribd before, there is a download link above
the document. it's the
Sorry, I already found the right file:
http://code.larlet.fr/hg.cgi/django-storages/raw-file/5e2aff06/S3Storage.py
Many thanks for your support!
On 26 Aug., 13:06, tom <[EMAIL PROTECTED]> wrote:
> Hi David!
>
> Many thanks for your response. I assume with S3Storage.py you mean the
> file whi
>From what I now understand, this is indeed impossible. But I would
appreciate it if someone could confirm this.
And so what is the best way to lookup a table entry based on the page
viewed? I have a table called Page and it contains things like page
title, meta tags, which menu section each page
Ok, i will try to update to the development version.
Thanks for your response.
On 25 ago, 17:32, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> On Sun, 2008-08-24 at 23:29 -0700, Jose Jiménez wrote:
> > Hello,
>
> > i'm using the stable version (0.96.2) of Django.
> > When newforms library try
Thanks Jesaja,
I'm not sure yet what the issue was, but it did have something to do with
the environment variables. So I just ended up resetting most of them. Right
now it is working again, but I will still have to do a clean up ;) So Fixed
the problem but haven't quite found it yet.
On Tue, Aug
Today I updated Django to trunk version 8580, and I saw new comments
framework.
I updated my app acording to docs, made sql data migration but it
looks like new comments are not working.
I am getting:
Caught an exception while rendering: Reverse for '' not found.
when I try to call render_commen
Oops, correct here:
class Content(models.Model):
seo_urls = generic.GenericRelation(SeoUrl)
def get_absolute_url(self):
return ('/%s/' % self.seo_urls.order_by('priority')[0].seotitle)
On 25 Aug, 23:04, Donovan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to g
Norman,
Great. I'll give this a shot. Thank you for your help.
Matt
On Aug 25, 12:18 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> Matt Berg wrote:
> > I apologize, I realize this is probably documented somewhere.
>
> > Say I have 2 models.
>
> > Artist and Album
>
> > Album has a foreign ke
On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]> wrote:
>
> ('^accounts/login/(.*)', 'django.contrib.auth.views.login'),
> ('^accounts/profile/(.*)', 'django.contrib.auth.views.profile'),
> ('^accounts/logout/(.*)', 'django.contrib.auth.views.logout',
> {'next_page': '/'}),
On Tue, Aug 26, 2008 at 2:50 AM, Benjamin Buch <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm working with the most recent versions of both django and photologue.
> When I add photologue to the INSTALLED_APPS, the testserver stops
> working and I get this traceback:
>
> Validating models...
> Unhandle
It makes me wonder now though. If I can just include a bunch of
morsels on a page, why even bother using flatpages anymore?? That
just makes things more difficult to maintain. Thoughts?
On Aug 21, 5:19 am, Itai Tavor <[EMAIL PROTECTED]> wrote:
> At first glance (and, quite possibly, second and
Hi!
Interesting solution.
Another possibility if you would like to stick with a class is to
simply define a __call__ method on the class. Of course, this doesn't
have to do anything with RESTfulness.
V
On Aug 26, 3:07 am, zvoase <[EMAIL PROTECTED]> wrote:
> Hey Django users, just a quick sugge
Hello all,
I've being using geodjango since it was in a branch in a number of
projects, and in one project specifically I was getting and
OGRGeometry Exception intermitently.
After debuging the code I noticed that de wkt string generated from
geometries were taking the current locale into accoun
What I started to think about is my life after 1.0. First of all, I
will be much more relaxed, but then haven't heard anything about the
way the community plans to support th 1.0 release with security fixes,
etc.
I presume that the 1.0 release will be tagged in SVN (just like to
pre-1.0 releases
Hi ,
It's not easy to explain so please look at codes below,
#url.py
base_context = {
'books' : Book.objects.all(),
}
urlpatterns = patterns('',
(r'^$', direct_to_template, {'extra_context': base_context,
'template': 'base.html' }),
(r'^books/', include('book.urls')),
)
I agree with the other person who replied that you haven't specified
what you mean, but I'll add to that by asking if possibly you are not
using the "wrap" attribute?
It's a bit messy, so you need to google it. For example, I found this
page just a minute ago that discusses some of the issues (I
Hi all of you!
I need to customize a bit the admin interface for one of my Django
projects.
In my models.py I have:
class ProductFirstLevel(models.Model):
name = models.CharField(max_length=30)
class ProductSecondLevel(models.Model):
name = models.CharField(max_length=30)
belongs_t
Hi guys,
I'm trying to optimize one of my views that is doing a rather (naive?)
query like this:
...
post_stream = Post.objects.filter(poster=some_user)
for other_user in other_user_queryset:
post_stream = post_stream | Post.objects.filter(poster=other_user)
...
The idea is that I want to d
FYI, it works if I use templatetag to get the queryset.
chatchai wrote:
> Hi ,
>
> It's not easy to explain so please look at codes below,
>
> #url.py
> base_context = {
> 'books' : Book.objects.all(),
> }
>
> urlpatterns = patterns('',
> (r'^$', direct_to_template, {'extra_context': ba
Are there any plans to make list_display support stuff like
artist__hometown, too?
I've been missing this one a lot because the helper method approach is
both slow and doesn't allow for sorting/filtering/searching etc,
besides cluttering up the models with code that shouldn't be there.
Erik
On Fri, 22 Aug 2008, Dirkjan Ochtman wrote:
> Faheem Mitha wrote:
>> *
>> self.env = req.META where req is a django request (see__init__ of
>> hgReqWrap below).
>> ***
After several iterations of running tests on an application (manage.py
test myapp), I have these observations which are not really clear in
the documentation:
1. All initial_data fixtures (not just those for the tested app) are
always loaded into the test database.
2. Because there is no means to
Hi,
I search a Wiki/CMS application to manage a homepage.
This application should:
- look like a homepage, not like a Wiki
- Content can be HTML and wiki like markup.
- No anonymous editing
- history: Who has edited which page, Diff between versions, reverting.
- Nice URLs http://.../about/
I am running my app on latest trunk (r8580 at the moment of writing
this post) and I have nothing but problems while trying to deploy my
stuff over mod_wsgi.
Exception I am receiving is generic " 'str' object has no attribute
'_default_manager' " which shows up when something goes wrong with
admi
Sorry about the confusion with the request.user, it's not meant to be
there.
body = {{ car.body_id }} is what i'm looking for.
Thanks a lot for taking the time to help.
Much appeciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
On Tue, Aug 26, 2008 at 7:49 AM, robin <[EMAIL PROTECTED]> wrote:
>
> ###MODELS.PY###
> class Body(models.Model):
> body=models.CharField(max_length=50,primary_key=True) #eg. sedan,
> hatchback
> def __unicode__(self):
>return unicode(self.body)
>
> class Car(models.Model):
> body=models.Fo
On Tue, Aug 26, 2008 at 11:35 AM, vv2 <[EMAIL PROTECTED]> wrote:
>
> I am running my app on latest trunk (r8580 at the moment of writing
> this post) and I have nothing but problems while trying to deploy my
> stuff over mod_wsgi.
>
> Exception I am receiving is generic " 'str' object has no attri
I was looking for something similar myself a while back and when I
didn't find it, I decided to make my own. I only started a very short
while ago, but it's well underway and is already being used
internally.
If you need something that has all the features you listed below now,
then perhaps you s
Also, you could use css to set whitespace to pre-wrap.
On 2008-08-26, Daniel Roseman <[EMAIL PROTECTED]> wrote:
>
> On Aug 26, 10:12 am, Will Rocisky <[EMAIL PROTECTED]> wrote:
>> I am taking an input from user in text area, like comments.
>> but when I print them, they all display in one line.
Thanks Karen... that did the trick!
On Aug 25, 6:25 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Aug 25, 2008 at 12:39 PM, Briohny <[EMAIL PROTECTED]> wrote:
>
> > I'm using the Django-1.0-alpha_2 version and I'm trying to install the
> > photologue application. When i run my database
Hi Karen,
Thanks for your immediate reply!
I will extract problematic app into separate project and get in touch
with you later this day.
Many thanks!
On Aug 26, 4:48 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 26, 2008 at 11:35 AM, vv2 <[EMAIL PROTECTED]> wrote:
>
> > I am run
One more:
4. django.test.TestCase effectively reloads initial_data fixtures with
every test because it calls the flush command.
--David
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Sorry, I am not sure I can help you wrt cookies :(
I think you need to get the logs some how.
> -Original Message-
> From: django-users@googlegroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Ronaldo
> Zacarias Afonso
> Sent: 26 August 2008 12:49
> To: django-users@googlegroups.com
>
Hi!
> En/na marsii ha escrit:> excerp_html = models.TextField(editable=False,
> blank=True)
> _
> ↓
> excerpt_html = models.TextField(editable=False, blank=True)
> You have only that mistake in the code you've attached...
Thanks! I did compare the text in the book with my code,
No idea. I seem to be getting the same thing.
The comments upgrade has caused all kinds of meltdowns in my
applications. For one, updating the SQL failed. PostgreSQL was
complaining because it was updating fields set to "NOT NULL" with null
values. I changed the query to accommodate for this, now
Hey there again.
I have a question, lets say that I have this model:
class Users(models.Model):
email = models.CharField(primary_key=True, maxlength=240)
password = models.CharField(maxlength=60)
name = models.CharField(blank=True, maxlength=150)
description = models.CharField(bla
On Tue, 2008-08-26 at 11:01 -0300, Luiz Vital wrote:
> Hello all,
>
> I've being using geodjango since it was in a branch in a number of
> projects, and in one project specifically I was getting and
> OGRGeometry Exception intermitently.
>
> After debuging the code I noticed that de wkt string
On Tue, 2008-08-26 at 07:10 -0700, chatchai wrote:
> Hi ,
>
> It's not easy to explain so please look at codes below,
>
> #url.py
> base_context = {
> 'books' : Book.objects.all(),
> }
>
> urlpatterns = patterns('',
> (r'^$', direct_to_template, {'extra_context': base_context,
> 'templ
On Tue, 2008-08-26 at 08:05 -0700, [EMAIL PROTECTED] wrote:
> Hi guys,
>
> I'm trying to optimize one of my views that is doing a rather (naive?)
> query like this:
>
> ...
> post_stream = Post.objects.filter(poster=some_user)
> for other_user in other_user_queryset:
> post_stream = post_st
This ended up working (I honestly don't remember which tinker finally
did it...):
{% render_comment_form for object %}
I also had to make an additional change in urls:
old way="django.contrib.comments.urls.comments"
new="django.contrib.comments.urls"
At least things are showing up now and not ex
I'm just starting to port my app over to use nfa and the first thing
that I'm seeing is that derived models are showing up twice in the
admin. In my case I have a base VideoStory class and
TwoPersonVideoStory class that derives from VideoStory using multi-
table inheritance. When I create a new Tw
2008/8/26 marsii <[EMAIL PROTECTED]>:
> But I have the same error still. :-(
I'll bet money that you have this:
import markdown
When the book tells you to do this:
from markdown import markdown
There's a very important difference.
--
"Bureaucrat Conrad, you are technically correct -- the b
Possibly not the cleanest of solutions, but you could put a sticky bit on the
parent directory to force this.
Regards,
Gerard.
Malcolm Tredinnick wrote:
>
> On Mon, 2008-08-25 at 22:44 -0700, Julien Phalip wrote:
>> Hi,
>>
>> I'm using the FileSystem storage to save uploaded files, in a very
Hi People.
I am new in Django and I am using the django support to create generic
views (CRUD) in my app. To handle Create and Show actions, i have
written 2 main pages with the code snippets described below.
baseform.html
{% for field in form %}
{{ field.label_tag }}{% if fi
Hi People.
I am new in Django. I am implementing a web application using the
django template support. In this way, i am using a single 2-columns
template. While the second column changes according to the presented
content, the first column shows the menu and some statistical
information for all p
On Tue, 2008-08-26 at 10:57 -0700, diggs wrote:
> I'm just starting to port my app over to use nfa and the first thing
> that I'm seeing is that derived models are showing up twice in the
> admin. In my case I have a base VideoStory class and
> TwoPersonVideoStory class that derives from VideoSto
Nice work!
So well, shouldn't you put that on a regular page somewhere for quick cut and
paste access instead of on scribd?
Regards,
Gerard.
DavidY wrote:
> Hi, I am doing a series of cheat sheets, this is on models. It is a
> two page concise, example based demonstration of how to use
> mode
Well spotted, that was it. Not sure where I got the (.*) from, it is
certainly not in the documentation.
Thanks
Ludwig
2008/8/26 Karen Tracey <[EMAIL PROTECTED]>
> On Tue, Aug 26, 2008 at 7:21 AM, Ludwig <[EMAIL PROTECTED]>wrote:
>
>>
>> ('^accounts/login/(.*)', 'django.contrib.auth.views.lo
Hi all,
I'm using django-registration 0.6 to handle user account creation:
http://code.google.com/p/django-registration/
When the user activates their account (by following the activation link that
they are emailed), what I'd like is for them to be logged in right away. As
far as I can tell,
Hi all,
Using django 1.0beta's test client, is there some reliable way to tell if a
test user is logged in?
It would be nice to do this within the test case code. However, even within a
view, using request.user.is_authenticated does not seem to work properly.
Thanks,
Aaron
--
Aaron Maxwell
Hi!
>> self.body_html = markdown(self.body) <-- LINE 76 ERROR
>
> The imported name 'markdown' should be a function, yet python thinks
> it's a module. What is it?
>
> Try importing markdown and running the above snippet outside of django
> in a python shell. Does that work?
No, it d
What is the best way to do this? It is not included in the new docs,
and the default form elements include required fields for name and e-
mail address. Obviously if the user is logged in we don't need this.
Before I go hacking the form to shreds, I wanted to see if someone had
a better idea. May
Dear All,
Anyone know how to control Revisions of Page Content by Subversion?
- Django will save the latest content in DB
- When someone like to view the old version, Django will create an API to
view from SVN and compare with latest version
- When someone Update to Page, Django will create API t
There's an error in my code example. That "from registration.views import
activate" should be something like "from registration.views import activate
as original_activate", and the second line should be "resp =
original_activate(request, activation_key)" - otherwise this view recurses
infinit
On Aug 26, 2008, at 2:13 PM, Malcolm Tredinnick wrote:
> On Tue, 2008-08-26 at 10:57 -0700, diggs wrote:
>> I'm just starting to port my app over to use nfa and the first thing
>> that I'm seeing is that derived models are showing up twice in the
>> admin. In my case I have a base VideoStory clas
I solved it
base_fields method in form_for_instance()
Thanks
jhv
On Wed, Aug 27, 2008 at 12:53 PM, Juan Hernandez <[EMAIL PROTECTED]>wrote:
> Hey there again.
>
> I have a question, lets say that I have this model:
>
> class Users(models.Model):
> email = models.CharField(primary_key=True,
On Aug 25, 2008, at 8:12 AM, chefsmart wrote:
>
> I found a solution called djselect on this group. But is there a
> django-istic way of running custom sql queries and returning the
> results as django models?
Perhaps you are looking for the powerful but difficult `extra`
function from http:/
Fixed after poking around a bit. I found that by sending "user_id" in
a hidden field, the comment system is able to figure out who it is.
On Aug 26, 12:49 pm, hotani <[EMAIL PROTECTED]> wrote:
> What is the best way to do this? It is not included in the new docs,
> and the default form elements
Yes, it looks like *extra_context *is not* *available for rendering.
Don't know how to fix, finally use templatetag to do this task.
Thanks, Chachai
2008/8/27 Malcolm Tredinnick <[EMAIL PROTECTED]>
>
>
> On Tue, 2008-08-26 at 07:10 -0700, chatchai wrote:
> > Hi ,
> >
> > It's not easy to explai
This is the problem I am having, I am currently using sudo for the www
user to get around it, but dont think thats a very secure solution.
On Aug 20, 12:16 am, Paddy Joy <[EMAIL PROTECTED]> wrote:
> I'm also developing a control panel as a personal project for a shared
> hosting setup.
>
> The fe
Thanks, I'll learn that. :-)
On Aug 26, 4:44 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-08-26 at 01:39 -0700, est wrote:
> > class ContactForm(forms.Form):
> > subject = forms.CharField(max_length=100)
> > message = forms.CharField()
> > email = forms.EmailField
Hi there...
I'm working on a site that has several imperial measurements (feet and
inches) and I'd like to implement a field in my model that uses a
regular expression like:
^(\d{1,5})\'((\s?)(-?)(\s?)([0-9]|(1[0-1]))\")?$
to parse off the feet and inches and save them in a sortable manner
(I'm
Hi,
On Aug 26, 2:58 pm, "oso che bol" <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> Anyone know how to control Revisions of Page Content by Subversion?
>
> - Django will save the latest content in DB
> - When someone like to view the old version, Django will create an API to
> view from SVN and comp
Hi Mario,
> I am new in Django. I am implementing a web application using the
> django template support. In this way, i am using a single 2-columns
> template. While the second column changes according to the presented
> content, the first column shows the menu and some statistical
> information
Make sure thet the unzip tool you used to uncompress the django kit
preserved empty files like __init__.py. WinZip, in particular, does
not always do this.
On Aug 9, 8:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Oops. Thanks for the reply but now when I run the command from the
> sh
Is there a convenient way to get all objects related to
a given model instance? I want to check for objects
that would be deleted with a cascading delete before
actually performing a deletion.
Peace,
Andrew
--
===
Andrew D. Ball
[EMAIL PROTECTED]
Software Enginee
On Tue, Aug 26, 2008 at 12:07 PM, vv2 <[EMAIL PROTECTED]> wrote:
>
> Hi Karen,
>
> Thanks for your immediate reply!
>
> I will extract problematic app into separate project and get in touch
> with you later this day.
>
>
OK, I was able to recreate with the project provided. I too see the failure
Thank you! This works fine, although I need to use form.errors instead
of form._errors. The latter does not seem to work in the development
version I tried.
- Jan
On 22 Aug., 16:47, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Aug 22, 2008 at 7:13 AM, janedenone <[EMAIL PROTECTED]>wrote:
On Tue, Aug 26, 2008 at 4:41 PM, Andrew D. Ball <[EMAIL PROTECTED]>wrote:
>
> Is there a convenient way to get all objects related to
> a given model instance? I want to check for objects
> that would be deleted with a cascading delete before
> actually performing a deletion.
>
The admin does th
Make sure the unzipping tool that you used to uncompress the Django
kit preserves empty files like __init__.py. WinZip, in particular,
does not always do this.
On Jul 15, 1:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've been trying to setup Django on Dreamhost and I haven't had much
Malcom,
I understand your point, I really didn't know setlocale would be so
poisonous, for now on I'm avoiding using it!
But locale format doesn't make any sense in a WKT representation,
since it's simply spits data that is in a wrong format, so useless.
About people talking of thread safety...
He is running on Dreamhost (Debian Linux) WinZip is for windows. Look at
your python patch (export | grep PYTHONPATH) if you need to edit it then do
so in your .bash_profile file (cd ~;nano .bash_profile)
Do you have Fcgi enabled?
Look at the dreamhost wiki they have a good article on how to inst
Hello,
I have a class that looks like this:
--
class MyUploadHandler(TemporaryFileUploadHandler):
pass
--
my view looks like this:
---
request.upload_handlers = [uploadhandlers.MyUploadHandler()]
datafile = DataFile(...)
dat
1 - 100 of 131 matches
Mail list logo