Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Piotr Zalewa
Everything has its place. For me it looks like that: direct help - IRC searching for solutions - tutorials, documentation, django snippets discovering new stuff - email list, StackOverflow zalun On 07/02/11 01:11, Andre Terra wrote: To be honest, I often think about how an e-mail list is actua

Re: Managing objects spred among several tables/databases.

2011-07-01 Thread Hummingbird
Hi ! I have a similar situation. (disclaimer:-- I have tried turbogears & web2py before. But could not find the following functionality there. So I have signed-in here to see whether I can get it in django). My form is composed of fields from various tables. When a user interacts with form, he/she

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Geoff Kuenning
If your mail reader reformats text, IMHO it's broken. At a minimum, it ought to give you the option of seeing a message without "helpfully" reformatting it. I see little harm in asking (politely) that people go through the significant hassle of posting code in two places (one of which may be inac

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Andre Terra
To be honest, I often think about how an e-mail list is actually one of the worst media to help with coding. Here's some food for thought: wouldn't it be better if we had a django-help project that combined django snippets, a stack overflow-like ratings system (an incentive to both good questions

Re: Weird join conditions

2011-07-01 Thread Michal Petrucha
> Example, yes. As Haroon said, it is LEFT OUTER JOIN. Yeah, of course, must have been the lack of caffeine as I said. (-: > Unfortunately, join and friends are off use because SQLCompiler's > get_from_clause() creates join conditions on dumb string template. > I monkeypatched compiler's get_fro

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Cal Leeming [Simplicity Media Ltd]
Also, I modified the wiki entry to include one good/one bad example of a thread. Could others people also contribute some examples of what they consider good/bad threads too? (maybe could even put some text underneath to explain why) On Fri, Jul 1, 2011 at 10:46 PM, Cal Leeming [Simplicity Media

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Cal Leeming [Simplicity Media Ltd]
+1 on gists (i didn't even know this existed). Because to be honest, if github disappears, then something has gone terribly wrong with the interwebs :X But also +1 on django web team deploying their own... On Fri, Jul 1, 2011 at 5:46 PM, Micky Hulse wrote: > Don't forget about GitHub Gists! >

Re: Django AJAX polling: Best practice?

2011-07-01 Thread Andreas Pfrengle
Thanks so far for showing me that I was on the completely wrong track ;-) I found that there is really not much official information available about Hookbox: . That doesn't make an easy decision for Hookbox. Has anyone experience with socket.io and gevent instead? Looks intere

ListView.get_context_data Exception

2011-07-01 Thread Brian Bouterse
I implemented a silly thing that ended up getting reworked because I couldn't make Django work in the way my (silly) design wanted it to. Here was the situation: 1. I wrote a class based (Django 1.3) view named HomepageViewthat inherited from ListView 2. I defined

Re: Global generic files? Best practice(s)?

2011-07-01 Thread Micky Hulse
Hello again Andre! On Fri, Jul 1, 2011 at 7:58 AM, Andre Terra wrote: > The standard really seems to be having a 'templates' folder for each app, > but I think I did the same in my first 'hello world' project. That's good to hear! :) That's what I have been doing for all of my recent apps: app

Re: forms and form processing

2011-07-01 Thread urukay
Hi Jay, take a look here, it is explained pretty well https://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#email-backend If don't have own SMTP server, you can try to use Google's SMTP server. Radovan http://www.yau.sk On 30. Jún, 21:06 h., "jay K." wrote: > Hello, > > thanks for t

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Micky Hulse
Don't forget about GitHub Gists! https://gist.github.com/ Considering a lot of Django projects are already hosted there... Seems like a natural fit to me. :) Also, Gist has the "fork" feature. -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Weird join conditions

2011-07-01 Thread peroksid
Unfortunately, join and friends are off use because SQLCompiler's get_from_clause() creates join conditions on dumb string template. I monkeypatched compiler's get_from_clause in connection.ops._cache. Now it calls original method saved under another name on compiler and after that replaces join c

Re: Global generic files? Best practice(s)?

2011-07-01 Thread Andre Terra
On Fri, Jul 1, 2011 at 3:32 AM, Micky Hulse wrote: Hello Andre! Thanks so much for your help, I really appreciate the pro > advice!!! :) > I'm not sure it's pro, but I'm glad to help :) > On Thu, Jun 30, 2011 at 6:01 AM, Andre Terra > wrote: > > __init__.py > > app1/ > > app2/ > > appN/ > >

OT: Drummers / Percussionists

2011-07-01 Thread Tim Sawyer
Hi Folks, I'm in the process of building a Django site to host my drum/percussion tutor books, and could do with some testers with multiple browsers and OSes to have a go and tell me what works and what doesn't. The site allows playback of the percussion music "karaoke" style - see the homep

Re: JQuery .load() works in production but fails in development

2011-07-01 Thread Joe Linoff
Hi Folks: I figured it out. The idea is NOT to use CGI. It is not needed. Simply use a Django WSGI URL to access the python module (in a view) and everything it works fine. It as blindingly obvious once I figured it out. Here is what I did to get it to work: 1. Added a new URL called '/stat

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Cal Leeming [Simplicity Media Ltd]
Or, how about the django website team create their own pastebin for django mailing lists :) They could even just use a stock pastebin install. Any thoughts? On 1 Jul 2011 13:23, "Herman Schistad" wrote: > Yeah, I forgot that dpaste deleted after 7 days, but pastebin is a > good proposal Brian. > >

Re: More than one project using the same database

2011-07-01 Thread Cal Leeming [Simplicity Media Ltd]
(sorry this email bounced yesterday) OP: in a nutshell, unless you fully understand the risks, you should avoid doing this on a site which is in production. However, this would be a great opportunity to learn about this subject in a dev environment. After all, thats how i learnt (except i made the

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Herman Schistad
Yeah, I forgot that dpaste deleted after 7 days, but pastebin is a good proposal Brian. We could also recommend people to paste the code in both pastebin and email, as the probability of someone taking the time to read through the code then becomes higher (I know I would much rather click on a pas

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Brian Bouterse
Just because dpaste breaks integrity of django-users doesn't mean that e-mail is the "right" forum. E-mail doesn't preserve code formatting or syntax highlighting which is legitimately annoying. Also lots of coders still use text based e-mail (I don't but others do) so html syntaxing won't always

Re: Django AJAX polling: Best practice?

2011-07-01 Thread Duane Griffin
On 30 June 2011 21:31, Shawn Milochik wrote: > This isn't a job for AJAX -- it's a job for Comet, which is tailor-made for > your exact needs. Yes. Have your clients subscribe to an update channel for the game (you will probably need separate channels for each user, unless all players have full i

Aw: Different urlpatterns for different subdomains

2011-07-01 Thread Juergen Schackmann
maybe that helps: https://github.com/jezdez/django-hosts -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/dUDV20f2CsUJ. To post to this group, send email to

Re: More than one project using the same database

2011-07-01 Thread patrickf
I agree with Andres; based on your description, you should be able to do this with no issues. We are using a legacy database system with 15 years worth of company data - constantly updated by a legacy web based app (written in delphi) - and have adding new functionality via django (both reading and

Re: Managing objects spred among several tables/databases.

2011-07-01 Thread Hummingbird
I have a somewhat similar situation. In my form, fields from various database tables are combined. A user may add/edit/delete/doesn't change fields. While saving the form, the logic should check-- 1) which table(s) would require add SQL statement, 2) which table(s) require update stmt, 3) which on

access fields in intermediate model

2011-07-01 Thread feng yu
http://stackoverflow.com/questions/2005953/django-access-fields-in-intermediate-model in this post, you can find how to access fields in intermediate model like this 'my_group.membership_set.all()' i use this in my own code, but it did not work. it get ' [] ' my models is very likely with the mo

Stay on a step in a form wizard until the user is ready to move on.

2011-07-01 Thread Levi Campbell
I'm working on a site that uses a form wizard as the main user interface. I've got one step however that I'd like to have a user be able to complete it several times if needed, storing the data bound to the user's session. Is there a way to do this using the FormWizard class, or am I asking too

Re: How to use the django-users mailing list properly and doing your homework..

2011-07-01 Thread Russell Keith-Magee
On Friday, July 1, 2011, Herman Schistad wrote: > What about including something about e.g. http://dpaste.com for snippets etc. > I know I hate to read more than 10 lines of code in my email reader, > without syntax highlighting or correct indentation. Actually, there is a really good reason not

dajngo TabularInline fixed objects

2011-07-01 Thread Mateusz Harasymczuk
Is there a way to declare a set of fixed objects in TabularInline? I have: Contract object (with user data, user address and stuff) and tabular inline added months. months names are fixed, and there is some data to change for each month I have done this with JavaScript, setting value of each f

Re: db shardning

2011-07-01 Thread Mateusz Harasymczuk
anyone? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/lv8Uuskxkx0J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe fro

Re: More than one project using the same database

2011-07-01 Thread ALJ
Hi all and thanks for the feedback. I'll elaborate on my situation. The sites have different uses but they use exactly the same models. Infact the second site has no model.py of its own. The second site's views simply import the required models from the first site and, where possible, uses the sam

Re: OperationalError: no connection to the server using Django and gunicorn

2011-07-01 Thread Андрей Махнач
I'm getting this error randomly and it throws 500error to nginx (I'm using nginx+gunicorn) and it appears really randomly ;) On Jul 1, 10:16 am, Adrián Ribao Martínez wrote: > I think that the error comes only when starting the server. > > Reload the page about 10 times and check if you still ge

Re: E-store

2011-07-01 Thread Kai Diefenbach
On 2011-06-28 15:34:34 +0200, lillian cauldwell said: How does one set up an e-store on their d'jango website? You can use several shop solutions: http://djangopackages.com/grids/g/ecommerce/ You can read following book (I haven't read it) and build your own solution: http://django-ecom

Re: Weird join conditions

2011-07-01 Thread peroksid
On 1 июл, 01:35, Michal Petrucha wrote: > On Thu, Jun 30, 2011 at 02:13:05PM -0700, peroksid wrote: > > Thank you, Michal, > > > Unfortunately, I need join condition, not a WHERE clause, which can be > > easily extended with extra() method arguments. > > It is not my bad mood, simply the same co

Re: OperationalError: no connection to the server using Django and gunicorn

2011-07-01 Thread Adrián Ribao Martínez
I think that the error comes only when starting the server. Reload the page about 10 times and check if you still get the error. Regards, Adrián > Hi Adrian, > > Have you solved this weird issue? > > if yes, please tell me how. > > Best regards, > Andrey Makhnach > > On May 27, 12:53 pm, Ad