Hi all,
I just wanted to let everyone know about a site I created for sharing code
snippets in a social way. You can check it out at http://www.smipple.net/.
Smipple allows you to save, organize, and share snippets with others easily.
The best part though is that you can follow other people who ha
Thanks, that clears my doubts!
I was thinking that somehow the inlineformset_factory would be able to
take in the modelform for the parent model as well as the modelform
for the model we intend to edit inline; and then I would be able to
display them together like in the admin. I was obviously th
On Sun, Jun 28, 2009 at 11:46 PM, chefsmart wrote:
>
> Hi Alex,
>
> If we take the example from the documentation, let's say I have
> modelforms for both Author and Book. So there is an AuthorModelForm
> (ModelForm) and also a BookModelForm(ModelForm).
>
> I can do MyFormSet = inlineformset_facto
Hi Alex,
If we take the example from the documentation, let's say I have
modelforms for both Author and Book. So there is an AuthorModelForm
(ModelForm) and also a BookModelForm(ModelForm).
I can do MyFormSet = inlineformset_factory(Author, Book,
form=BookModelForm)
But is it possible to use th
On Sun, Jun 28, 2009 at 11:38 PM, chefsmart wrote:
>
> If I understand correctly, I can use the form argument to supply a
> modelform. But actually I have custom modelforms for both the models.
> So I hoping to be able to use both if possible?
>
> Regards,
> CM.
>
>
>
> On Jun 29, 9:24 am, Alex G
If I understand correctly, I can use the form argument to supply a
modelform. But actually I have custom modelforms for both the models.
So I hoping to be able to use both if possible?
Regards,
CM.
On Jun 29, 9:24 am, Alex Gaynor wrote:
> On Sun, Jun 28, 2009 at 11:23 PM, chefsmart wrote:
>
On Sun, Jun 28, 2009 at 11:23 PM, chefsmart wrote:
>
> Hi,
>
> The Django documentation gives the following example for
> inlineformset_factory: -
>
> BookFormSet = inlineformset_factory(Author, Book)
>
> This can be found on
> http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-
Hi,
The Django documentation gives the following example for
inlineformset_factory: -
BookFormSet = inlineformset_factory(Author, Book)
This can be found on
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets
However, if I have custom modelforms for Author and Book,
Hi
I am facing a problem in DEV server that I really have no idea how to
resolve, which is related to cookie variable for subdomains.
I use wildcard subdomains, eg. sub1.abc.com, sub2.abc.com,
sub3.abc.com and all sub domains point to one running instance of
django app.
The problem is that I ho
Hi,
Thanks for your descriptive answer.
I'm starting the development server with python manage.py runserver
192.168.1.110:8000
This is so that the Django app can be accessed from other machines on
the (home) network for testing. At the time these messages were
displayed on the server console, n
Hello, I'm reading 'Practical Django Projects' and I'm getting this
error from section 'A Simple Custom Tag' on chapter 6:
TemplateSyntaxError at /weblog/
'coltrane_tags' is not a valid tag library: Could not load template
library from django.templatetags.coltrane_tags, No module named
coltrane_
Hi
I am using django 1.0 to redevelop a website.
I have read http://docs.djangoproject.com/en/1.0/topics/db/queries/ and cant
work out how to do my query except using raw sql. It would be great to be
able to use the django query api so i can stack queries more easily.
Just one working example woul
Introduction:
Hi Everyone,
Django is awesome and I hear you're all really helpful. I'm looking
forward to joining this group.
Real message:
So I'm developing a site with a few friends. We do not have a
dedicated server and are located in different cities. What is the
easiest way t
My apologies, poorly written question (was late on Friday and I should
have gone home!)
What I'm doing is writing several records to the database in a single
request. The errors may occur due to validation problems and I'm
checking for these as I go. However the problem occurs as follows:
vali
Hi,
I'm working on a Django hobby project on-and-off, and it makes heavy
use of GIS and OSM. The last time I worked on the project was several
weeks ago. Today, I fired up Django again to do some more work on it.
However, it seems that the display of OSM widgets in admin screens is
now broken. On
I'm trying to this to work: users can download their files from their
account page from a url like this:
http://example.com/account/download/a1234565789asedga-2/
for which django processes the authentication and then passes along
the info to nginx to serve the file.
However, I keep getting stuck
On Jun 29, 10:33 am, Aneesh wrote:
> I believe the request object should contain the IP address regardless
> of whether the user has an account. You can store that IP with the
> vote like Vladimir mentioned.
You can't rely on just the IP. If you do then you will have problems
where large numb
On Jun 29, 10:33 am, Aneesh wrote:
> I believe the request object should contain the IP address regardless
> of whether the user has an account. You can store that IP with the
> vote like Vladimir mentioned.
You can't rely on just the IP. If you do then you will have problems
where large numb
On Sun, Jun 28, 2009 at 3:56 PM, Wayne Koorts wrote:
> In your case you'll probably have to drop the id columns and recreate
> them. I'm not sure how Postgres will deal with adding a serial column
> to an existing table, but see how it goes (make backups first of
> course).
It works fine. The on
I believe the request object should contain the IP address regardless
of whether the user has an account. You can store that IP with the
vote like Vladimir mentioned.
Here are the docs for HttpRequest objects:
http://docs.djangoproject.com/en/dev/ref/request-response/#attributes
On Jun 28, 4:38
Fair enough. If that's as bad as it gets for you on Monday morning,
you're doing all right.
Thanks for the help. That sounds like it will address the problem. If
I run into any problems, I'll post them here. So future travelers,
unless I repost, Wayne's plan worked.
Thanks!
On Jun 28, 1:59 pm,
My question is about how to validate one field based on the value of
another field in a modelform,
but I don't want to show the second field in the form.
I've got a Ticket model with a foreign key field to Event:
class Ticket(models.Model): # General Admission or assigned seating
section
e
On Sun, Jun 28, 2009 at 6:03 PM, dartdog wrote:
>
> One of the reasons I'm enduring the pain of getting into Django is
> it's very clever way of being able to use Python libs and visa versa
> in a very loosely coupled manner. People seem to pick and choose what
> they want to use. Not fully under
Is it possible to use the django model database for other python
projects? I find it extremely easy to use and was hoping to use it in
my other projects.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users
Upgrade mod_wsgi to the latest. You are using an old version which has
a problem with 100-continue requests.
Graham
On Jun 29, 5:58 am, Gustavo Henrique wrote:
> hi guys,
> I have a problem with an URL sending a request POST with header 100-
> continue to my app. I'm using a service similar to
Remove your Python installation and then install Python 2.6.2 and
ensure that it is installed for all users.
Don't know why as yet, but a few people have seen this problem and
reinstalling Python fixes the problem. Not sure if it is specifically
something to do with Python 2.6.1 or whether it is
One of the reasons I'm enduring the pain of getting into Django is
it's very clever way of being able to use Python libs and visa versa
in a very loosely coupled manner. People seem to pick and choose what
they want to use. Not fully understanding you question I'd say of
course you can!
On Jun 28
Thank you,
Still wouldn't I be better off putting tagging someplace associated
with Django, rather than in a Python Library so when I go to deploy
I'm not looking for stuff all over..?? Maybe just a small item,,but
housekeeping can get confusing as projects grow?
On Jun 28, 3:48 am, Vladimir Shul
Hi Matt,
> Everything works fantastically, except for when I try to add new
> records to any model in the admin section. When I try to add any
> record, I get a "null value in column "id" violates not-null
> constraint" error.
>
> I'm completely new to postgres, so I imagine this is an error can
> the "serial" column time (
Oops, meant to say "column type". But actually should have said data
type. It's early. On Monday morning. Leeme alone :)
-Wayne
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
Hello,
I have started to use WSGI migrating from mod-python, using Python
2.6.1
First example using basic WSGI Hello World! application function,
works well.
But when I have tried to do the same with Django, I have the following
messages in Apache error.log usign Windows Vista :
[Sun Jun 28 19:2
Actually, I was hoping specifically for an IP-based solution - one
which would not require users to create accounts on my site. I
appreciate your feedback though.
On Jun 28, 4:58 am, Vladimir Shulyak wrote:
> Try django-votinghttp://code.google.com/p/django-votingif you want
> digg-like voting.
Further info, configured runserver verbosity=2 now the site works, no
404,,, and the Eclipse console has the red terminate button, however
when pressed the button goes away but the server continues to run...
ie pages refresh and I can navigate to various functions..in auth.. I'
suspecting a hosed
Can anyone give me some help with this?
On Jun 26, 3:27 pm, odonnell wrote:
> Also, I'm trying to set up django-filebrowser, made by the same people
> who make django-grappelli, and there's some stuff on that Google Code
> wiki about TinyMCE that's totally confused me.
>
> I want Grappelli, File
On Saturday 27 June 2009 12:16:24 am hugo wrote:
> Hi everyone,
>
> Click this
>
> I want "Click this" to have hyperlink "myURL". However, the link
> produced by the code above became
> http://mySite/myURL instead of myURL. So if myURL is http://www.time.com,
> the resulting link becomes http:
hi guys,
I have a problem with an URL sending a request POST with header 100-
continue to my app. I'm using a service similar to the Paypal. The
request don't sending the POST and GET content.
The result of the request:
,
POST:,
COOKIES:{},
META:{'CONTENT_LENGTH': '641',
'CONTENT_TYPE': 'applica
I was making great progress in getting some stuff going with Django
then I blew myself up. not sure how and what to do next... I use
Eclipse on win 64 vista box, all was going along..fine but I was
having some issues with installing packages,,which I think I've
finally got a feel for but in the pr
Last week I started migrating a project from MySQL over to Postgres to
start toying around with GeoDjango. I ran a dumpall in MySQ, altered
the results and loaded it up into Postgres into tables created by the
syncdb command.
Everything works fantastically, except for when I try to add new
record
Hi,
On May 16, 8:55 pm, Timboy wrote:
> I am looking to make a webmail client proof of concept in django. I
> ran across twisted mail and this
> post:http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-t...
> showing how to use django on twisted.
>
> Can anyone point me in the r
Hi all,
I'm using mod_python and have "PythonOption django.root" set.
My question is, how can I access that var (my site deploy path prefix)
so in case that my app change of location all URLs that my app generate
("get_absolute_url" models method, etc.) have the new location?
Cheers
Frank Abel
On 28 Jun 2009, at 17:23 , Jan-Herbert Damm wrote:
>
> A hint to get me on the right track would be helpful.
Well you could build the HTML or PDF version of the documentation from
the ReStructuredText source, or just read the documentation from the
website instead of from your HDD (it's the s
On Jun 28, 4:23 pm, Jan-Herbert Damm wrote:
> Hello,
>
> Learning Python and Django, i am walking through the tutorials that reside in
> [...]/django-trunk/docs/intro/. Coming across lines like:
>
> " :ref:`topics-settings` will tell you all about how settings work."
> ^
> m
Hello,
Learning Python and Django, i am walking through the tutorials that reside in
[...]/django-trunk/docs/intro/. Coming across lines like:
" :ref:`topics-settings` will tell you all about how settings work."
^
makes me wonder if there is some way to access these plain t
On Sun, Jun 28, 2009 at 9:11 AM, chefsmart wrote:
>
> I'm seeing a lot of the following in my Django development server
> window lately: -
>
>
> [28/Jun/2009 18:33:42] "CONNECT mail.burst.idv.tw:25 HTTP/1.0" 500
> 41555
>
>
> Has anyone else seen this messages? What is this exactly? Is my
> compu
On Sat, Jun 27, 2009, Alex Gaynor wrote:
>Your issue is that you have a circular import: A imports B and B imports
>A. To get around this see: http://docs.djangoproject.com/en/dev/ref/
>models/fields/#lazy-relationships
Thanks, that was it. Is there some reason why Django doesn't throw up a
wa
You can try to import you model in another model and register it. The
problem tho is that you need to override the save() and delete()
method to reindex the search data.
If I think of a better idea, I'll let you know.
Francis
On Jun 27, 7:13 pm, fruity wrote:
> Hi to the list,
>
> I'm new to
I'm seeing a lot of the following in my Django development server
window lately: -
[28/Jun/2009 18:33:42] "CONNECT mail.burst.idv.tw:25 HTTP/1.0" 500
41555
Has anyone else seen this messages? What is this exactly? Is my
computer infected with some malware?
I would have been easy if it were a
On Jun 27, 8:56 pm, lzantal wrote:
> Hi,
>
> On Jun 27, 2009, at 10:55 AM, "Daniele Procida"
>
>
> > wrote:
>
> > I am wondering what sort of coding/storage approach to take to manage
> > contact details in a more sophisticated way.
>
> > For example, one person might need:
>
> > Phone (London
Well... Problem closed. I was trying to override things that I
shouldn't. Now I got the idea of returning manager by __get__ and
everything is just fine :)
On Jun 27, 11:13 pm, Vladimir Shulyak wrote:
> Hello,
>
> I am trying to develop sublcass of models.ManyToManyField. This class
> should ret
Try django-voting http://code.google.com/p/django-voting if you want
digg-like voting.
This app stores all votes in database, so it prevents user to "vote
up" multiple times.
Alternatively, you can develop it yourself. It's pretty
straightforward to implement imo. IP address comes with request ob
> It still surprises me that the tagging module does not live with the
> rest of Django as opposed to within Python.
Nothing unusual. Your django app lives in PYTHONPATH and other modules/
apps may live in libs directory as it is also in PYTHONPATH. You could
create any directory you like (with y
51 matches
Mail list logo