On May 4, 12:03 am, George Song wrote:
> On 5/3/2009 8:17 PM, nbv4 wrote:
>
>
>
> > On May 3, 3:51 pm, Ramiro Morales wrote:
> >> On Sun, May 3, 2009 at 4:26 PM, nbv4 wrote:
>
> >>> Everything is fine and dandy, except for when I want
Yes, 404.html and 500.html are there. But they extend from base.html, which
depends on some context variables. I will change them to a simple one and
see if the problem still there.Thanks
On Tue, May 5, 2009 at 12:06 AM, Brian Neal wrote:
>
> On May 4, 10:28 am, Ronghui Yu
That's something I didn't try. It is a good idea to figure out what the
problem is.Thanks
On Tue, May 5, 2009 at 12:01 AM, Masklinn wrote:
>
> On 4 May 2009, at 17:28 , Ronghui Yu wrote:
> > I don't quite understand why this happens, and how to solve it.
> > Has anybody
Your TINYMCE_JS_URL is .../site_media/js/tiny_mce/tiny_mce.js while the file
apparently is at .../site_media/tiny_mce/tiny_mce.js.
Zain
On Mon, May 4, 2009 at 9:59 AM, Jesse wrote:
>
> Hello,
>
> I'm trying to implement django-cms. The CMS pages in admin display,
> but not
On Mon, 2009-05-04 at 15:47 -0700, Andrew Se. Fefelov wrote:
> Hello guys!
>
> I'v got such problem with development server. I run any app on my dev
> server and it is stuck on Set Cookie response:
Define "stuck". What happens?
The request and response headers you posted look reasonable to me,
Hello guys!
I'v got such problem with development server. I run any app on my dev
server and it is stuck on Set Cookie response:
GET / HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword, application/vnd.ms-
powerpoint, */*
ok, here is what I am working on . I am a noob at this.
I am trying to make a link counter. I have a ad rotation system. The
ads will have a tag.
when a user clicks on the ad it would direct them to the url for the
views.py that handels that function.
I also have a form that has hidden
Dear all,
Does anybody know a good CommaSeparatedStringField for django? The one that
I expect is sort of like the CommanSeparatedIntegerField that comes with
django, but for String.
Thank you very much in advance.
--
If you can't believe in God the chances are your God is too small.
Read my
On 4 mai 09, at 23:36, Malcolm Tredinnick
wrote:
> On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote:
>> On 4 May 2009, at 14:55 , pbzRPA wrote:
>>> On May 4, 1:24 pm, Masklinn wrote:
>
> [...]
>
FWIW the `'app.views.showItems'` isn't even
On 4 mai 09, at 23:36, Malcolm Tredinnick
wrote:
> On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote:
>> On 4 May 2009, at 14:55 , pbzRPA wrote:
>>> On May 4, 1:24 pm, Masklinn wrote:
>
> [...]
>
FWIW the `'app.views.showItems'` isn't even
On Mon, 2009-05-04 at 12:07 -0700, Tomáš Ehrlich wrote:
> Hi there,
> I wonder if is there any way to add extra input field in admin, which
> I don't want to define in model.
>
> For example, I want to import external files. I have simple blog model
> (title, content, pub_date), but in admin I
Hi there,
I wonder if is there any way to add extra input field in admin, which
I don't want to define in model.
For example, I want to import external files. I have simple blog model
(title, content, pub_date), but in admin I want to also have file
input field, to import files.
Then I can:
1)
On Mon, 2009-05-04 at 15:41 +0200, Masklinn wrote:
> On 4 May 2009, at 14:55 , pbzRPA wrote:
> > On May 4, 1:24 pm, Masklinn wrote:
[...]
> >> FWIW the `'app.views.showItems'` isn't even necessary, you can just
> >> pass the view function and reverse will figure out the
On May 5, 3:36 am, Shadow wrote:
> Hi,
>
> I'm developing my site at the moment (locally) and it has an infinite
> loop somewhere. But my requests aren't timing out. The apache
> processes just get larger and larger, till I have to kill apache.
>
> I'm guessing I
Thanks Malcolm - getattr() is the one I knew had to be there but
couldn't remember or find it anywhere. And I'm pretty sure I've even
used it before. sheesh.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
On Mon, 2009-05-04 at 12:51 -0700, eric.frederich wrote:
> Thanks for the reply.
>
> You're right that auth.User is not a replacement for a profile.
> Maybe I will make the training app require only that a profile model
> exists and has a particular set of fields like cost-center, manager's
>
Thanks for the reply.
You're right that auth.User is not a replacement for a profile.
Maybe I will make the training app require only that a profile model
exists and has a particular set of fields like cost-center, manager's
e-mail, etc.
This way at least it wouldn't be tied to a particular
On Mon, 2009-05-04 at 11:52 -0700, hotani wrote:
> Most of the errors I'm seeing these days in my application are of the
> "NoneType object has no attribute" variety. While this may be
> helpful on occasion on the development server, I really don't want it
> creeping up on production.
>
>
On Mon, 2009-05-04 at 08:46 -0700, MS wrote:
> Hi,
>
> I have a problem with django+postgresql:
> I have a model with a CharField(max_length=255) field, and I'm
> assigning some much longer value to this field, like:
>
> m = MyModel()
> m.myfield = 'very long text - say 400 chars'
> m.save()
>
On Mon, 2009-05-04 at 11:35 -0700, eric.frederich wrote:
> I wrote an app that consist of an authentication backend and a single
> model "Profile" (extension of auth.User). It also has a function
> which queries ldap to get user information like their manager. We'll
> call this app
On Mon, 2009-05-04 at 10:31 -0700, MikeL wrote:
> I figured it out. I had to run cursor.execute for the SET and the
> SELECT line and it managed to remember the @row being 0 between them.
> Though it would be nice if a django solution exists.
You found the Django solution already: use
On Mon, 2009-05-04 at 11:31 -0700, pbzRPA wrote:
> Hi,
>
> Could you provide the code of your model and why you would want to use
> a custom sql instead of the django model object.
For the type of query that Mike is asking about, custom SQL is a
reasonable solution. Django cannot really provide
On Mon, 2009-05-04 at 09:18 -0700, Riccardo Pelizzi wrote:
> Hello,
>
> I have a model which looks kinda like this:
>
> class Host(model):
> ip = IPAddressField()
>
> class Domain(model):
> hosts = ManyToManyField(Host)
>
> If i want to get all the domains without hosts:
>
Most of the errors I'm seeing these days in my application are of the
"NoneType object has no attribute" variety. While this may be
helpful on occasion on the development server, I really don't want it
creeping up on production.
"Well fix them!" you say. Actually there is nothing to fix.
Hi,
I am not sure if truncating the data is a good solution as the user
will be under the impression that all the text was saved whereas only
the first 255 was really saved.
You can add a max_length to your form or modelform field which will
block the user from typing more then the max length.
Hey All,
Can anyone tell me how to read a Djano UploadedFile .xls file with
xlrd without resorting to explicitly saving the file to the hard
drive?
If I attempt to pass my_file.read() directly to xlrd, the error I get
is:
file() argument 1 must be (encoded string without NULL bytes), not str
I wrote an app that consist of an authentication backend and a single
model "Profile" (extension of auth.User). It also has a function
which queries ldap to get user information like their manager. We'll
call this app my_custom_backend. The reason the Profile and
authentication are in the same
Hi,
Could you provide the code of your model and why you would want to use
a custom sql instead of the django model object.
Regards
Pbzrpa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
On Monday 04 May 2009 10:17:09 am Phil Mocek wrote:
> On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote:
> > I forgot to mention that sqlite3 expects a file to be there, it
> > can't create one on it's own, using ./manage.py syncdb.
>
> I think you are mistaken. Can you site some
Hi,
I'm developing my site at the moment (locally) and it has an infinite
loop somewhere. But my requests aren't timing out. The apache
processes just get larger and larger, till I have to kill apache.
I'm guessing I need to set a timeout setting, but I don't know where.
Apache? mod_python?
I figured it out. I had to run cursor.execute for the SET and the
SELECT line and it managed to remember the @row being 0 between them.
Though it would be nice if a django solution exists.
Regardless,
MikeL
On May 4, 10:15 am, MikeL wrote:
> I'm trying to make a query
Disclaimer: I am new to Django and not the greatest programmer.
I would like to add a css class to form elements if there is an error
in the form. Not sure the BEST/EASIEST way to do this. I would only
want the attribute added if there was an error and I would like to do
this in the cleanest
I'm not saying that the original OP code didn't work, just that it felt
sloppy to have this lists/delete/item1 url lingering out there. Just looking
for a better way. :)
John Crawford-14 wrote:
>
>
> Okay, I'm not sure why the OP code didn't work - it seems like going
> to the URL
On Mon, May 04, 2009 at 08:31:34AM -0700, Mike Ramirez wrote:
> I forgot to mention that sqlite3 expects a file to be there, it
> can't create one on it's own, using ./manage.py syncdb.
I think you are mistaken. Can you site some documentation to back
this claim?
I'm using Django 1.0,
Okay, I'm not sure why the OP code didn't work - it seems like going
to the URL 'lists/show', with the updated list, would work. So my
*guess* is that since it's a page the browser already saw and cached,
that the page just isn't getting refreshed. In other words, if he hit
the browser-refresh
I'm trying to make a query which lists the top 5 rated users along
with the rating (and rank) of the current user. The top 5 was easy,
but I'm having a problem getting the rank of the current user. I know
the sql needed to calculate the rank, but it requires a variable.
SET @row=0;
SELECT rank
Hello,
I'm trying to implement django-cms. The CMS pages in admin display,
but not with the editing someone without html knowledge will be able
to use. I see no tinymce options. I've placed tinymce in several
places hoping somehow it would display where I need it.
Using this statement in a
I was modifying the form submission with some Ajax code that busted
the filter_horizontal apparently. Preventing the default action of the
form with jQuery is not a good idea :)
On May 4, 10:41 am, Brandon Taylor wrote:
> Hi George,
>
> I wonder what the deal is then.
touch worked for me.
thanks
On May 4, 11:31 am, Mike Ramirez wrote:
> I forgot to mention that sqlite3 expects a file to be there, it can't create
> one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can
> also do the same thing with vi, if you save
I found a post that supposedly fixes the broken sqlite3 package.
" adding sqlite-devel to BuildRequires fixes the problem "
could someone help me do that??
here is the link to the post.
https://bugzilla.novell.com/show_bug.cgi?id=228733#c7
thanks!
Thanks to both of you, both of these answers were very helpful.
Jeff
On May 2, 10:26 am, Malcolm Tredinnick
wrote:
> There are a couple of different solutions to this problem. Ultimately,
> it comes down to providing the necessary information so that Django can
> use
Hello,
I have a model which looks kinda like this:
class Host(model):
ip = IPAddressField()
class Domain(model):
hosts = ManyToManyField(Host)
If i want to get all the domains without hosts:
Domain.objects.filter(hosts=None)
works.
Later on in my script i need to get the opposite, all
On May 4, 10:28 am, Ronghui Yu wrote:
> Hi,All,
>
> I am going to use Flatpages app for those simple pages. And everything
> works fine when settings.DEBUG is True, but when it is turned to False,
> a URL not configured in urlpatterns will trigger 500, not 404.
Do you have a
On 4 May 2009, at 17:28 , Ronghui Yu wrote:
> I don't quite understand why this happens, and how to solve it.
> Has anybody ever met this problem? And any suggestions?
>
> Thanks in advance.
>
Setup a local smtp sink and activate the "mail on 500" thing, to see
why it's erroring out?
On 5/4/2009 8:46 AM, MS wrote:
> I have a problem with django+postgresql:
> I have a model with a CharField(max_length=255) field, and I'm
> assigning some much longer value to this field, like:
>
> m = MyModel()
> m.myfield = 'very long text - say 400 chars'
> m.save()
>
> In save() I'm
Hi,All,
I am going to use Flatpages app for those simple pages. And everything
works fine when settings.DEBUG is True, but when it is turned to False,
a URL not configured in urlpatterns will trigger 500, not 404. This
happens on both Apache2 and the Django native testing server. Here is
some
Hi,
I have a problem with django+postgresql:
I have a model with a CharField(max_length=255) field, and I'm
assigning some much longer value to this field, like:
m = MyModel()
m.myfield = 'very long text - say 400 chars'
m.save()
In save() I'm getting an error "ERROR: value too long for type
Hi George,
I wonder what the deal is then. I've noticed this issue on two apps
I'm working on. The only thing those apps have in common is that I'm
also leveraging jQuery and overriding the change_form.html template.
I guess I'll just make a new app and start adding things until it
breaks.
On
Posting because i just set up httpd.conf on linux computer few days
ago and it took me a while to get it working as i wanted to.
If i just compare the way how i set it up and how you did it Then the
difference is that you have no pythonpath like Malcolm said and
location should be either "/web/"
I forgot to mention that sqlite3 expects a file to be there, it can't create
one on it's own, using ./manage.py syncdb. To do so I use touch, tho you can
also do the same thing with vi, if you save it as an empty file (just tested
it). echo "" > testing.db might work also.
[gufym...@sylia
On 5/4/2009 8:24 AM, Brandon Taylor wrote:
> filter_vertical also appears to be suffering the same problem.
>
> On May 4, 10:23 am, Brandon Taylor wrote:
>> Hi everyone,
>>
>> When I specify filter_horizontal for any ManyToMany field on a model
>> using Django trunk,
On Monday 04 May 2009 08:16:58 am bconnors wrote:
> I deleted the file and
> When I do python manage.py syncdb and the message ends up with:
You should be using touch, vi might work, if you save it as an empty file, but
touch is the best. example:
[gufym...@sylia testing]$ ls
__init__.py
filter_vertical also appears to be suffering the same problem.
On May 4, 10:23 am, Brandon Taylor wrote:
> Hi everyone,
>
> When I specify filter_horizontal for any ManyToMany field on a model
> using Django trunk, and that field is required, admin will not allow
> me
Hi everyone,
When I specify filter_horizontal for any ManyToMany field on a model
using Django trunk, and that field is required, admin will not allow
me to save the choice(s). it will tell me the field is required, no
matter how many choices I select.
If I remove the filter_horizontal, and I
You guys are awesome, it's always great to find a great new framework and
then find out it has a great community as well. I can't wait to try this
tonight. Thanks again!
Masklinn wrote:
>
>
> On 4 May 2009, at 14:55 , pbzRPA wrote:
>> On May 4, 1:24 pm, Masklinn
I deleted the file and
When I do python manage.py syncdb and the message ends up with:
File "/usr/lib/python2.5/site-packages/django/core/management/
__init__.py", li
ne 304, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
Another hack would be to make your data structure look 'enough' like a
Django model such that the generic views would work for you. Remember
that Python follows duck-typing principles so if your data structures
looks enough like querysets and data models, then you could use the
generic views. I
On Mon, May 04, 2009 at 05:33:05AM -0700, bconnors wrote:
> I created a mysite.db in my directory by vi.
It's highly unlikely that you will be able to create a valid
SQLite database using a text editor. You should delete that file,
then expect it to be created when you run the 'syncdb' command.
Hi,
I am building a website that will hold on google app engine. The
website need a wiki module, but there
have few django wiki module available. Could somebody recommend a one for use?
That is my requirements:
- Able to upload file
- No anonymous editing
- History tracking. Able to check who
On 4 May 2009, at 14:55 , pbzRPA wrote:
> On May 4, 1:24 pm, Masklinn wrote:
>> On 4 May 2009, at 12:47 , pbzRPA wrote:
>>
>>> I would do the following.
>>
>>> from django.http import HttpResponseRedirect
>>> from django.core.urlresolvers import reverse
>>
>>> def
On May 4, 3:07 pm, pbzRPA wrote:
> On May 3, 6:52 pm, Malcolm Tredinnick
> wrote:
>
>
>
> > On Sun, 2009-05-03 at 09:03 -0700, Thierry wrote:
> > > I have the following model:
>
> > > class Person(models.Model):
> > > person =
On May 3, 6:52 pm, Malcolm Tredinnick
wrote:
> On Sun, 2009-05-03 at 09:03 -0700, Thierry wrote:
> > I have the following model:
>
> > class Person(models.Model):
> > person = models.ForeignKey(User)
> > age = models.IntegerField()
>
> > How can I set the
On May 4, 1:24 pm, Masklinn wrote:
> On 4 May 2009, at 12:47 , pbzRPA wrote:
>
> > I would do the following.
>
> > from django.http import HttpResponseRedirect
> > from django.core.urlresolvers import reverse
>
> > def deleteItems(request, item):
>
> > return
Read, re-read and then ask a question ;-). So I'm answering my
question myself: Use the TransactionMiddleware to tie together the two
updates.
On Apr 29, 3:20 pm, mettwoch wrote:
> Hi,
>
> I'm rather new to Django (and webapp development) and I'd appreciate
> any advice on the
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2',
'postgresql', 'my
sql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '/django-trunk/build/lib/django/bin/mysite/mysite/
mysite.db'
# Or path to database file if using
I’m getting the error “unable to open database file”
I have sqlite3:
pubu...@pubuntu:~/django-trunk/build/lib/django/bin/mysite$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more
Thanks for the detailed reply Russ.
I added a boolean field to the model to specify the most current entry
for the user, updated with save(), thus letting me to fetch records of
the most current entries with a simple query.
I think de-normalization and avoiding expensive complex aggregate
On 4 May 2009, at 12:47 , pbzRPA wrote:
> I would do the following.
>
> from django.http import HttpResponseRedirect
> from django.core.urlresolvers import reverse
>
> def deleteItems(request, item):
>
>return HttpResponseRedirect(reverse('app.views.showItems'))
FWIW the
I would do the following.
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
def deleteItems(request, item):
return HttpResponseRedirect(reverse('app.views.showItems'))
--~--~-~--~~~---~--~~
You received this message
On Mon, May 4, 2009 at 3:58 PM, skyl wrote:
>
> Who is working on databrowse? What is the status? Does anyone have
> links where I can trac this app?
django.contrib.databrowse is part of the Django core. This means that
it is part of the normal Django development
I would like to know if anyone knows how to create custom operators
for querysets.
Currently you can do something like:
foo.objects.filter(myfield__icontains = x)
I would like to add my own operator so I can do something like:
foo.objects.filter(myfield__converttext = x)
where "converttext"
Wiadomość napisana w dniu 2009-05-04, o godz. 11:04, przez Raashid:
> An unhandled exception was thrown by the application.
> I m getting this error on form submit even though same code is working
> fine locally. I m using django and cherokee web server .
This is caused by error thrown by flup
An unhandled exception was thrown by the application.
I m getting this error on form submit even though same code is working
fine locally. I m using django and cherokee web server .
Thanks in anticipation
Raashid Malik
--~--~-~--~~~---~--~~
You received this
The solution to the problem was to extend the Python's save method... here's
a snippet of the following:
def save(self, force_insert=False, force_update=False):
"""Update the size field and save the record"""
if self.filepath:
Who is working on databrowse? What is the status? Does anyone have
links where I can trac this app?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On 4 mai 09, at 06:54, scott212 wrote:
> I'm reading through the djangobook and trying to build a small app as
> I go. The app is just a list that I can add to and delete entries
> from. Deleting is easy, but I'm not sure how the url/view portion
> should be handled.
>
>
76 matches
Mail list logo