Re: overlay feature in django

2012-03-08 Thread Derek
I think you will need to define, or give an example, of what exactly you mean by "overlaying". On Mar 8, 12:55 pm, Bhujang Bhagas wrote: > Hi, > > Is there any feature for overlaying templates in django . > > Thanks.. -- You received this message because you are subscribed to the Google Groups

Re: urls.py and login forms

2012-03-08 Thread vikalp sahni
Hi, Here what i can see is you have added a prefix in your pattern, urlpatterns = patterns(*'myapp.views'*, url(r'^login/$','django.contrib.auth.views.login'),) This ideally should be. urlpatterns = patterns(*''*, url(r'^login/$','django.contrib.auth.views.login'),) As the prefix is applied to

Re: Problems creating django project in Windows 7

2012-03-08 Thread Mark Jones
I use WingIDE and one license covers all 3 platforms for a developer. And the guys that make it are incredibly nice and helpful with features and how to use. I Highly recommend it. (30 day free trial too) -- You received this message because you are subscribed to the Google Groups "Django user

Re: output form html

2012-03-08 Thread backdoc
If you mean, does the final page being rendered match the code that I am trying to change? The answer would have to be "Yes". In other words, anything else that I modify will be reflected on the rendered page. On Mar 8, 2:55 pm, Joel Goldstick wrote: > On Wed, Mar 7, 2012 at 4:23 PM, backdoc wr

Re: create model on multiples schemas of database

2012-03-08 Thread Python_Junkie
That is a very interesting question. I presume that you will not be doing this dynamically as a user logs on. If that is the case, why don't you let django answer the question for you. Create a database with the several different schemas and follow the instructions to let django create your mo

Re: send_mail problem

2012-03-08 Thread Scott Macri
I switched to make sure it wasn't the database. On Thu, Mar 8, 2012 at 5:49 PM, Dennis Lee Bieber wrote: > On Thu, 8 Mar 2012 13:59:02 -0500, Scott Macri > declaimed the following in gmane.comp.python.django.user: > > >> The strange thing is if I manually update the fields in the database >> wit

urls.py and login forms

2012-03-08 Thread Scott Macri
How am I supposed to configure access to the built in django login and password forms after changing my urls.py settings? I've setup the main project urls.py file like so: url(r'^myapp/',include('myapp.urls')), I now have a urls.py file under myapp/urls.py setup similar to the following: urlpatter

Re: What reason is Django administration

2012-03-08 Thread kenneth gonsalves
On Thu, 2012-03-08 at 12:44 -0800, Stone wrote: > I have developed some web pages and I have never used Django > administration? > Is there any control for controlling access of users? > > https://docs.djangoproject.com/en/dev/ref/contrib/admin/ search for has_change_permission -- regards Kenn

Re: Problems creating django project in Windows 7

2012-03-08 Thread Matteius
I would like to weigh in on this discussion because I started out developing Django apps fairly platform agnostic in college, meaning that I worked on the apps on a variety of systems (although not too much on macs). My big project has been Django-Classcomm (http:// classcomm.googlecode.com/). We

create model on multiples schemas of database

2012-03-08 Thread Moisés P . Sena
Good night! I need to create the "DDL" a model in several DB schemas, not only in the "public". The names of these schemas is "username" user logged. I'm using PostgreSQL. My model: class Empresa(models.Model): ''' classdocs ''' cnpj = models.CharField(max_length=14, blank=Fals

Chunked or streaming page output

2012-03-08 Thread Mike
Hi, Wondering if the limitation (that a page must be completely built in memory before a response is sent) has been rememdied yet. Last mention I could find seems to be from almost four years ago: https://groups.google.com/d/topic/django-users/BJVZHuIBmSA/discussion -- You received this

Re: Implementing Foreign Key without admin interface

2012-03-08 Thread Ramiro Morales
On Thu, Mar 8, 2012 at 4:44 PM, Sandeep kaur wrote: >                        job_no_id = client.job_no >                        ... > Am I wrong somewhere?  How should I do this?  Please help!! Yes, that client variable appears magically. Please paste working code, an abridged version but wor

Re: Django error about utf8 with BOM when running "python manage.py compilemessages"

2012-03-08 Thread Tom Evans
On Thu, Mar 8, 2012 at 8:45 PM, Suteepat Damrongyingsupab wrote: > I'm using the latest Django-1.4c1. > When I run the command "python manage.py compilemessages", I got the error > as follows: > Error: The > /home/admin/Django-1.4c1/tests/regressiontests/i18n/commands/locale/es_AR/LC_MESSAGES/djan

Re: output form html

2012-03-08 Thread Joel Goldstick
On Wed, Mar 7, 2012 at 4:23 PM, backdoc wrote: > I am having trouble changing the way the HTML in my form fields is > presented.  I've been reading the docs (https://docs.djangoproject.com/ > en/dev/ref/forms/api/#outputting-forms-as-html).  I've done this in > previous versions.  But, it doesn't

Re: What reason is Django administration

2012-03-08 Thread Shawn Milochik
On 03/08/2012 03:44 PM, Stone wrote: Dear users, I have developed some web pages and I have never used Django administration? Is there any control for controlling access of users? Do you have any examples? Thank you Petr https://docs.djangoproject.com/en/1.3/topics/auth/#permissions -- Yo

Django error about utf8 with BOM when running "python manage.py compilemessages"

2012-03-08 Thread Suteepat Damrongyingsupab
I'm using the latest Django-1.4c1. When I run the command "python manage.py compilemessages", I got the error as follows: Error: The /home/admin/Django-1.4c1/tests/regressiontests/i18n/commands/locale/es_AR/LC_MESSAGES/django.po file has a BOM (Byte Order Mark). Django only supports .po files e

What reason is Django administration

2012-03-08 Thread Stone
Dear users, I have developed some web pages and I have never used Django administration? Is there any control for controlling access of users? Do you have any examples? Thank you Petr -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

many2many error

2012-03-08 Thread Joel Goldstick
I got no answer from stack exchange. Maybe someone here knows: Django v1.3 I have a CruiseOffer model related to a model called SpecialInterest. I now realize that I have the same exact thing going on in my LandOffer model (elsewhere). So I want to get rid of the cruise.SpecialInterest and repla

Re: Live search

2012-03-08 Thread Larry Martell
On Wed, Mar 7, 2012 at 5:57 AM, Karen Tracey wrote: > On Mon, Mar 5, 2012 at 11:25 AM, larry.mart...@gmail.com > wrote: >> I'm fairly new to django, still working on my first project. >> >> I have a page with some selection fields and a button. The user clicks >> the button, I run a query, and di

Re: send_mail problem

2012-03-08 Thread Scott Macri
I think the issue is that there is some sort of minimum character limit for the message field in the send_email and send_mass_email functions. I was not able to find anything in the docs pertaining to this, but when I use a string like 'test1' the message never gets sent. When I use something lik

Implementing Foreign Key without admin interface

2012-03-08 Thread Sandeep kaur
I am using forms, to make the entries from the user. But when it comes to using foreign key in a table and then making entries to it, I am unable to do so. See my code: models.py: class ClientJob(models.Model): """ :ClientJob: ClientJob Class is define all fi

[SOLVED] Outputting JSON in Django logs (98% of the way there!)

2012-03-08 Thread Shawn Milochik
It turns out I was just missing quotes around the () for the custom formatter. I just wrote a blog post will a full working example in case anyone else is interested. http://shawnmilo.blogspot.com/2012/03/using-json-logging-in-django-and-python.html -- You received this message because you a

Re: Problems creating django project in Windows 7

2012-03-08 Thread Mark Jones
I've created a manage.cmd and put it on my path so I can type less while on windows the command is just @echo off python manage.py %* this makes it more like linux The "@echo off" part is important because mange dumpdata >filename doesn't want to see the command line echoed into the json file.

Re: send_mail problem

2012-03-08 Thread Scott Macri
OK, I ran the debugger and here is what I came up with: -> print "CHECK MESSAGE :" (Pdb) repr(email_message) "u'test1'" (Pdb) It looks like it is unicode text. The strange thing is if I manually update the fields in the database with SQL from the PostGres command prompt the email then works. Th

Re: send_mail problem

2012-03-08 Thread Scott Macri
Nope, I guess that only fixed it for a minute. On Thu, Mar 8, 2012 at 1:21 PM, Scott Macri wrote: > I'm very new to python and django.  Thanks for the tip.  I was trying > to figure out how to set break points. > > I figured out what the problem was. > > In views.py I was calling the following fu

Re: send_mail problem

2012-03-08 Thread Scott Macri
I'm very new to python and django. Thanks for the tip. I was trying to figure out how to set break points. I figured out what the problem was. In views.py I was calling the following function to save the data in the database, which was in a different .py file: HealthData.saveHealthData(HealthD

Re: send_mail problem

2012-03-08 Thread Tom Evans
On Thu, Mar 8, 2012 at 4:58 PM, Scott Macri wrote: > I've come to the conclusion that send_mail and send_mass_mail cannot > be used with sqlite due to a but with the message text. > > Attempting to pull a string from the sqlite database and putting it > into the message field on either of the abov

Outputting JSON in Django logs (98% of the way there!)

2012-03-08 Thread Shawn Milochik
Hi everyone. I'm hoping someone has gotten this working and can point out whatever tiny thing I'm doing wrong here. I want to log JSON instead of the default. I found JsonFormatter here: https://github.com/madzak/python-json-logger It works great with a small script I created based on the exa

Re: send_mail problem

2012-03-08 Thread Scott Macri
I've come to the conclusion that send_mail and send_mass_mail cannot be used with sqlite due to a but with the message text. Attempting to pull a string from the sqlite database and putting it into the message field on either of the above mentioned functions causes the message sending to fail with

Re: Need some directions howto insert image processing

2012-03-08 Thread Tom Evans
On Thu, Mar 8, 2012 at 2:58 PM, Paul wrote: > I have a model with an ImageField and would like to add some image > processing using PIL. Problem is that i don't know how to do this > best. > My approach would be to do it in the view function (indicated below > with "Processing here?"); some concre

Need some directions howto insert image processing

2012-03-08 Thread Paul
I have a model with an ImageField and would like to add some image processing using PIL. Problem is that i don't know how to do this best. My approach would be to do it in the view function (indicated below with "Processing here?"); some concrete questions: - How can i best reuse code to do the sam

Re: Problems getting started

2012-03-08 Thread Diego Schulz
On Wed, Mar 7, 2012 at 11:36 AM, Clark wrote: > After installing Django I am attempting to start a new project.  After > creating a directory for this, I tried using the command: "django- > admin.py startproject mysite". > > but I'm getting the message "-bash: django-admin.py: command not found >

Re: Character Diff Utility

2012-03-08 Thread backdoc
I have to use Windows at work. I installed Cygwin so that I could use the *nix diff utilities. It's not a bad approach because you also get grep, find and many other useful utilities that Windows sucks at. Be sure to mark that packages you need. I can't remember for certain. But, I believe that

django facebook api

2012-03-08 Thread suresh dokania
Hi, I got my login working. Redirect uri was d problem. I created a redirect uri stormy-sunset in facebook using django I followed this link http://djangosnippets.org/snippets/2065/ but the problem is here are my requirements When i press the login button n enter my username n password , i nee

Re: Problems creating django project in Windows 7

2012-03-08 Thread Jani Tiainen
Well I've been successfully working in Windows with Django and Python last 3 years without much of troubles. Few libraries that don't play nice with virtualenvs. So first things first: Make sure that you install only 32 bit Python for windows. 64 bit will work but most of the libraries are on

Re: Problems creating django project in Windows 7

2012-03-08 Thread Javier Guerra Giraldez
On Wed, Mar 7, 2012 at 11:03 PM, Mika wrote: > But I'm just curious about the > objective advantages of Ubuntu over Windows vis a vis django? all OpenSource tools and libraries are developed first and foremost to work on unix-like systems. while most of them do work very well on windows too, it'

overlay feature in django

2012-03-08 Thread Bhujang Bhagas
Hi, Is there any feature for overlaying templates in django . Thanks.. -- 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-us

Re: Character Diff Utility

2012-03-08 Thread siva
Hi , Yes exactly we need vimdiff diff only but using vimdiff we cant store diff contents so that we asked any other utility Thanks, Siva On Mar 8, 3:35 pm, Tom Evans wrote: > On Thu, Mar 8, 2012 at 7:22 AM, siva <85s...@gmail.com> wrote: > >  Hi, > > > Is there any utility to get file diffe

Re: Character Diff Utility

2012-03-08 Thread Tom Evans
On Thu, Mar 8, 2012 at 7:22 AM, siva <85s...@gmail.com> wrote: >  Hi, > > Is there any utility to get file difference with character diff > vim, specifically vimdiff. Plus a raft of others I expect. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Djang

Re: Django hgwebdir

2012-03-08 Thread Jani Tiainen
Yes, that is very much possible: Either write views to show all data, use HG command spawning with correct parameters. Or another option is to use HG Python codes to read repository. Though output you have to do yourself. I guess this was what you were looking for? 8.3.2012 9:09, siva kirjo