On Fri, Jan 2, 2009 at 9:46 PM, Friendless wrote:
>
> I still can't log in. Sometimes I get a dialogue box, sometimes a
> form, but it just never works. My username is Friendless.
Did you try just filling in some settings at the page I pointed to in the
earlier mail? That method doesn't require
On Fri, 2009-01-02 at 16:29 -0800, carlopires wrote:
> Hi,
>
> I'm trying Multi Table Inheritance with:
>
> class Person(models.Model):
>name = CharField(max_length=30)
>
> class Student(Person):
>course = CharField(max_length=30)
>
> on db shell:
>
> p = Person(name='Carlo')
> p.save
On Mon, 2008-12-29 at 18:06 -0800, Ed Summers wrote:
> (my apologies if you already saw this question on django-developers,
> I'm reposting here because it's more a users question)
>
> I was wondering if anyone else on the list has layered a RESTful
> service into their django applications. I'm a
I still can't log in. Sometimes I get a dialogue box, sometimes a
form, but it just never works. My username is Friendless. Anyway, as I
have your permission to post my bug here, I'll do so. I have a legacy
MySQL database to which I'm adding access using Django. I wrote the
create scripts for this
On Fri, 2008-12-26 at 23:13 -0800, Tony Chu wrote:
> Thank you very much Malcolm. The methods I listed above has worked for
> me so far - so your response is reassuring.
>
> I was just surprised that no one had encountered a similar need
> already. The concept here is parallel to getting a list
On Sat, 2008-12-27 at 01:27 +0800, shreyas k wrote:
> Hi Eric
> Thanks a lot .i wraped the template in the autoescape tag, Now its working
> fine
That's a bad idea. You've gone out of your way to remove a very useful
security mechanism. It's going to be much better to learn what
autoescaping is
On Wed, 2008-12-24 at 20:41 -0800, Jeff Hammerbacher wrote:
> Hey,
>
> I'm building a web applications that pulls all of its data from an
> external web service rather than from a managed database. The
> documentation for the model layer in Django seems to assume you're
> retrieving application i
On Wed, 2008-12-24 at 09:42 -0800, JeeyoungKim wrote:
> I have the following form:
>
> class UserInfoForm(forms.ModelForm):
> password_field = forms.CharField(label='Password',
> widget=forms.PasswordInput(render_value=False)
> password_repeat_field = forms.CharField(label='Password(repea
On Mon, 2008-12-22 at 23:09 -0800, Iwan wrote:
> Malcolm,
>
> On Dec 23, 2:00 am, Malcolm Tredinnick
> wrote:
> > You can do it this way:
> >
> > from django.utils import translation
> >
> > translation.activate(locale)
> >
> > where "locale" is a variable containing the name of
Hi,
I'm trying Multi Table Inheritance with:
class Person(models.Model):
name = CharField(max_length=30)
class Student(Person):
course = CharField(max_length=30)
on db shell:
p = Person(name='Carlo')
p.save()
Why I can't:
s = Student(p)
s.save()
?
How Can I evolute a Person to Studen
Hi,
Searching is the main function of my website and so I want sort/filter
functionality to be as efficient as possible since it will be used
quite often. I have yet to implement the search portion because I am
not quite sure the best way to send and process data. Here are my two
ideas:
1) Server
Could this be a problem with the editable=False setting?
The record I am attempting to duplicate is a duplicate office/county/
case_no entry. However, it is also a duplicate county/case_no. It
seems like even with the form validation ignoring 'office' it would
catch the county/case_no dupe?
I tr
The Place/Restaurant sample is from the model doc under
multi table inheritance:
http://docs.djangoproject.com/en/dev/topics/db/models
It is a simple inherited model relationship:
class Place(models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=80)
Hi,
I'm using GAE and wondering how come there is no comma insertion or
currency formating of floating numbers like:
{{ value|floatformat:2 }} built_in filter
Shay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
This is from the 500 error:
--
IntegrityError at /case_edit/2651074/
duplicate key violates unique constraint
"case_no_office_county_unique"
--
I'm using the latest SVN build (9692).
This is what I used to create the constraint (since this was added
long after the table was created from django):
On Fri, Jan 2, 2009 at 12:57 PM, hotani wrote:
>
> I have 3 fields that need to be unique together: office, county and
> case_no. In the "Case" model, I have the following:
>
> --
> class Case(models.Model):
> office = models.ForeignKey(Office, editable=False)
> county = models.ForeignKey(Count
I happen to have a bunch of models that all have foreign keys, but
there is an order in which they could all be initialized. I have
figured out how to initialize the built-in User model using Json data,
but I can't initialize any models that refer to it using a foreign
key. Is this possible an
I have 3 fields that need to be unique together: office, county and
case_no. In the "Case" model, I have the following:
--
class Case(models.Model):
office = models.ForeignKey(Office, editable=False)
county = models.ForeignKey(County)
case_no = models.CharField(max_length=20)
...
class
On 2 jan, 17:37, Filipe Correia wrote:
> Thanks for the replies Rajesh and Bruno, they were very helpful!
>
> On Jan 2, 3:18 pm, bruno desthuilliers
> wrote:
(snip)
> Here's the solution I ended up with (it also forwards keyword args):
>
> def redirect_to_with_query(request, url, **kwargs):
>
I've installed Django using the instructions found on
http://code.djangoproject.com/wiki/MovablePythonInstall on a USB drive
and following the Django on-site tutorial. I'm getting the following
error when trying to do 'python manage.py syncdb'.
- - - - START error message
Traceback (most recent c
Here is an example of the data model for the type of filter I would
like to do:
class Student
name
class Absence
foreign key Student
date
Is there a way to filter Students with no absences?
something like Student.objects.filter(absence_set__count=0)
--~--~-~--~--
On Fri, Jan 2, 2009 at 11:25 AM, johan wrote:
> OK it is finally working after a lot of strange errors! 3 hours spent on
> this crap! Can you really trust the built in server that it always update
> your code?
>
No, not if you introduce syntax errors into your code. If it tries to
reload and en
Thanks for the replies Rajesh and Bruno, they were very helpful!
On Jan 2, 3:18 pm, bruno desthuilliers
wrote:
> # NB : Q&D, not tested
> def my_redirect_to(request, url):
> qs = request.META.QUERY_STRING
> if qs:
> url = "%s?%s" % (url, qs)
> return redirect_to(url)
Here's the s
OK it is finally working after a lot of strange errors! 3 hours spent on
this crap! Can you really trust the built in server that it always update
your code?
Also It should be so much easier to follow this tutorial if all the code
from each tutorial was posted at the end of the tutorial. It is pos
Thanks Alex! That was the hint I needed.
I ended up going through my dictionary of fields (on my form object)
in my view and getting BoundField instances for each.
That did the trick.
Thank you all!
Keyton
On Jan 2, 12:57 am, Keyton Weissinger wrote:
> OK. I changed the code below to (note .
Thank you RD! My own stupid mistake, I have to say, I was editing the
backup file instead of the live file. I'm sorry I wasted your time. I
can view my html now :)
Now, I have to read and search more to sort out why my external css is
not working :S
--~--~-~--~~~---~
On Jan 2, 10:16 am, SG_Muse wrote:
> Thank you very much for your quick answers gentlemen!
>
> I removed the quotes, but that lead into another problem;
> TemplateSyntaxError Could not parse the remainder: ' name' from
> 'project name'
> I copied the traceback:http://dpaste.com/104542/
>
> I ho
On 2 jan, 15:25, Filipe Correia wrote:
> Hi all,
>
> I'm using a generic view to redirect from one URL to another:
>
> urlpatterns += patterns('prj.app.views',
>(r'^foo/(?P.*)$', redirect_to, {'url': '/foo/bar/%(tail)s'}),
> )
>
> However, the URLs I want to redirect actually look like this
Thank you very much for your quick answers gentlemen!
I removed the quotes, but that lead into another problem;
TemplateSyntaxError Could not parse the remainder: ' name' from
'project name'
I copied the traceback: http://dpaste.com/104542/
I hope you can help me once again :)
--~--~-~-
> I'm wondering how fast is the include tag. Currently I have a Message
> model, which takes role of site messaging system with two ways of
> delivering - through a dashboard page and through Jabber. Via Jabber,
> each type of message has dedicated template and that template is then
> parsed by re
On Fri, Jan 2, 2009 at 9:51 AM, SG_Muse wrote:
>
> hey all!
>
> Small intro/background :) I've been trying to use (Geo)Django to
> develop some kind of a research environment for the past 5 weeks. I'm
> completely new to programming, so ^^noob-alert!^^ However, I've been
> reading _a lot_ the pas
> from django.conf.urls.defaults import *
> from django.views.generic.simple import direct_to_template
>
> # Uncomment the next two lines to enable the admin:
> from django.contrib import admin
> admin.autodiscover()
>
> urlpatterns = patterns('',
> # Example:
> # (r'^reco/', include('rec
>
> I have created a set of functions and classes to connect to the db and
> request the data and then display the data rendered as a page, however
> what I'm finding is that when the data is being changed from the main
> set of applications connecting to and using this db and then i refresh
> my
hey all!
Small intro/background :) I've been trying to use (Geo)Django to
develop some kind of a research environment for the past 5 weeks. I'm
completely new to programming, so ^^noob-alert!^^ However, I've been
reading _a lot_ the past weeks and did various tutorials on (geo)
Django and Python
Hi group,
Right now, we use Django primarily because of the administration panel.
It's easy to conjure up some models and then have a nice front end to
create and change them. We use it for managing a detector network and I
have the following (simplified for the sake of this example) models:
cla
On Fri, Jan 2, 2009 at 9:35 AM, johan wrote:
> I'm still struggling with the tutorial. Now I have the code snippet from:
> http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02
>
> def was_published_today(self):
> return self.pub_date.date() == datetime.date.today()
> was_publis
Hi,
> I'm using a generic view to redirect from one URL to another:
>
> urlpatterns += patterns('prj.app.views',
>(r'^foo/(?P.*)$', redirect_to, {'url': '/foo/bar/%(tail)s'}),
> )
>
> However, the URLs I want to redirect actually look like this:
>
> http://localhost/foo/?param1=value1¶m2=valu
I'm still struggling with the tutorial. Now I have the code snippet from:
http://docs.djangoproject.com/en/dev/intro/tutorial02/#intro-tutorial02
def was_published_today(self):
return self.pub_date.date() == datetime.date.today()
was_published_today.short_description = 'Published today?'
I can'
Hi all,
I'm using a generic view to redirect from one URL to another:
urlpatterns += patterns('prj.app.views',
(r'^foo/(?P.*)$', redirect_to, {'url': '/foo/bar/%(tail)s'}),
)
However, the URLs I want to redirect actually look like this:
http://localhost/foo/?param1=value1¶m2=value2
This me
Hi
I'm just getting started on django and I'm using a Windows Vista
version. Yesterday I completed about half of the tutorial without too
much difficulty. Now I'm trying to carry on from where I stopped.
The first thing I need to do is to restart the test server, so I go
into the 'mysite' folde
On Fri, Jan 2, 2009 at 5:03 AM, Friendless wrote:
>
> I tried to report a bug anonymously and got told I was spam, so I
> signed up, got the email, activated the account, and still can't log
> in and still can't report the bug. I've been using Django 30 minutes
> and I'm already frustrated!
>
>
Th
I'm looking for additional information that could help me decide
whether I should port a large web application to Python/Django. The
application handles transactions, which often come in bursts. Peaks
may go up to tens of thousands of transactions per second. There are 3
views on the system: users
On 1 jan, 23:30, nbv4 wrote:
> I have a webapp that is accessed by the following urls (among others):
>
> example.com/foobar-page-23
> example.com/preferences
> example.com/barfoo
>
> etc.
>
> When these URL's are access, the page is displayed using data from the
> user who is logged in via req
dick...@gmail.com wrote:
> was looking for some info on how ROOT_URLCONF setting is supposed to
> be used? i am trying something very simple. i have a single django
> project. there are two apps.
>
> i want to run one app, call it foo, with a specific settings file,
> and set of urls, and bar wit
I tried to report a bug anonymously and got told I was spam, so I
signed up, got the email, activated the account, and still can't log
in and still can't report the bug. I've been using Django 30 minutes
and I'm already frustrated!
--~--~-~--~~~---~--~~
You receive
Silly me, of course tags. It worked.
Thanks.
Alan
On Fri, Jan 2, 2009 at 09:35, Antoni Aloy wrote:
>
> 2009/1/2 Alan :
> > Dears,
> > I have in my base.html something like 'href="/{% block folder %}{%
> endblock
> > %}/"' and this block folder is expected to appears several times in
> > base.ht
Thanks for both of your replies. It looks like what I'm experiencing
isn't entirely abnormal and would also explain why the "first group of
concurrent requests" are slower.
That said, coming from the comparatively easy worlds of PHP/mod_php
and even Java and Tomcat, getting Django properly deploy
2009/1/2 Alan :
> Dears,
> I have in my base.html something like 'href="/{% block folder %}{% endblock
> %}/"' and this block folder is expected to appears several times in
> base.html. So I create a page that inherits from base.html, I got this error
> message:
> ''block' tag with name 'folder' a
Dears,
I have in my base.html something like 'href="/{% block folder %}{% endblock
%}/"' and this block folder is expected to appears several times in
base.html. So I create a page that inherits from base.html, I got this error
message:
''block' tag with name 'folder' appears more than once"
I un
Someone debugs django with eric4? How?
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,
On Thu, Jan 1, 2009 at 11:30 PM, nbv4 wrote:
>
> I have a webapp that is accessed by the following urls (among others):
>
> example.com/foobar-page-23
> example.com/preferences
> example.com/barfoo
>
> etc.
>
> When these URL's are access, the page is displayed using data from the
> user who is l
Yeah you are right
depending on my DB you may or may not be allowed to do a LIKE
comparison on that, try doing an exact match
Dates don't really 'contain' or 'start with'.
that doesn't really make sense, I can do lookups against the year
month or day by doing, __year, __month, or __day respectiv
On Fri, Jan 2, 2009 at 7:48 AM, Praveen wrote:
>
>
>
>By product name :
>
>By date approval :
>
>
>
>
> views.py
> import Q
>
> def proreport(request):
>query = request.GET.get('q', '')
>query1 = request.GET.get('p', '')
>print query
>print query1
>if q
53 matches
Mail list logo