Here is the solution:
You'll get this if you still have stale pyc files left over from the
old comment system. Delete 'em and your code will work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi Mario,
a few months ago I posted a snippet on djangosnippets [1] that kind of
does something like this: it takes a form (can be the same one you use
for editing) and displays it as read-only. The disadvantage is it uses
the entire form machinery just to display some values, which is a lot
of o
On Wed, Aug 27, 2008 at 10:55 AM, Vance Dubberly <[EMAIL PROTECTED]>wrote:
>
> So I want to do something I'd think would be extremely common and simple.
>
> user = User.objects.get(pk=data['id'])
>
> I want a dictionary of the model attributes/values from user.
>
> user_dict = { 'first_name' : 'fo
So I want to do something I'd think would be extremely common and simple.
user = User.objects.get(pk=data['id'])
I want a dictionary of the model attributes/values from user.
user_dict = { 'first_name' : 'foo', ..
Am I asking to much or reading to little?
--
To pretend, I actually do th
I think flatpages definitely still have their uses. Morsels don't
create new pages, they only get shown on existing ones.
With the flatpage fallback middleware, flatpage xml sitemaps and a bit
of custom navigation code you can let users add pages anywhere they
want in a site and have it show
The problem with using sudo on the www user is that if you are in a
shared environment, anyone can upload a web page/script to their
website and call the passwd command.
If you use mod_wsgi or fcgi with apache you can specify the user that
the django app runs under. In my case I am running my app
The docs (and an analysis of the code) indicate that the second
argument to save should be the content.
http://docs.djangoproject.com/en/dev/ref/files/file/#ref-files-file
I am assuming this is binary or text content to be written to the file
in question. ImageFieldFile calls get_image_dimensio
Which way do you think would be faster?
1. Make Body charfield a primary key and call it with {{car.body_id}}
(1 query only)
OR
2. Let the primary key be an integer by default and call it with
{{car.body}} (2 queries)
OR
3. Same as 2 but do inner join first with select_related (1 query)
Say ther
Well it happened again when I uploaded the comment changes to another
server.
Here's the fix: go to /django/contrib/comments and wipe out the .pyc
files:
sudo rm */*.pyc
that finally fixed it.
On Aug 26, 11:37 am, hotani <[EMAIL PROTECTED]> wrote:
> This ended up working (I honestly don't rem
On Tue, Aug 26, 2008 at 9:49 PM, ydjango <[EMAIL PROTECTED]> wrote:
>
> Does django marks the user changed fields in form dirty in any way?
> old versus new or a flag maybe.
>
> Is there an easy way to check which fields user changed in form
> submission or
>
> do I need to save previous values in
Good, Rajesh.
I will do it.
Thanks.
Mario Hozano
On Tue, Aug 26, 2008 at 5:38 PM, Rajesh Dhawan <[EMAIL PROTECTED]>wrote:
>
> 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.
Use initial, where 1 is my db key,
field1 = forms.ModelChoiceField(..., initial=1,...)
On Aug 25, 4:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using theModelChoiceFieldto provide a filtered set of choices
> on a profile form and I was wondering how I can set the initial
Better to make a link, rather than copy. If the media files ever change,
you'll have to recopy the files...
keith
On Tue, Aug 26, 2008 at 10:12 PM, App Engine <[EMAIL PROTECTED]> wrote:
> *I have copy the media document and files to /var/www/host1/*
> **
> *It's work! *
> **
> *Karen Tracey
Is there a way for me to quickly make certain fields in a ModelForm
class required. I know this looks back to the model for that
information...
In my case I'm using a FormWizard to display a series of forms. The
fields shows in some steps are dependent on answers to previous
questions. So, in
*I have copy the media document and files to /var/www/host1/*
**
*It's work! *
**
*Karen Tracey and Keith Eberle , Thank you!
*
On Wed, Aug 27, 2008 at 9:48 AM, Keith Eberle <[EMAIL PROTECTED]>wrote:
> Django by default does not serve out static content (Javascript, CSS,
> images, etc) because t
Does django marks the user changed fields in form dirty in any way?
old versus new or a flag maybe.
Is there an easy way to check which fields user changed in form
submission or
do I need to save previous values in request and then compare each
field.
--~--~-~--~~~-
Django by default does not serve out static content (Javascript, CSS,
images, etc) because the web server, such as Apache, is more efficient with
serving that type of content. It sounds like you aren't using the included
development server...
If you look at your settings.py file, ADMIN_MEDIA_PREF
On Tue, Aug 26, 2008 at 9:38 PM, App Engine <[EMAIL PROTECTED]> wrote:
> I don't understand.
>
> I using ubuntu_server edition apache mysql python pyton-mysqldb
>
> I install django follow the guide but when I finish it ,I found the admin
> tool can't display the static files.like img and css
>
I don't understand.
I using ubuntu_server edition apache mysql python pyton-mysqldb
I install django follow the guide but when I finish it ,I found the admin
tool can't display the static files.like img and css
On Wed, Aug 27, 2008 at 9:09 AM, Keith Eberle <[EMAIL PROTECTED]>wrote:
> The stati
The static media files aren't getting served properly. Are you using the
development server or Apache in your screenshot?
keith
On Tue, Aug 26, 2008 at 9:01 PM, App Engine <[EMAIL PROTECTED]> wrote:
> look,please,
> I don't konw why the django admin display like this.[attach]
>
>
> ubuntu apach
Perhaps this could be of use: http://code.google.com/p/django-rcsfield/
On Aug 26, 8:51 pm, "oso che bol" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks you for your response.
>
> Regards,
> -LN
>
> On Tue, Aug 26, 2008 at 4:32 PM, Rajesh Dhawan <[EMAIL PROTECTED]>wrote:
>
>
>
> > Hi,
>
> > On Aug 2
Hi,
Thanks you for your response.
Regards,
-LN
On Tue, Aug 26, 2008 at 4:32 PM, Rajesh Dhawan <[EMAIL PROTECTED]>wrote:
>
> 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?
> >
> > - Dj
Hi. Sorry to botther the group again. I'm working through the Weblog
example in 'Practical Django Projects'. Yet again, reverse URL lookup
errors prove to be the hardest to debug. In class Entry I have
defined
def get_absolute_url(self):
return "/weblog/%s/%s/" % (self.pub_date.st
On Tue, Aug 26, 2008 at 11:18 PM, dchandek <[EMAIL PROTECTED]> wrote:
>
> 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 test
For my site, I have various "companies" which will be using the site,
and they will be granted access to various "modules" that the site
makes available. Each company also has its own set of users, each of
which they can grant access to these various modules. Think of modules
like individual "app
Start with urls.py. Are you doing this anywhere?
import models
If you have a lot of apps, you could remove all but one from
INSTALLED_APPS, test manage.py, repeat, until you find the offending
app. The just go through the files in the app and make sure you are
properly defining any imports.
Does anyone know if there is a way to duplicate the admin filter in a
user form or web page? I want to allow users to have the same ability
to filter on specified categories just like in the admin interface.
I think its just a widget (FilteredSelectMultiple) that I can import
from django.contrib.
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 f
The subject line should be pretty self-explanatory. I try to run
"manage.py runserver", and I get "Error: cannot import name models" in
bold, red text. That's the only output I get. Does anyone know what
causes such an error, or where it is referring to?
Regards,
Leaf
--~--~-~--~~
Hi Karen,
yes I also stumbled over this ticket 3 minutes ago.
My Revision is 8423 - so I better check out a new one :-)
Hope this will fix it, but I guess.
Thank you!
Toni
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
On Tue, Aug 26, 2008 at 5:27 PM, mwebs <[EMAIL PROTECTED]> wrote:
> ...
> When I am uploading a file and taking a look at the directory where
> the files should be stored, I
> produced 212 files aa.txt to aa_...___.txt. Furthermore I get
> an IOError for "no such file or directory", which
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
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
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...
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
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
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 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
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
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
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
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 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
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
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
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
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
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:/
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 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
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
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
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
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
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 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,
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
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
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
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
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
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
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
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
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
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
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 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
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
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
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,
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
>
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
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
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
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.
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
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
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
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
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
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/
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
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).
>> ***
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
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
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
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
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 ,
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')),
)
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
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
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
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
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
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': '/'}),
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
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
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
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
1 - 100 of 131 matches
Mail list logo