Re: Tests got ~10x slower after upgrading to Django 1.3

2011-06-24 Thread Cesar Canassa
For the record, here is the ticket: https://code.djangoproject.com/ticket/16329 Best regards, Cesar Canassa 2011/6/24 Russell Keith-Magee > On Fri, Jun 24, 2011 at 2:08 PM, Cesar Canassa > wrote: > > I think I solved this! The reason why the test cases were taking so long > was > > because Dj

Re: What are the advantages of Model inheritance?

2011-06-24 Thread bruno desthuilliers
On Jun 23, 11:40 pm, Micky Hulse wrote: > On Thu, Jun 23, 2011 at 2:17 PM, bruno desthuilliers > > wrote: > > FWIW, I have been using model inheritance - abstract and concrete - in > > half a dozen projects, with about 30 model subclasses in one of them, > > and it JustWorks(tm). > > That sounds

Re: django 1.3 timing out on empty POST request

2011-06-24 Thread Ivo Brodien
On Jun 24, 2011, at 2:40 AM, mehdi ait oufkir wrote: > block = getattr(request, POST, { }) shouldn’t it be: block = getattr(request, ‘POST', { }) ? What are you trying to do? Can you post the rest of the view function? -- You received this message because you are subscribed to the Google

Making an operation before and after a recording in the model.

2011-06-24 Thread Bussiere
Hello, this is my first message here. I have a question : I have a actor object in my model, and a webpage in my model. And i want that when a user record an actor in the admin interface it create automatically a webpage associated wit(h the actor. I now how to create the webpage in my model, bu

Re: Making an operation before and after a recording in the model.

2011-06-24 Thread Simone Dalla
2011/6/24 Bussiere > Hello, > this is my first message here. > I have a question : > > I have a actor object in my model, and a webpage in my model. > > And i want that when a user record an actor in the admin interface it > create automatically a webpage associated wit(h the actor. > I now how t

Re: How to use the foreign key to get the exact row of that particular table ?

2011-06-24 Thread Daniel Roseman
On Thursday, June 23, 2011 11:27:53 PM UTC+1, Satyajit Sarangi wrote: > > My models.py is this > > class PermiLayer(models.Model): > user = models.ForeignKey(User) > table = models.ForeignKey(ContentType) > permi = models.IntegerField() > > My views.py is this > > perm.table = >

Re: How to use the foreign key to get the exact row of that particular table ?

2011-06-24 Thread Tom Evans
On Thu, Jun 23, 2011 at 11:27 PM, Satyajit Sarangi wrote: > My models.py is this > > class PermiLayer(models.Model): >    user = models.ForeignKey(User) >    table = models.ForeignKey(ContentType) >    permi = models.IntegerField() > > My views.py is this > > perm.table = > ContentType.objects.get

Re: Making an operation before and after a recording in the model.

2011-06-24 Thread Masklinn
On 2011-06-24, at 10:47 , Simone Dalla wrote: > 2011/6/24 Bussiere > >> Hello, >> this is my first message here. >> I have a question : >> >> I have a actor object in my model, and a webpage in my model. >> >> And i want that when a user record an actor in the admin interface it >> create autom

Re: Creating simple view app based on Admin site

2011-06-24 Thread Ivo Brodien
Some time ago I ran into similar questions and what I found out is: the bottom line: the admin is intended for admins and stuff, not users. That is people you trust, so you should never enable admin access for regular users. So I guess you are on the right way with copying from the admin views

Re: templatetags and refresh

2011-06-24 Thread Wim Feijen
Thanks! That helped. :) The code for the tag was as follows: import re from django.template import Variable, VariableDoesNotExist, Node, Library, Template, TemplateSyntaxError, Context, loader from django.conf import settings from django.utils.safestring import mark_safe from django.utils.html

Re: Making an operation before and after a recording in the model.

2011-06-24 Thread bussiere bussiere
Thanks a lot i've watched the signals but this way is much much easier Thanks a lot Bussiere "Les nouvelles technologies offrent pleins de nouvelles possibilités, pleins de possibilités d'erreurs surtout en fait." insurance.aes256 : http://goo.gl/gHyAY On Fri, Jun 24,

Re: Making an operation before and after a recording in the model.

2011-06-24 Thread bussiere bussiere
Yes signals was a way to do it but it didn't clearly understood how it works. Signals are interesting but i didn't manage to make them works for the moment. But i will make more search on it. Thanks and regards Bussiere "Les nouvelles technologies offrent pleins de nouvelles possibilités, ple

Re: Making an operation before and after a recording in the model.

2011-06-24 Thread bruno desthuilliers
On Jun 24, 10:51 am, Masklinn wrote: > On 2011-06-24, at 10:47 , Simone Dalla wrote: > > > 2011/6/24 Bussiere > >>> And i want that when a user record an actor in the admin interface it >>> create automatically a webpage associated wit(h the actor. >>> I now how to create the webpage in my model,

django's management functionsdon't seem to work with py2exe.

2011-06-24 Thread Gelonida
Hi, I'm using django 1.3 I tried to create a tiny django app with management functions and to create an executable from it. When trying to call syncdb with following code. import django.core.management as management management.call_command('syncdb') However the way, that django tries to lo

Re: templatetags and refresh

2011-06-24 Thread bruno desthuilliers
On Jun 24, 11:57 am, Wim Feijen wrote: > > Looking at it again, I saw what was wrong and fixed it! For > completeness, I moved the NewsItem query within the NewsItemBlockNode FWIW, code at the module top-level is only executed when the module is first imported. Now you'll know ;) > and everythin

Re: Social Networking basics? -Raj

2011-06-24 Thread Derek
> >>> We should distill it into a shorter, newbie-friendly version and get it > >>> posted somewhere official so we can refer to it. > > > I find this document[0] to be really nice, helpful and without that > particular tone. > > Someone from Python Argentina (PyAR) translated it to Spanish and it

Re: Social Networking basics? -Raj

2011-06-24 Thread Kenneth Gonsalves
On Fri, 2011-06-24 at 03:53 -0700, Derek wrote: > > Someone from Python Argentina (PyAR) translated it to Spanish and it > > is what we use to guide newcomers. > > > > [0]http://www.mikeash.com/getting_answers.html > > +1 for the Mike Ash guide - it seems to cover all the keypoints. > So... if som

Split up .po files for Internationalization

2011-06-24 Thread Thomas M
Hello django users, I want to use the django internationalization module to translate stuff. The problem is the large .po file with all the django related stuff the translator shouldnt see. Is there a way to split up those .po files so we've got a file with only our translations? Thank you in adv

Re: Social Networking basics? -Raj

2011-06-24 Thread Kenneth Gonsalves
On Fri, 2011-06-24 at 13:40 +0200, Herman Schistad wrote: > So maybe make a google guide with smart keywords to add, like: actually duckduck.go is far smarter than google for opensource. -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received

Re: Split up .po files for Internationalization

2011-06-24 Thread Kenneth Gonsalves
On Fri, 2011-06-24 at 04:54 -0700, Thomas M wrote: > I want to use the django internationalization module to translate > stuff. The problem is the large .po file with all the django related > stuff the translator shouldnt see. > Is there a way to split up those .po files so we've got a file with >

Using distinct and ordering

2011-06-24 Thread Chris Matthews
Hi, I had a problem with using distinct() which was not so distinct. It was because I did not specify an order_by() and the underlying ordering column on the model was in values(). It also selects my ordering column (SQL needs it for the ordering) and the SQL DISTINCT is applied at row level.

Re: manytomany query problem

2011-06-24 Thread Alex Grigorievskiy
Hi, Tony, I would do something like this: # b2 makes a connection b_qs = b.objects.filter(b_rel=b2) # - all friends of b2 iter = ( a_inst.b_set & b_qs for a_inst in a.objects.all() ) # here we make an iterator which give you a queryset of the intersection of a.b_set and friends of b2. On Jun 24,

Re: manytomany query problem

2011-06-24 Thread Nikhil Somaru
When you say 'filter' do you mean that you want some objects removed (i.e. filtered), or, do you mean that you want all the A's returned to be in a list that is sorted? On Fri, Jun 24, 2011 at 5:55 AM, Tony wrote: > Nikhil, > This email will be significantly shorter than the one I wrote 5 > minu

Re: Ann: DSE v.3.0.0 Beta #1

2011-06-24 Thread Cal Leeming
This is all great news :) Thomas, perhaps we should each make a proposal as to how we envisage this in the core, and submit to the list. Ill prob have some spare time to write something up after the webcast. That way we have two different approaches to choose/cherry pick from :) Russ, thanks for l

Re: Split up .po files for Internationalization

2011-06-24 Thread Thomas M
I've copied the contents of the django-site packages to my project root. It was explained somewhere in this tutorial: https://docs.djangoproject.com/en/1.3/topics/i18n/localization/ so I can just create my own locale files in projectpath/locale/LANG/ LC_MASSAGES/? like: projectpath/locale/LANG/LC_

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-24 Thread Alex Grigorievskiy
Hi, Cal and everybody, I'd like to see the webcast too, thanks very much for that :) On Jun 23, 2:50 am, "Cal Leeming [Simplicity Media Ltd]" wrote: > Nice! > > On Wed, Jun 22, 2011 at 11:39 PM, Thomas Weholt > wrote: > > > > > > > > > > > On Wed, Jun 22, 2011 at 4:47 PM, Cal Leeming [Simplicity

Re: Split up .po files for Internationalization

2011-06-24 Thread Kenneth Gonsalves
On Fri, 2011-06-24 at 05:43 -0700, Thomas M wrote: > It was explained somewhere in this tutorial: > https://docs.djangoproject.com/en/1.3/topics/i18n/localization/ > so I can just create my own locale files in projectpath/locale/LANG/ > LC_MASSAGES/? yes - that is what the docs say > > like: > pr

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-24 Thread bruno desthuilliers
+1 -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group a

Re: Ann: DSE v.3.0.0 Beta #1

2011-06-24 Thread Thomas Weholt
On Fri, Jun 24, 2011 at 2:40 PM, Cal Leeming wrote: > This is all great news :) Thomas, perhaps we should each make a proposal as > to how we envisage this in the core, and submit to the list. Ill prob have > some spare time to write something up after the webcast. That way we have > two different

Re: Split up .po files for Internationalization

2011-06-24 Thread Thomas M
Great, putting it into the app directories worked fine and solved the import error as well. Thank you very much. Thomas M On 24 Jun., 14:58, Kenneth Gonsalves wrote: > On Fri, 2011-06-24 at 05:43 -0700, Thomas M wrote: > > It was explained somewhere in this tutorial: > >https://docs.djangoprojec

Re: Django password_change

2011-06-24 Thread Mark L.
Thanx for the responses guys. This is what solved my problem. #url.py (r'^accounts/password/change/$', 'password_change', {}, 'password_change_form'), (r'^accounts/password/done/$', 'password_change_done', {}, password_change_done'), ...and added password_change_form.html and password_change_do

Re: templatetags and refresh

2011-06-24 Thread Wim Feijen
Thanks Bruno for your detailed advice and attention! I agree wholeheartedly. Wim On Jun 24, 12:53 pm, bruno desthuilliers wrote: > On Jun 24, 11:57 am,WimFeijen wrote: > > > > > Looking at it again, I saw what was wrong and fixed it! For > > completeness, I moved the NewsItem query within the N

Re: Newbie question, I'm having difficulty getting the admin panel to work!

2011-06-24 Thread Rishi
Thanks for trying to help me out, Eiji. I tried adding the Alias in the apache configuration file and changing settings.py, but to no avail. I still get the same error. What happens, specifically, is that when I go to the django project page, everything seems to work, I get the same light blue l

Re: Creating an instance of a subclass when superclass instance already exists

2011-06-24 Thread Bill Freeman
So long as it *IS* one to one. I.e.; there are no Word-s that are both a Verb and a Noun. I'd sill go with a foreign key field in Verb (and Noun, etc.) referring to Word. I think that you can even mark it unique, meaning that only one Verb can refer to any given Word, but both a Noun and a Verb

Re: Creating an instance of a subclass when superclass instance already exists

2011-06-24 Thread Tom Evans
On Fri, Jun 24, 2011 at 3:15 PM, Bill Freeman wrote: > So long as it *IS* one to one.  I.e.; there are no Word-s that are both a > Verb and a Noun. > > I'd sill go with a foreign key field in Verb (and Noun, etc.) > referring to Word.  I > think that you can even mark it unique, meaning that only

Re: Creating an instance of a subclass when superclass instance already exists

2011-06-24 Thread Bill Freeman
Sorry. I'd been thinking in terms of a not null constraint and confusing myself that it would apply in both directions. Bill On Fri, Jun 24, 2011 at 10:25 AM, Tom Evans wrote: > On Fri, Jun 24, 2011 at 3:15 PM, Bill Freeman wrote: >> So long as it *IS* one to one.  I.e.; there are no Word-s th

Re: Split up .po files for Internationalization

2011-06-24 Thread Gelonida
On 6/24/2011 1:54 PM, Thomas M wrote: Hello django users, I want to use the django internationalization module to translate stuff. The problem is the large .po file with all the django related stuff the translator shouldnt see. Is there a way to split up those .po files so we've got a file with

Re: templatetags and refresh

2011-06-24 Thread bruno desthuilliers
On Jun 24, 4:02 pm, Wim Feijen wrote: > Thanks Bruno for your detailed advice and attention! > Sorry I didn't have time to provide relevant pointers (which I usually do) :-/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Split up .po files for Internationalization

2011-06-24 Thread Tom Evans
On Fri, Jun 24, 2011 at 3:45 PM, Gelonida wrote: > Perhaps I'm wrong, but I thought it's enough to just create a > locale//LC_MESSAGES/django.po file > in your project tree > > and then call manage.py makemessages -s -l > You shouldn't be manually creating these files at all, django provides too

Re: mach-o, but wrong architecture

2011-06-24 Thread John
So the documentation is incorrect? It claims that it is multi-process safe. On Jun 23, 6:53 pm, Malcolm Box wrote: > Re your cacheing problem the behaviour you are seeing is exactly what would > be expected using locmem cache. > > Apache is presumably running multiple processes each of which wi

Re: mach-o, but wrong architecture

2011-06-24 Thread Andy Dustman
"Safe" probably means "it won't crash". On Fri, Jun 24, 2011 at 11:03 AM, John wrote: > So the documentation is incorrect? > > It claims that it is multi-process safe. > > On Jun 23, 6:53 pm, Malcolm Box wrote: >> Re your cacheing problem the behaviour you are seeing is exactly what would >> be

Re: Split up .po files for Internationalization

2011-06-24 Thread Stuart MacKay
If you split your translation strings into separate files, e.g. locale//LC_MESSAGES/model.po locale//LC_MESSAGES/forms.po manage.py compilemessages will compile them successfully to create .mo files BUT django (1.3) will not load them. It expects to see ONE file called django.mo - it will not

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-24 Thread Nolan Brubaker
Yes, very interested. +1 On Fri, Jun 24, 2011 at 9:04 AM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > +1 > > -- > 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.c

Re: Split up .po files for Internationalization

2011-06-24 Thread Herman Schistad
On Fri, Jun 24, 2011 at 17:06, Stuart MacKay wrote: > A possible step would be to split the files then simply concatenate them > together, using a custom management command, before calling compilemessages. > That would make it easier to manage the translations but at the cost of an > extra step in

Help selecting info from across databases in queries.

2011-06-24 Thread Chris McComas
Here are my models: http://dpaste.com/558411/ I'm wanting to run a query on the Team model that gets every game from Games where the team's opponent was in the Coaches Poll Top 25. So, the view is getting: team = Team.objects.get(pk=team_id) On this page, it'll display team info (I cut out loc

Re: mach-o, but wrong architecture

2011-06-24 Thread Tom Evans
On Fri, Jun 24, 2011 at 4:03 PM, John wrote: > So the documentation is incorrect? > > It claims that it is multi-process safe. > MP/MT safe means it won't experience race conditions that cause it to crash when run MP/MT. Right under the line that says it is MP-safe there is this paragraph: """

Re: registering unzipped files on the local disk

2011-06-24 Thread Faheem Mitha
On Sun, 19 Jun 2011, francescortiz wrote: Faheem, In your post you write: "This works, but I traced through the code, and found that the code was using streaming, when clearly the optimal thing to do in this case would be to just copy the file from the temporary location to the permanent lo

upload file isn't working

2011-06-24 Thread raj
# models.py # def content_file_name(instance, filename): return '/'.join(['uploads', instance.user.username, 'docs', filename]) class upload_model(User): user = models.ForeignKey(User, related_name = 'user_upload') title = models.CharField(max_length = 50) doc = models.FileField(u

Re: djangoproject.com/community feeds not updating for a couple days

2011-06-24 Thread swiharta
Thanks Russ. I notice it updated at least once after I posted here, now it's been stalled again for the past couple days. -- 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 unsu

Re: upload file isn't working

2011-06-24 Thread raj
another thing is the fact that the file name isn't changing, even though I'm trying to change it. On Jun 24, 12:36 pm, raj wrote: > # models.py # > > def content_file_name(instance, filename): >     return '/'.join(['uploads', instance.user.username, 'docs', > filename]) > > class upload_model(Us

Re: django 1.3 timing out on empty POST request

2011-06-24 Thread mehdi ait oufkir
Sorry for the typo, in the previous post. here is the full method (in comes from piston's code). def cleanup_request(request): """ Removes `oauth_` keys from various dicts on the request object, and returns the sanitized version. """ for method_type in (

Re: Making command-line clients to Django data

2011-06-24 Thread Jeff Blaine
Just a follow-up: Well, I took your advice and did it via manage command(s) with wrapper scripts for the users. It's working well so far. I do wish I had a clearer understanding of what the downside to the "standalone" method is, but I suspect I will never know unless I go out of my way and t

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-06-24 Thread Cal Leeming [Simplicity Media Ltd]
Really glad to see there has been so much interest in this! If possible, can everyone please use the following form to indicate what week day / timeslot they are available, along with their screen resolution. This will be open until 1st July. https://spreadsheets0.google.com/spreadsheet/viewform?

Re: Making command-line clients to Django data

2011-06-24 Thread Cal Leeming [Simplicity Media Ltd]
On Fri, Jun 24, 2011 at 7:18 PM, Jeff Blaine wrote: > Just a follow-up: > > Well, I took your advice and did it via manage command(s) with wrapper > scripts > for the users. It's working well so far. I do wish I had a clearer > understanding > of what the downside to the "standalone" method is,

Re: django 1.3 timing out on empty POST request

2011-06-24 Thread bruno desthuilliers
On Jun 24, 7:19 pm, mehdi ait oufkir wrote: > >     def cleanup_request(request): >         """ >         Removes `oauth_` keys from various dicts on the >         request object, and returns the sanitized version. >         """ >         for method_type in ('GET', 'PUT', 'POST', 'DELETE'):

Running multiple sites on the same python process

2011-06-24 Thread Plínio Silva
Hello, In our company we make news portals for a pretty big number of local newspapers (currently 13, going to 30 next month and more in the future), each with 2k to 100k page views/day. Since we are evolving from a situation where each site was heavily customized to one where each difference is a

'module' object has no attribute 'Manipulator'

2011-06-24 Thread CareerDhaba tech
Hey, I am very new to Django just started working around with forms. I have been facing difficulty in getting a user registered. Anyways i was following steps given in James Bennet blog. http://www.b-list.org/weblog/2006/sep/02/django-tips-user-registration/ I have defined my classes, forms simi

Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2011-06-24 Thread Kyle Gong
For some reason, I can't get my server to send 500 or 404 emails. I am set up to send email through gmail, and it is working properly when I send error emails through a logger set up using django.utils.log.AdminEmailHandler, and also when I send mail using django.core.mail.EmailMessage. I have DE

Re: Split up .po files for Internationalization

2011-06-24 Thread Gelonida
Hi Tom, Thanks for rectifying my answer. On 6/24/2011 5:01 PM, Tom Evans wrote: On Fri, Jun 24, 2011 at 3:45 PM, Gelonida wrote: Perhaps I'm wrong, but I thought it's enough to just create a locale//LC_MESSAGES/django.po file in your project tree and then call manage.py makemessages -s -l

Re: 'module' object has no attribute 'Manipulator'

2011-06-24 Thread Jacob Kaplan-Moss
On Fri, Jun 24, 2011 at 3:00 PM, CareerDhaba tech wrote: > I am very new to Django just started working around with forms. I have been > facing difficulty in getting a user registered. Anyways i was following > steps given in James Bennet blog. > > http://www.b-list.org/weblog/2006/sep/02/django-t

Re: 'module' object has no attribute 'Manipulator'

2011-06-24 Thread CareerDhaba tech
Thanks Jacob for the reply although u didn't answer giving a reason for the error. Well that's where i started, have gone through the basic docs for forms/models etc. I have worked with many other forms, all kinds of models of data and saving them to database etc. The only problem i am facing is wh

Re: mach-o, but wrong architecture

2011-06-24 Thread John
I don't seem to be able to take a trick on this one. Tried using MacPorts to install python27 and py27-mysql (had to reinstall XCode for some reason) and it tells me that it cant find a dependency of python_select, but apparently python_select has been deprecated. Do you know a way around this? O

Re: mach-o, but wrong architecture

2011-06-24 Thread Andy Dustman
I think this is the answer: http://stackoverflow.com/questions/6152765/macports-didnt-place-python-select-in-opt-local-bin On Fri, Jun 24, 2011 at 4:42 PM, John wrote: > I don't seem to be able to take a trick on this one. > Tried using MacPorts to install python27 and py27-mysql (had to > reinst

Re: 'module' object has no attribute 'Manipulator'

2011-06-24 Thread Tim Shaffer
On Friday, June 24, 2011 4:30:13 PM UTC-4, django_cd wrote: > > Thanks Jacob for the reply although u didn't answer giving a reason for the > error. > The reason for the error is that you are using a different version of Django than that tutorial was written for. That tutorial is from 2006 and

Re: mach-o, but wrong architecture

2011-06-24 Thread John
I think I am still missing something, guess I am not overly familiar with the Port syntax. I have python2.7 installed, but not using Port, I get this problem if I try and select python27, it seems like a chicken and egg situation John-Paynes-MacBook-Pro:~ jpayne$ sudo port select python python27

New to Django

2011-06-24 Thread sony
hi all, I am new to Django and I want to make it do the following thing: I have a file parser.py created externally. Where do I place it in the folder hierarchy in eclipse Django project ( under a new application or ne where else) I need to call this file and the output given by it has to be inser

Re: New to Django

2011-06-24 Thread Javier Guerra Giraldez
On Fri, Jun 24, 2011 at 3:52 PM, sony wrote: > I need to call this file and the output given by it has to be inserted > into a database table which I have already created using the models.py > file. when do you want this to be called? on response by a web request? at a certain hour every day?

Re: mach-o, but wrong architecture

2011-06-24 Thread Andy Dustman
Only thing I can think of is maybe ports itself or some other port is not up-to-date. On Fri, Jun 24, 2011 at 5:45 PM, John wrote: > I think I am still missing something, guess I am not overly familiar > with the Port syntax. > > I have python2.7 installed, but not using Port, I get this problem

Re: Strip_tags and non english char issue

2011-06-24 Thread ydjango
Just checking if anyone has any pointers? We are using Django 1.1.4 On Jun 15, 2:03 pm, ydjango wrote: > I have rich text (in utf8) which I want to show in standard browser > tooltip. > > I strip html tags using strip_tags as they show as html tags in > tooltip. > > Issue is that it seems strip_t

Django widget popup

2011-06-24 Thread GKR
i tried to use sontek / *django-tekextensions( https://github.com/sontek/django-tekextensions ) for popup widget *but cannot follow what Model.object should be given in forms.py. #forms.pyfrom app.widgets import SelectWithPopUp class CustomForm(forms.Form): selectfield = forms.ModelChoic

Re: Newbie question, I'm having difficulty getting the admin panel to work!

2011-06-24 Thread Eiji Kobayashi
Hi Rishi, STATIC_ROOT, STATIC_URL, etc. are somewhat new additions to Django. I have troubles with the documentation myself because the new ones describing them are in English :). But I think everything that they considered static - javascript, css, img, and other media were to be inside a directo

Re: Newbie question, I'm having difficulty getting the admin panel to work!

2011-06-24 Thread Nan
The sporadicness may have to do with the way it's being served -- that happens to me when running via FCGI if I save a change but don't restart the process. Depending on your server setup, that may mean touching the WSGI file or touching another special file or restarting your Apache process or s

Re: Django widget popup

2011-06-24 Thread GKR
Please help -- 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/-/2rChkYMaGMAJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe

Re: Django won't send 500 or 404 emails, but django.core.mail.EmailMessage and django.utils.log.AdminEmailHandler work

2011-06-24 Thread Russell Keith-Magee
On Saturday, June 25, 2011, Kyle Gong wrote: > For some reason, I can't get my server to send 500 or 404 emails.  I > am set up to send email through gmail, and it is working properly when > I send error emails through a logger set up using > django.utils.log.AdminEmailHandler, and also when I sen

Re: Inconsistent keyword filtering on FK

2011-06-24 Thread Karen Tracey
On Thu, Jun 23, 2011 at 5:16 PM, EAMiller wrote: > I'm getting a 'cannot resolve keyword' on a objects.filter that > doesn't seem to make sense. > Might be: https://code.djangoproject.com/ticket/11448 Karen -- http://tracey.org/kmt/ -- You received this message because you are subscribed to

Re: Newbie question, I'm having difficulty getting the admin panel to work!

2011-06-24 Thread Eiji Kobayashi
Ah, yes. You may be right. It may be a simple problem with a simple answer. Maybe I just over complicated things with too much words and explanation. Eiji On Fri, Jun 24, 2011 at 6:11 PM, Nan wrote: > > The sporadicness may have to do with the way it's being served -- that > happens to me when

Re: Newbie question, I'm having difficulty getting the admin panel to work!

2011-06-24 Thread Rishi
Thanks guys, I'll try this and get back to you! Rishi -- 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/-/Hu2mFOFBWckJ. To post to this group, send email to d

Use different forms for adding, changing, listing a model

2011-06-24 Thread Eiji Kobayashi
Hm... I asked a question similar to this, but no one responded :( But I think I over complicated the problem. Maybe I'll try simpler way. Suppose I have two models: 1) default Django user model 2) a simple custom model like this: class RegistrationQueue(models.Model): user = models.ForeignKey

Django-based RedirectAnywhere

2011-06-24 Thread Addy Yeow
RedirectAnywhere http://dazzlepod.com/redirect_anywhere/ is a small Django app that allows you to share blocked links, e.g. ThePirateBay links, on Facebook or on sites that are blocking them. Source code available http://djangosnippets.org/snippets/2470/ -- You received this message because you

Django Static Files

2011-06-24 Thread Kevin Anthony
I'm having a problem setting up my django static files, my static files root is at: /var/www/mysite/static/ here's my alias info AliasMatch ^/([^/]*\.css) /var/www/mysite/static/$1 Order deny,allow Allow from all This is from my settings.py STATIC_ROOT = '/var/www/mysite/static/' STATIC_

rss feed question

2011-06-24 Thread raj
I was trying to follow the following guide: https://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=olddocs and I had some questions. I'm not quite sure, but it seems like this guide is showing how to create your own feed. How would I go about retrieving the feed instead of creating it

Re: rss feed question

2011-06-24 Thread Kevin Anthony
http://www.feedparser.org/ On Sat, Jun 25, 2011 at 12:21 AM, raj wrote: > I was trying to follow the following guide: > https://docs.djangoproject.com/en/dev/ref/contrib/syndication/?from=olddocs > and I had some questions. > > I'm not quite sure, but it seems like this guide is showing how to >

Django Static Files

2011-06-24 Thread Andrew Brookins
If django srrvd -- 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/-/iD1QqxpokR8J. To post to this group, send email to django-users@googlegroups.com. To unsubsc

Django Static Files

2011-06-24 Thread Andrew Brookins
Sorry: posting from phones... Not always awesome. If the development server serves your static files, but Apache does not, then the problem is likely somewhere in your Apache conf or server config. -- You received this message because you are subscribed to the Google Groups "Django users" grou