On Sat, 2007-12-22 at 13:00 +0530, Kenneth Gonsalves wrote:
> hi,
> am using the latest svn head, and trying to get ModelForm working
> with Image/FileField. The model is here:
>
> class Photo(models.Model):
> """Photo plus blurb - blurb to be translated but optional
> """
>
hi,
am using the latest svn head, and trying to get ModelForm working
with Image/FileField. The model is here:
class Photo(models.Model):
"""Photo plus blurb - blurb to be translated but optional
"""
photo=models.ImageField(_("Picture"),upload_to='images/pics')
page = mo
On Tue, 2007-12-18 at 15:47 +0100, Michael Elsdörfer wrote:
> James Bennett schrieb:
> > Manually call get_template() or select_template(), and stuff the
> > resulting Template object into a module-global variable somewhere.
> > Then just re-use it, calling render() with different contexts, each
On Fri, 2007-12-21 at 06:48 -0800, mike wrote:
> Sorry if I was unclean, I just discovered this and I am still learning
> newforms, I am using forms.form_for_model and trying to get two form
> to display in my template, only 1 is a foreign key that I used
> edit_inline with my model, I am trying
On Thu, 2007-12-20 at 09:20 -0600, James Bennett wrote:
> On Dec 20, 2007 9:03 AM, GodOfGeeks <[EMAIL PROTECTED]> wrote:
> > The problem is that when I set the fields to editable=False then they
> > won't be visible in the adminModel
>
> The admin interface is deliberately designed not to have
>
The issues model is a foreign key to my customer model.
On Dec 21, 10:40 pm, mike <[EMAIL PROTECTED]> wrote:
> Thank you for your reply, I did as you suggested but when I save the
> form I get the error
>
> (1048, "Column 'customer_id' cannot be null") customer_id, being the
> 'id' field of the
The issues model is a foreign key to my customer model.
On Dec 21, 10:40 pm, mike <[EMAIL PROTECTED]> wrote:
> Thank you for your reply, I did as you suggested but when I save the
> form I get the error
>
> (1048, "Column 'customer_id' cannot be null") customer_id, being the
> 'id' field of the
On Fri, 2007-12-21 at 14:36 -0800, maco wrote:
> Can someone please write a quick-start for this search engine on
> Django. I've already set up django app and sphinix search engine in a
> shell. There are some basic instructions in the snippets, but are not
> that self explanatory to a noob like
On Fri, 2007-12-21 at 18:38 +, Jorge Sousa wrote:
> Hi,
>
> I'm a newby to django and python
>
> I'm trying to create a form (master / detail) editable all the way.
> I'm able to post data in the following format:
>
> request.data = {
>'id': NN,
>'name': "John Doe',
>'detai
Thank you for your reply, I did as you suggested but when I save the
form I get the error
(1048, "Column 'customer_id' cannot be null") customer_id, being the
'id' field of the customer model,
if request.method == 'POST':
form1 = IssueEntryForm(request.POST)
if form1.is_valid(
On Wed, 2007-12-19 at 12:55 -0800, Trev wrote:
> Hi, This should take 2 seconds for an experience Django user.
> I'm trying to install Django on windows XP. I've installed python 2.5
> and MySQL with MySQLdb as the interface.
> However when I try installing django from DOS I get this error
>
> C
I have 0.96 installed and I'm working on Tutorial 2:
http://www.djangoproject.com/documentation/0.96/tutorial02/
Everything from Tutorial 1 worked just fine, but once I follow the
steps under "Activate the admin site" and try to visit admin, I get a
TemplateDoesNotExist for admin/login.html
I ch
On Wed, 2007-12-19 at 08:15 -0800, Trochalakis Christos wrote:
> Hello there,
>
> I'm trying to use the "url" template function but i cant make it work.
>
> My attempt:
>
> urls.py:
>
> urlpatterns = patterns('',
> url(r'^$',
> date_based.archive_index,
> entry_info,
>
On Dec 21, 2007 4:50 PM, SmileyChris <[EMAIL PROTECTED]> wrote:
>
> After reading this thread the other day, I decided to write up a patch
> [1].
>
> [1] http://code.djangoproject.com/ticket/6262
Of course you did. Always with the patches. :)
P.S. Thank you
Michael Trier
blog.michaeltrier.com
That's not an error. That's telling you that there is nothing in your
Publisher table. Put some data in there and you'll get a result back.
Michael Trier
blog.michaeltrier.com
On Dec 21, 2007 3:51 PM, newDjangoer <[EMAIL PROTECTED]> wrote:
>
> When I follow the book tutorial. I create p1 and p
Ahh! That helps. Sorry, I haven't ever used form_for_model() and
didn't recognize that IssueEntryForm in the original post was NOT a
form instance. Corrections embedded below.
On Dec 21, 8:48 am, mike <[EMAIL PROTECTED]> wrote:
> Sorry if I was unclean, I just discovered this and I am still l
Any community recommendations on types of upstream caching for django/
dynamic sites? (besides the standard "the docs say")
Any pros/cons on a squid (http://www.squid-cache.org/) vs varnish
(http://varnish.projects.linpro.no/) setup? Looking for solution to
front 3-5 django application serv
On Dec 21, 2:59 am, brian corrigan <[EMAIL PROTECTED]> wrote:
> try using
>
>
Seems like a good idea, but remember that a DISABLED field's value
does _not_ get sent back with the HttpRequest submission, and will
therefore be flagged as missing input if the form's field definition
doesn't have "r
On Dec 5, 7:02 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
>
> If you're using CACHE_MIDDLEWARE_ANONYMOUS_ONLY you need a different
> middleware ordering, as the error message says. That setting is a real
> hack and I'd love to implement it in a better way some day. At the
> moment, though,
Nevermind, I look closely the docs:
http://www.djangoproject.com/documentation/modelforms/
The correct way is:
img = Image(author=request.user,slug =
SlugifyUniquely(request.POST['title'],Image))
form = ImageForm(request.POST, request.FILES,instance=img)
That work nicely
--~--~-~--~---
Can someone please write a quick-start for this search engine on
Django. I've already set up django app and sphinix search engine in a
shell. There are some basic instructions in the snippets, but are not
that self explanatory to a noob like me :(
I got lost with how to implement this in the proj
I need separate files by username and I try this trick:
http://gulopine.gamemusic.org/2007/11/customizing-filenames-without-patching.html
For this model:
class Image(models.Model):
title =
models.CharField(u'titulo',max_length=50,blank=False,db_index=True)
slug= models.Slu
Awesome!
What happens if you don't have caching enabled?
On 12/21/07, SmileyChris <[EMAIL PROTECTED]> wrote:
>
> After reading this thread the other day, I decided to write up a patch
> [1].
>
> [1] http://code.djangoproject.com/ticket/6262
--~--~-~--~~~---~--~~
After reading this thread the other day, I decided to write up a patch
[1].
[1] http://code.djangoproject.com/ticket/6262
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, s
When I follow the book tutorial. I create p1 and p2 like on page 71,
but I get this error:
>>> from books.models import Publisher
>>> publisher_list = Publisher.objects.all()
>>> publisher_list
[]
>>>
--~--~-~--~~~---~--~~
You received this message because you are
It tells me
Column 'customer_id' cannot be null") because of the foreign key,
customer_id is the id of the customer, that the Issues field is linked
to. How do i auto fill in this field?
On Dec 20, 10:17 pm, Empty <[EMAIL PROTECTED]> wrote:
> This is not a very secure thing to do. But if you
I've posted this here: http://trac-hacks.org/wiki/DjangoAuthIntegration
Note, I have not committed anything to svn. Scroll down to the bottom
for the attached file.
If anyone has any questions, please email me directly as I only
subscribe to the digest for the django-users list and nothing for t
Hi,
I'm a newby to django and python
I'm trying to create a form (master / detail) editable all the way.
I'm able to post data in the following format:
request.data = {
'id': NN,
'name': "John Doe',
'detail1.0.cod': 'XX',
'detail1.0.descr': "abc",
'detail1.1.cod': 'YY',
'detail
I'm close to relaunch www.paradondevamos.com with the options of share
video/images. Is a social-like website for local events & news, with
blogging, news, events & friendship.
I'm looking for alternatives to off-load the images/videos. My
community is starting and have currently 400 members. I d
Klik:
http://s4.battleknight.onet.pl/index.php?loc=hire&ref=ODAyODU3
--~--~-~--~~~---~--~~
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 unsubscr
Thanks Michael worked like a charm. Your site is a great help for
newbies.
On Dec 21, 12:37 pm, Empty <[EMAIL PROTECTED]> wrote:
> You need to have a settings file specified. Read this:
>
> http://www.djangoproject.com/documentation/settings/
>
> If you have a project, you need to make sure you
You need to have a settings file specified. Read this:
http://www.djangoproject.com/documentation/settings/
If you have a project, you need to make sure you are in the project
directory and using ./manage.py shell so all the right stuff gets
loaded up for you.
Michael Trier
blog.michaeltrier.c
On Dec 21, 5:46 pm, newDjangoer <[EMAIL PROTECTED]> wrote:
> I am experiencing an error when I try to run the following:
>
> >>> from django.db import connection
>
> Traceback (most recent call last):
> File "", line 1, in
> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> pyt
I am experiencing an error when I try to run the following:
>>> from django.db import connection
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site-packages/django/db/__init__.py", line 7, in
if not settings
Having an issue with a blog I am setting up.
The core is Banjo - everything works expect for the comments.
Here is the suspect code located in base.html:
--
{% block skinstyles %} {% for css in skin.info.css %} {% endfor %}
{% endblock %}
---
This block inheri
On Dec 20, 8:50 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 21-Dec-07, at 12:59 AM, Waylan Limberg wrote:
>
> > I've worked up the beginnings of a Trac plugin that authenticates
> > against Django users. I've since determined that I'm not likely to use
> > it.
>
> why are you unlikely to
How do I create a super user so that I can log in to the default admin
section
On Dec 21, 10:16 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Dec 21, 10:09 am, newDjangoer <[EMAIL PROTECTED]> wrote:
>
> > OK. Thanks. Now I am getting the following error:
>
> That's expected output and not an
Great. Thanks for the help.
On Dec 21, 10:16 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Dec 21, 10:09 am, newDjangoer <[EMAIL PROTECTED]> wrote:
>
> > OK. Thanks. Now I am getting the following error:
>
> That's expected output and not an error. So, you're good to go.
--~--~-~--~
On Dec 21, 2007 10:05 AM, Gio <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm writing a custom field wishing to implement something similar to a
> multiplechoice.
> The problem is that when I run syncdb I receive a
> AttributeError: 'ListField' object has no attribute 'db_column'
> Any idea?
I didn't
On Dec 21, 10:09 am, newDjangoer <[EMAIL PROTECTED]> wrote:
> OK. Thanks. Now I am getting the following error:
That's expected output and not an error. So, you're good to go.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
OK. Thanks. Now I am getting the following error:
skcompxp:~/djcode/mysite sptxk$ python manage.py syncdb
Creating table books_publisher
Creating table books_book
Creating table books_author
Installing index for books.Book model
Loading 'initial_data' fixtures...
No fixtures found.
skcompxp:~/dj
Hi all,
I'm writing a custom field wishing to implement something similar to a
multiplechoice.
The problem is that when I run syncdb I receive a
AttributeError: 'ListField' object has no attribute 'db_column'
Any idea?
my models.py is:
-
> admin.logentry: 'user' has relation with model User, which has not
> been installed
> admin.logentry: 'content_type' has relation with model ContentType,
> which has not been installed
>
> I was not promted to create a super user. How do I create one.
You need to ensure that the following apps
Sorry if I was unclean, I just discovered this and I am still learning
newforms, I am using forms.form_for_model and trying to get two form
to display in my template, only 1 is a foreign key that I used
edit_inline with my model, I am trying to get the 'customer' field of
my issue to be hidden and
On Dec 21, 3:33 am, madhav <[EMAIL PROTECTED]> wrote:
> I did it, but its not showing up the new field(which is "summary" in
> my case) in the Create Statement, nor is at the Alter table part.
That's expected behaviour for generic objects (sorry, that I didn't
mention this in my earlier post).
I get this error when I runserver (python manage.py runserver):
admin.logentry: 'user' has relation with model User, which has not
been installed
admin.logentry: 'content_type' has relation with model ContentType,
which has not been installed
I was not promted to create a super user. How do I cr
On Dec 8, 11:40 pm, Andreas Pfrengle <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I wanna use the admin interface for manipulating the db-data. I have a
> hierarchy of categories and products that shall belong to one or more
> categories. Here are the models I currently have:
> class Category(mod
On Dec 8, 11:40 pm, Andreas Pfrengle <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I wanna use the admin interface for manipulating the db-data. I have a
> hierarchy of categories and products that shall belong to one or more
> categories. Here are the models I currently have:
> class Category(mod
shabda napisał(a):
> I have table say BlogEntries. Now to show an archive view I need to
> find the months for which at least one entry exists in the database.
> If I drop to raw SQL i can write to query to achieve this as,
> SELECT
> created_on
> , count( created_on )
> FROM `myapp_blogentry`
>
I have table say BlogEntries. Now to show an archive view I need to
find the months for which at least one entry exists in the database.
If I drop to raw SQL i can write to query to achieve this as,
SELECT
created_on
, count( created_on )
FROM `myapp_blogentry`
GROUP BY year( created_on ) , month(
I'm doing some "poke around" tests just to get used to the framework,
this error I can't understand :
Wrote a login view :
user = auth.authenticate(username=request.POST['username'],
password=request.POST['password'])
if user is not None:
if user.is_ac
On Fri, 2007-12-21 at 02:06 -0800, mark wrote:
> Hi,
>
> I'am new to django framework.
>
> as i was looking on the data model each data model is a class that is
> table in the database.
>
> my qestion is if i have a table that want to retrive partial data from
> the table
>
> Example: (media
On Fri, 2007-12-21 at 01:56 -0800, Julian wrote:
> hi,
>
> i have a name url pattern:
>
> url( r'^login/', 'login', {'template_name': "config/templates/
> login.html"},name="config-login"),
>
> this works perfectly in the template for
>
> {% url config_login %}
>
> but wouldn't it hurt the d
Thanks a lot!
I also found this link: http://www.djangosnippets.org/snippets/319/
On Dec 21, 3:14 pm, Empty <[EMAIL PROTECTED]> wrote:
> > I'll look into it, but before I go too far down one track, could
> > anybody give some advice on how to approach it using sessions?
>
> Here's an example:
>
Hi,
I'am new to django framework.
as i was looking on the data model each data model is a class that is
table in the database.
my qestion is if i have a table that want to retrive partial data from
the table
Example: (media object)
table [id, name , description, url , thumbnail ]
and i also
hi,
i have a name url pattern:
url( r'^login/', 'login', {'template_name': "config/templates/
login.html"},name="config-login"),
this works perfectly in the template for
{% url config_login %}
but wouldn't it hurt the dry principle to write the login-url in the
settings.py? right, so i want t
On Dec 21, 2:20 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Dec 20, 2007 9:03 AM, GodOfGeeks <[EMAIL PROTECTED]> wrote:
>
> > The problem is that when I set the fields to editable=False then they
> > won't be visible in the adminModel
>
> The admin interface is deliberately designed not
Unless these are settings that Django needs lite configured apps or db
settings I can't see why you wouldn't use a config file, especially if
it is just for mail settings.
On Dec 20, 10:32 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> James Bennett napisał(a):
>
> >> While this might work for the
I did it, but its not showing up the new field(which is "summary" in
my case) in the Create Statement, nor is at the Alter table part.
On Dec 20, 7:47 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On second thoughts, "sqlall" might be better since it prints out
> indexes, initial_data, etc:
>
>
I start only one post request,but the db save two duplicate data in
sometimes.
this just occur sometime,why?
I used nginx(use multiple upsteam)+flup+facgi to deloy my django
application
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
60 matches
Mail list logo