Re: Django can't see my static files

2011-08-02 Thread Guillaume Chorn
Ok, so I did use quotes in my link, and I changed my STATIC_URL setting (in settings.py) from '/static/' to 'http://127.0.0.1:8000/static/' (I am currently using the built-in development server at this address), but still no luck. I'm not sure exactly what you mean by my "staticfiles settings."

Re: Django session + dynamic form + model form

2011-08-02 Thread sasa1...@gmail.com
Thank you, DR. But I tried that before and it did not work for some reason. It basically skips "if Answer.is_valid():" and goes to "else". voss You've defined your form to expect a `request` argument, but then you haven't passed that argument. answer = MyForm(request, request.GET or

Best practice when testing form values in a template?

2011-08-02 Thread Joshua Russo
Ok, so I've created a fairly simple form: class OrganizationItemForm(AuditModelForm): selected = forms.BooleanField() extraRequired = forms.BooleanField(widget=forms.HiddenInput) multiLineInfo = forms.BooleanField(widget=forms.HiddenInput) def __init__(self, *args,

Re: django-pdb on PyPI

2011-08-02 Thread Matt Schinckel
That's nice. I've figured out how to enable this and django-devserver (since they both override 'runserver', they clash). You can just install the middleware (dependent upon settings.DEBUG, naturally). Documentation patch forthcoming. Matt. -- You received this message because you are

Re: Help please xml2-config from libxml2

2011-08-02 Thread theseventhletter
thank you sir, that did the trick.. On Aug 3, 12:24 am, Carlos Daniel Ruvalcaba Valenzuela wrote: > Hello, your problem is most probably the lack of the development package for > libxml2, try installing the libxml2-dev package via apt-get command or > synaptic under Ubuntu.

Re: Constructing / rendering a complex

2011-08-02 Thread Sam Walters
Hi i dont see what is complex about this. On Wed, Aug 3, 2011 at 6:35 AM, Michał Sawicz wrote: > Hi all, > > I'd like to pick your brainz about how would you approach constructing > and rendering a complex table with headers, row/colspanning cells in a > most clean way that

Re: HttpRequest.META['SERVER_PORT'] is a string?

2011-08-02 Thread Thomas Orozco
Basically everything (ok, almost) in request.META is strings, so I guess it would be pretty consistent if for some reason server port wasn't. It's usually your job to normalize data that comes into your application anyways. Le 2 août 2011 23:04, "Roy Smith" a écrit : > I'm

Re: Django docs and GSoC doc summit

2011-08-02 Thread Russell Keith-Magee
On Tue, Aug 2, 2011 at 6:43 PM, eset wrote: > hi, > > I am new to the Django list but I am a django fan (we dev with Django > for www.booki.cc)... anyways I wanted to encourage the Doc team and > individuals on the list to apply for the GSoC Documentation Summit > (details

[django] Get request URL

2011-08-02 Thread He Jibo
Hi, Djangoers, I am trying to write a page rank banner. *I need your help on how to get the request UR*L. I want the function looks like this. If I put the following html snippet in a URL, for example, http://www.homesecurity361.com/index.html, I want the following code to show the page rank of

Re: Setting up multi-user site in Django without Admin access

2011-08-02 Thread Russell Keith-Magee
On Tue, Aug 2, 2011 at 11:53 AM, somecallitblues wrote: > Hey guys, > > I'm creating a site where multiple users will enter their details and > get access to admin I want to create from them .I want to use default > Django admin as a kind of Super User access for myself. I

Re: Django for a front end designer

2011-08-02 Thread paulo couto
Ok thanks for the clarifications : I guess i'll go to PHP for now and when i have more prog. experience i'll try python and django to be able to build my own stuff from scratch. Now i only need to find where to start in PHP :) Thanks all for your time. 2011/8/2 webcomm > On

Re: Dynamic page refreash

2011-08-02 Thread H . İbrahim Yılmaz
http://www.quackit.com/javascript/javascript_refresh_page.cfm 2011/8/2 lmcadory > I'm having this problem, my web design knowledge is limited and I'm > having a hard time searching for the solution (if there is one) > > The problem is this: > > I have a view that counts the

Re: Dynamic page refreash

2011-08-02 Thread bruno desthuilliers
On 2 août, 21:43, lmcadory wrote: > I fixed it. I needed to remove --noreload This doesn't fix anything - try to run it using anything but the test server and you'll have the same problem (or even worse in a multi- threading or multi-process environment). You actually have

Re: Django for a front end designer

2011-08-02 Thread webcomm
On Aug 2, 4:57 pm, "biofob...@gmail.com" wrote: > Thank you all for the advices/sugestions. > For what i read most of you advice on PHP + framework and i can > understand that. I looked at django and rails as a option for me to > have. My PHP knowledge is very limited, and

Re: how to create a hidden field

2011-08-02 Thread webcomm
On Aug 2, 4:56 pm, Brian Neal wrote: > Oh...you are trying to do this in the *admin*? Are you sure you just > don't need to "exclude" the form field? Yep, that's what I needed. I already had an admin class for the model, so it was just a matter of adding the line to exclude

HttpRequest.META['SERVER_PORT'] is a string?

2011-08-02 Thread Roy Smith
I'm running django 1.3. If I access HttpRequest.META['SERVER_PORT'], I get back a string (i.e. "80"). I was expecting an integer. Is this a bug (in which case I'll open a ticket to fix it) or it it intentional that it's returning a string (in which case I'll open a ticket to document it

Re: Dynamic page refreash

2011-08-02 Thread dirleyrls
I think you should open, count the lines of and close the file inside the view. The view code is executed once per request. I think that somethink like this will solve your problems: def test_results(request): infile = open('someFile.txt', 'r') # ... count the lines of the file

Re: Django for a front end designer

2011-08-02 Thread biofob...@gmail.com
Thank you all for the advices/sugestions. For what i read most of you advice on PHP + framework and i can understand that. I looked at django and rails as a option for me to have. My PHP knowledge is very limited, and sometimes i need some functionality on a wordpress site or on a textpattern one

Re: add a field to a form that isn't in a model

2011-08-02 Thread webcomm
I'm not sure that reference is going to answer my question but, in any case, there appears to be lots of good stuff in there. My old deskjet will hate me for printing that page out, but I better try. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: how to create a hidden field

2011-08-02 Thread Brian Neal
On Aug 2, 3:14 pm, webcomm wrote: > ... > Non-interactively, in the automatic admin, what I get is a visible > text input below the title field and above the summary field.  Here's > the relevant model and modelform:http://pastebin.com/azKgdraw > > -Ryan Oh...you are trying to

Constructing / rendering a complex

2011-08-02 Thread Michał Sawicz
Hi all, I'd like to pick your brainz about how would you approach constructing and rendering a complex table with headers, row/colspanning cells in a most clean way that rids the view of rendering as much as possible. Here's roughly what I'm after (incomplete, but you should see what I mean):

Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
On Aug 2, 3:38 pm, Daniel Roseman wrote: > by declaring that metadata explicitly: > >    1. In [2]: class MyTest(models.Model): >    2.    ...:     title=models.CharField(max_length=200) >    3.    ...:     class Meta: >       ...:         app_label = 'my_test' > Actually,

Re: how to create a hidden field

2011-08-02 Thread webcomm
> You still haven't shown that it doesn't hide the field, eg by posting > the output of frm.as_p(), where as I have shown conclusively that it > does, so I think something else is going on here. Are you sure the > field 'itemid' exists on your model? Thanks Tom. The field itemid does exist in

django-pdb on PyPI

2011-08-02 Thread Tom Christie
I've thrown up the django-pdb package on PyPI - hopefully some of y'all will find it a useful little tool. PyPI: http://pypi.python.org/pypi/django-pdb/0.1.1 GitHub: https://github.com/tomchristie/django-pdb Suggestions and contributions are of course very welcome. Here's the basic README...

Re: add a field to a form that isn't in a model

2011-08-02 Thread Shawn Milochik
I have no template for the form. I'm using the automatic admin. Then that's a whole different issue. https://docs.djangoproject.com/en/1.3/ref/contrib/admin/ Check this out, and read up on how to specify your own form. -- You received this message because you are subscribed to the

Re: add a field to a form that isn't in a model

2011-08-02 Thread webcomm
On Aug 2, 12:40 pm, Shawn Milochik wrote: > You don't need to add the fields to your model. If the extra fields > don't appear on your page it's probably because you didn't add them to > the template. I have no template for the form. I'm using the automatic admin. -- You

Re: Dynamic page refreash

2011-08-02 Thread lmcadory
I fixed it. I needed to remove --noreload -- 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/-/9bDXiW-7insJ. To post to this group, send email to

Re: Django session + dynamic form + model form

2011-08-02 Thread Daniel Roseman
On Tuesday, 2 August 2011 19:15:12 UTC+1, voss wrote: > > Hello all, > > I have a dynamic form as follows: > > class myForm(forms.Form): > Question = > forms.ModelMultipleChoiceField(queryset=Model.objects.none(), > widget=forms.RadioSelect()) > def __init__(self, request, *args,

Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread Daniel Roseman
On Tuesday, 2 August 2011 20:14:09 UTC+1, webcomm wrote: > > I'm also getting "list index out of range" quite often. Here is a > shell session showing the error in context: http://pastebin.com/FBE30SDK I don't know about the 'has no attribute Model', since you don't show the traceback for

Re: in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
I'm also getting "list index out of range" quite often. Here is a shell session showing the error in context: http://pastebin.com/FBE30SDK -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Tracking RSS feeds usage

2011-08-02 Thread Eric Chamberlain
Have you considered using feedburner? Google acquired them a few years ago. I think there is integration with Analytics. -- Eric Chamberlain, Founder RingFree Mobility Inc. On Aug 2, 2011, at 3:04 AM, Dealshelve Team wrote: > I am using >

Re: Most stable Linux distribution for Django - Python development

2011-08-02 Thread Shawn Milochik
On 08/02/2011 01:59 PM, highpointe wrote: Not to hijack the thread but as an additional question... Is anyone having success with CentOS? Thanks for letting me interject. :-) Our production server is on Cent OS and has been up for 742 days without a reboot. For whatever that's worth. --

Django session + dynamic form + model form

2011-08-02 Thread voss
Hello all, I have a dynamic form as follows: class myForm(forms.Form): Question = forms.ModelMultipleChoiceField(queryset=Model.objects.none(), widget=forms.RadioSelect()) def __init__(self, request, *args, **kwargs): super(myForm, self).__init__(*args, **kwargs)

Re: Most stable Linux distribution for Django - Python development

2011-08-02 Thread highpointe
Not to hijack the thread but as an additional question... Is anyone having success with CentOS? Thanks for letting me interject. :-) On Aug 2, 2011, at 8:43 AM, Steven Smith wrote: > We're using Gentoo 64-bit on all of our production webservers at work, > and I run 4

in the shell, "module object has no attribute Model"

2011-08-02 Thread webcomm
I am trying to get more comfortable with interactive programming in the shell... which I have always found a bit awkward and have mostly avoided in favor of working in files (even for small experiments.) I'm trying to do something pretty simple: from django.db import models class

Re: No module named servers.basehttp

2011-08-02 Thread bob gailer
I ran checkdsk, ensured no remnants of the original install were around, reinstalled django now it all works. -- 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

Re: Unknown command: 'startproject'

2011-08-02 Thread bob gailer
Thank all of you for your responses. I ran checkdsk, ensured no remnants of the original install were around, reinstalled django now it all works. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Django 1.3 CreateView/ModelForm and dynamic filtering of fields

2011-08-02 Thread Paul Walsh
can anyone help with this? thx. -- 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/-/oB-B4Y8NHVQJ. To post to this group, send email to

Re: Dynamic page refreash

2011-08-02 Thread lmcadory
There should be closing brackets on the ends of the 2 render_to_response statements. On Aug 2, 1:55 pm, lmcadory wrote: > Here is my code, minus all the import statements. > > file = 'someFile.txt' > infile = open(file, 'r') > > def test_results(request): >      

Re: Views / Template - displaying data from other class.

2011-08-02 Thread bruno desthuilliers
First rename your "image_fk" field in Image to "news" - it's a relation from an image to a news, not from an image to another image, and the "_fk" prefix is irrelevant. Then, from a News instance, you'll be ables to access the related images using younews.image_set.all in the templates, ie: {%

Re: Dynamic page refreash

2011-08-02 Thread lmcadory
Display the results. On Aug 2, 1:37 pm, bruno desthuilliers wrote: > On 2 août, 19:22, lmcadory wrote: > > > I'm having this problem, my web design knowledge is limited and I'm > > having a hard time searching for the solution (if there is

Re: Dynamic page refreash

2011-08-02 Thread lmcadory
Here is my code, minus all the import statements. file = 'someFile.txt' infile = open(file, 'r') def test_results(request): expectedResults = 10 lines = infile.readlines() lineCount = len(lines) if lineCount == expectedResults: p = 'Passed' return

Re: Django for a front end designer

2011-08-02 Thread bruno desthuilliers
On 2 août, 18:21, "biofob...@gmail.com" wrote: > I am a designer guy not a programmer. My coding skills are html, css > and some jquery tweaks to suit my needs, but i come to a point where i > think i need to learn a real language. What i'm doing now is working > with

Re: Django for a front end designer

2011-08-02 Thread webcomm
Hi there, For building dynamic websites, I'd say you should learn a language like PHP or Python. Yep. For working with Django you definitely need to know Python. Something like WordPress has a very different and narrower set of intentions behind its design than does Django. WordPress is

Re: Django for a front end designer

2011-08-02 Thread Cal Leeming [Simplicity Media Ltd]
On Tue, Aug 2, 2011 at 6:44 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Difficult to say really. > > If your main focus is to be a designer, and not to be a full on programmer, > then I'd say you are probably best sticking with wordpress. > > If you

Re: Django for a front end designer

2011-08-02 Thread Cal Leeming [Simplicity Media Ltd]
Difficult to say really. If your main focus is to be a designer, and not to be a full on programmer, then I'd say you are probably best sticking with wordpress. If you don't really have a main focus, or you have some spare time, then defo take some time to learn python+django. I would strongly

Re: Django for a front end designer

2011-08-02 Thread Shawn Milochik
Go for it. It will require you to learn to program, but if you're up for it then that's awesome. If you do the tutorial and read the following wiki page I'm sure you'll find plenty of helpful people on this list. https://code.djangoproject.com/wiki/UsingTheMailingList Shawn -- You received

Re: Dynamic page refreash

2011-08-02 Thread bruno desthuilliers
On 2 août, 19:22, lmcadory wrote: > I'm having this problem, my web design knowledge is limited and I'm > having a hard time searching for the solution (if there is one) > > The problem is this: > > I have a view that counts the number of lines in a file. It then > pushes

Re: using the request object inside a form

2011-08-02 Thread vanderkerkoff
Thanks Daniel I told you I was doing something stupid :-) V On Aug 2, 5:22 pm, Daniel Roseman wrote: > The problem isn't in the code you've posted, but in how you instantiate the > form in your view. You need to actually pass in 'request' as a keyword > argument. > --

How to display Scientific Notation for a field on the admin pages?

2011-08-02 Thread DjangoOfWar
Right now I have a Decimal field in my model but I'd like it to display as scientific notation on the admin pages. Do I need to make a custom model field, that uses a custom form field or is there an easier way? (I'm on Django 1.2 if it matters) -- You received this message because you are

Re: Django + PyPy = ?

2011-08-02 Thread Bill Freeman
See if there is a .pth file somehow made pypy specific in /home/wsgi/pypy-1.5/site-packages or /home/wsgi/pypy-1.5 that mentions the PIL package but nothing else. On Tue, Aug 2, 2011 at 1:19 PM, Dmitry Pisklov wrote: > Well... > > $ /home/wsgi/pypy-1.5/bin/pypy > Python 2.7.1

Dynamic page refreash

2011-08-02 Thread lmcadory
I'm having this problem, my web design knowledge is limited and I'm having a hard time searching for the solution (if there is one) The problem is this: I have a view that counts the number of lines in a file. It then pushes that result to an html page. What I want it to do is when that line

Re: Django + PyPy = ?

2011-08-02 Thread Dmitry Pisklov
Well... $ /home/wsgi/pypy-1.5/bin/pypy Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34) [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. And now for something completely different: ``yes, but what't the sense of 0 < "duran

Django for a front end designer

2011-08-02 Thread biofob...@gmail.com
I am a designer guy not a programmer. My coding skills are html, css and some jquery tweaks to suit my needs, but i come to a point where i think i need to learn a real language. What i'm doing now is working with Textpattern or Wordpress(but i dont really like it) when i need some dynamic web

Re: ImportError only when Debug=False

2011-08-02 Thread George Cummins
On Tue, Aug 2, 2011 at 12:38 PM, Tom Evans wrote: > On Tue, Aug 2, 2011 at 3:17 PM, George Cummins wrote: > > While testing changes to an existing project, I disabled debugging. While > > trying to restart the web server (uWSGI+nginix), I

Re: add a field to a form that isn't in a model

2011-08-02 Thread Shawn Milochik
You don't need to add the fields to your model. If the extra fields don't appear on your page it's probably because you didn't add them to the template. I'm assuming you're using something like form.as_p, which probably doesn't pick up the extra fields. -- You received this message because

Re: ImportError only when Debug=False

2011-08-02 Thread Tom Evans
On Tue, Aug 2, 2011 at 3:17 PM, George Cummins wrote: > While testing changes to an existing project, I disabled debugging. While > trying to restart the web server (uWSGI+nginix), I encountered the following > error: > > File "/opt/django-projects/preps/statistics/models.py",

Re: add a field to a form that isn't in a model

2011-08-02 Thread webcomm
On Aug 2, 11:16 am, Shawn Milochik wrote: > Just add the fields to your ModelForm and then do whatever you want in > your save() override. Thanks for your reply, Shawn. Adding the fields in my ModelForm doesn't seem to do the trick, by itself. The field doesn't appear in

Re: static files (development server)

2011-08-02 Thread veva...@yandex.ru
Tom, I added from django.contrib.staticfiles.urls import staticfiles_urlpatterns and if settings.DEBUG: urlpatterns += staticfiles_urlpatterns() to urlconf, but didn't get any result. Vladimir -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Help please xml2-config from libxml2

2011-08-02 Thread Carlos Daniel Ruvalcaba Valenzuela
Hello, your problem is most probably the lack of the development package for libxml2, try installing the libxml2-dev package via apt-get command or synaptic under Ubuntu. Regards, Carlos Ruvalcaba El 02/08/2011 15:39, "theseventhletter" escribió: > Good Day to all > i been

Re: how to create a hidden field

2011-08-02 Thread Tom Evans
On Tue, Aug 2, 2011 at 3:47 PM, webcomm wrote: >> Have you simplified your example? > > The example I provided in the original post is the actual code in my > models.py.  It's not simplified. > >> >>> class TestForm(ModelForm): >> >> ...   range = CharField(widget=HiddenInput)

using the request object inside a form

2011-08-02 Thread Daniel Roseman
The problem isn't in the code you've posted, but in how you instantiate the form in your view. You need to actually pass in 'request' as a keyword argument. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Views / Template - displaying data from other class.

2011-08-02 Thread Petey
Hi. I want to display images for news. Images class is a seperate model. In generic view (index) to display news and images I use 2 "for" loops which work. In "single" view I use get_object_or_404 which changes a bit the template - it does not require the loops to display the text. If I

Running test cases on pydev raises an exception due to a problem in the standard library

2011-08-02 Thread Ger
Hi all, I have a django app that works correctly from the console, but if I try to pass the tests cases from Eclipse+PyDev I got the following exception: Traceback (most recent call last): File "C:\Users\gfuentes\workspace\AG\src\cfx\manage.py", line 19, in execute_manager(settings) File

Help please xml2-config from libxml2

2011-08-02 Thread theseventhletter
Good Day to all i been trying to install geodjango but always gets stuck up with this error after i downloaded postGIS and typed ./configure on the terminal. configure: error: could not find xml2-config from libxml2 within the current path. You may need to try re-running configure with a --with-

Django raises IOerror in csrf.py middleware

2011-08-02 Thread Thomas Orozco
Hello, I received a traceback from Django and I'm unable to figure out where the error comes from. The form is a basic picture upload form, I've read that this kind of errors do happen when the connection is broken before all data was sent, but here, the crash occured in csrf.py, which it was not

Re: add a field to a form that isn't in a model

2011-08-02 Thread Shawn Milochik
Just add the fields to your ModelForm and then do whatever you want in your save() override. The example you found has extra code the author added to the model, but there's nothing "standard" there. It's just something that suited that use-case. Remember that all of Django is "just" Python,

add a field to a form that isn't in a model

2011-08-02 Thread webcomm
Hi all, How to add a field to a form that is not a model field? I want my form for model class X to have a field whose value I will save to another model class (by overriding the the save method in model class X). I think my answer is here...

using the request object inside a form

2011-08-02 Thread vanderkerkoff
Hello there. I need to use parts of the URL to calculate some thing inside my form. Here's a stripped down version, I can't seem to get it to give me anything other than none for self.request :-( class EventBookForm(ModelForm): title = CharField() firstname = CharField()

Re: how to create a hidden field

2011-08-02 Thread webcomm
> Have you simplified your example? The example I provided in the original post is the actual code in my models.py. It's not simplified. > >>> class TestForm(ModelForm): > > ...   range = CharField(widget=HiddenInput) > ...   class Meta: > ...     model=Foo > ...>>> f=TestForm() > >>> f.as_p()

Re: Most stable Linux distribution for Django - Python development

2011-08-02 Thread Steven Smith
We're using Gentoo 64-bit on all of our production webservers at work, and I run 4 additional Gentoo-based Django servers outside of work. It took a long time to configure, and is not for the faint of heart. But, my stripped-down versions of Apache and Postgres run really fast with a small

Django docs and GSoC doc summit

2011-08-02 Thread eset
hi, I am new to the Django list but I am a django fan (we dev with Django for www.booki.cc)... anyways I wanted to encourage the Doc team and individuals on the list to apply for the GSoC Documentation Summit (details below): https://sites.google.com/site/docsprintsummit/ You can apply as an

ImportError only when Debug=False

2011-08-02 Thread George Cummins
While testing changes to an existing project, I disabled debugging. While trying to restart the web server (uWSGI+nginix), I encountered the following error: File "/opt/django-projects/preps/statistics/models.py", line 5, in from preps.games.models import FootballGame, VolleyballGame,

.css files of the admin pages

2011-08-02 Thread Sheogora
I would like to know how to make changes to the built in style sheets in the admin pages I went into this directory where i found images being used in the admin website Django-1.3\django\contrib\admin\media\img\admin and changed images but it didn't effect my project at all. Is that the wrong

Re: Django can't see my static files

2011-08-02 Thread lokesh
Try this way which works well. create folder static_media in project. In urls.py give below url (r'^static_media/(?P.*)','django.views.static.serve', {'document_root':'static_media'}), in settings give, MEDIA_URL = '/static_media/' it should work. On Aug 1, 6:17 am, Gchorn

Re: how to create a hidden field

2011-08-02 Thread Tom Evans
On Tue, Aug 2, 2011 at 2:37 PM, webcomm wrote: >> That would hide the field called 'itemid' from the model 'News'. Are >> you saying it doesn't? > > That's right.  It's not working.  The field isn't hidden. > Have you simplified your example? This functionality works well when

Re: how to create a hidden field

2011-08-02 Thread webcomm
> That would hide the field called 'itemid' from the model 'News'. Are > you saying it doesn't? That's right. It's not working. The field isn't hidden. -Ryan -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

admin - delete_selected problem

2011-08-02 Thread galgal
In admin.py file i paste:admin.site.disable_action('delete_selected') And get an error: KeyError at / 'delete_selected' Django Version: 1.3 Exception Type: KeyError Exception Value: 'delete_selected' Exception Location:

Re: Extending the User form

2011-08-02 Thread Sheogora
please see this discussion http://groups.google.com/group/django-users/browse_thread/thread/143942b9002c1468/c4fbf04d75471fbf?lnk=gst=Shegoroa#c4fbf04d75471fbf I made two by accident and marked this for removing, but they didn't for some reason. I updated it with a new post, which should show up

Re: Extending new User form

2011-08-02 Thread Sheogora
On Jul 28, 4:27 pm, Derek wrote: > On Jul 28, 10:31 am,Shegoroa wrote: > > > I am having difficulty figuring out how to make an admin when creating > > a new user to have an extra field specifying users location. > > > I found lots of information on

Re: os.system not working for me!

2011-08-02 Thread H . İbrahim Yılmaz
You should use mysqldump command like that: target_dir = '/path/to/where/you/want/to/dump' os.system("mysqldump --add-drop-table -c -u user -ppassword database table > "+target_dir+"/table.bak.sql") Hope this help! 2011/8/2 dR Hossein > Hi every body! > I want to get

Re: django smart-select

2011-08-02 Thread H . İbrahim Yılmaz
Any help pls? 2011/8/2 Dr.Linux > Hi all, > > I'm so sorry for this e-mail. May be you answered similar questions > many times. But I really need your help to learn how it's works. > > There is a little problem with third-level(?) models (or many times > related models)

os.system not working for me!

2011-08-02 Thread dR Hossein
Hi every body! I want to get backup from my db with os.system command. but it's not work for me. \ this is the code that I'm using: * os.system("mysqldump --user root password=123 test_db > d:/test.sql") * any body know about this issue? -- You received this message because you are

django smart-select

2011-08-02 Thread Dr.Linux
Hi all, I'm so sorry for this e-mail. May be you answered similar questions many times. But I really need your help to learn how it's works. There is a little problem with third-level(?) models (or many times related models) in admin area with django-smart-selects plugin. I don't know what does

enabling readonly inlines

2011-08-02 Thread pradnya
Hi I have two models namely Test and UserTest with one to many relationship.In TestAdmin i have tabular inline for UserTest. I can add or delete test but can't modify test's fields but in same object i can add UserTest model but can't modify previously added UserTest. So i kept it as

Setting up multi-user site in Django without Admin access

2011-08-02 Thread somecallitblues
Hey guys, I'm creating a site where multiple users will enter their details and get access to admin I want to create from them .I want to use default Django admin as a kind of Super User access for myself. I don't want these users to have access to Super User admin. I want them to have their own

Re: Django can't see my static files

2011-08-02 Thread Thomas Orozco
Last thing, I made a typo, the address you could use should start with http, like: http://127.0.0.1/static/ Le 2 août 2011 12:01, "Thomas Orozco" a écrit : > A little detail, but you never know: you should put some ' ' in your link. > Like this : > > > > > If there are

Tracking RSS feeds usage

2011-08-02 Thread Dealshelve Team
I am using https://docs.djangoproject.com/en/dev/ref/contrib/syndication/#a-complex-examplefor my project. Since the feed is essentially presented in XML to user, I have no way to track the access with Google Analytics. But I am thinking to register that access by sending Django request object to

Re: Django can't see my static files

2011-08-02 Thread Thomas Orozco
A little detail, but you never know: you should put some ' ' in your link. Like this : If there are spaces in your path, this could cause the lookup to fail. And even if that's not the case, don't rely on the user's browser to fix coding mistakes. Le 2 août 2011 10:28, "Guillaume Chorn"

Re: Django can't see my static files

2011-08-02 Thread Thomas Orozco
Could you show us the following: Your staticfiles settings. The link where your browser fetches the css file (see rendered source head when browsing) to gets 404'ed. If you are using a local server, you could try using a STATIC URL of 127.0.0.1:8000/static/. Note that this will not work if you

Re: Django can't see my static files

2011-08-02 Thread Kejun He
hi, Did you use the django development server to test it?? I have ever published my project on Lighttpd, but lost all the css. I solved this problem by specified the midia and site-midia. Like below on lighttpd.conf "/site_media/" => "/root/web/Affair/gmadmin/media/", "/media/"

Re: static files (development server)

2011-08-02 Thread Tom Evans
On Tue, Aug 2, 2011 at 5:19 AM, veva...@yandex.ru wrote: > I see I don't understand how can I use static files using the > development server. I saw several answers to this question of other > people but they are too breaf for me. I think I follow advices but > without any

Re: Komodo IDE better screenshots (worth reading!)

2011-08-02 Thread Derek
Been using Komodo for over a year - it has never crashed on me (that I've noticed anyway ;) On Aug 1, 10:19 am, Thomas Weholt wrote: > Hmmm ... I've had the same problem using PyCharm; it just doesn't look > good, but after a while I stopped noticing and started loving

Re: Django can't see my static files

2011-08-02 Thread Guillaume Chorn
Thomas and Lokesh, Thanks very much for your help. I've modified the link in my HTML file to be: where "stylesheet" is the name of the CSS file, and this file is located inside the directory listed under STATIC_DIRS in my settings.py file. As mentioned in my prior email, I also already have

Re: clear/empty text field on every POST

2011-08-02 Thread Reikje
Good workaround :) Adding it. Thanks On Aug 1, 12:05 pm, lokesh wrote: > hi, >  Use Javascript or jquery .reset() to clear the form fields . > Lokesh S > > On Aug 1, 1:41 pm, Reikje wrote: > > > Hi, > > > I am using django.Forms for a website. I have