Admin plugins

2012-06-13 Thread Lachlan Musicman
Hola, I just watched a video from last year about modifying the Django Admin interface. I was wondering if people recommend any particular app? Grappelli and django-admin-tools are both still being developed. Are there any others and if you prefer one, why? Am thinking especially in terms of

Re: cookie based sessions or no?

2012-06-13 Thread Kevin Anthony
If you want to see an example, I have a Django app that sends json to both an andriod app and a desktop app written in C Django App: http://github.com/KevinAnthony/rchip_website Desktop App: http://github.com/KevinAnthony/rchip Android App: http://github.com/KevinAnthony/rchip_android On Jun

Re: Getting at Oracle ROWID

2012-06-13 Thread Ian
On Wednesday, June 13, 2012 5:48:07 AM UTC-6, rahajiyev wrote: > > DatabaseError at / > > ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP > BY, etc. > > > Unfortunately Django doesn't show the precise statement that caused the > error. > The query it generates is:

Re: Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Guys, I solved. It's django-debug-toolbar fault. It's does double requests and loads all the context processor :( Thanx 2012/6/13 Ricardo L. Dani > Hello everyone, > > I'm having a issue with template_context_processors requests and views > that do not use the context

Re: cookie based sessions or no?

2012-06-13 Thread Nikolas Stevenson-Molnar
Sorry, I should have said you could write your own authentication /middleware/ (https://docs.djangoproject.com/en/1.4/topics/http/middleware/), not your own authentication backend (since I assume you're still using the standard username/password login). Just implement process_request(), look for

Re: cookie based sessions or no?

2012-06-13 Thread Nikolas Stevenson-Molnar
I agree; go with sessions. However, if you don't want to implement cookie handling in your desktop app, they don't have to be cookie-based sessions. If you write your own authentication backend (https://docs.djangoproject.com/en/dev/topics/auth/#writing-an-authentication-backend) you could, for

Re: cookie based sessions or no?

2012-06-13 Thread Kurtis Mullins
I wouldn't authenticate on every request. That seems like a lot of unnecessary work. Just authenticate once and use Cookies/Authentication Tokens to sustain the session. It's already built in so it's pretty easy to do. They even have a code snippet that shows how to use a special HTTP Header to

Re: Error migrating using South

2012-06-13 Thread James Pyrich
OK, my suggestion in this case is to enable logging at the database level, since your system is down anyway. That way you can at least see what statement it's crashing on. On 6/12/12 4:29 PM, Daniel França wrote: More information: I'd put a break point just before the crash then I've tested

cookie based sessions or no?

2012-06-13 Thread Mike
I'm working on a desktop app that will communicate with a server. I have some experience with Django and with the user authentication system but I haven't deployed a Django app with authentication yet. I'm planning to use django for the server side component of this desktop app and the two

Re: Error migrating using South

2012-06-13 Thread Timothy Makobu
from django.db import connection, DatabaseError try: .. except DatabaseError: connection._rollback() On Wed, Jun 13, 2012 at 5:49 PM, Daniel França wrote: > I recreated the database and still get the same error when executing a > simple "syncdb". > > Tried to

Re: How to install django on Windows xp

2012-06-13 Thread Damián Pérez
Si, a mi me pasó algo similar y era por la versión de python, actualmente Django solo es compatible con python 2.7. Saludos, El miércoles, 13 de junio de 2012 06:34:19 UTC-5, Renne Rocha escribió: > > Hello, > > It appears that you are trying to use Python 3. Django doesn't works > with

Re: Error migrating using South

2012-06-13 Thread Daniel França
I recreated the database and still get the same error when executing a simple "syncdb". Tried to change the database connection to sqlite and now I got the error that the sqlite3 module isn't installed... I think my installation is messed up. On Tue, Jun 12, 2012 at 7:29 PM, Daniel França

Is this a bug in django? template_context_processors processed in views without RequestContext context_instance.

2012-06-13 Thread Ricardo L. Dani
Hello everyone, I'm having a issue with template_context_processors requests and views that do not use the context processors, i.e. in a render_to_response without use of RequestContext. For example, in my TEMPLATE_CONTEXT_PROCESSORS, as default, I have a

Re: inspectdb() sees MSSQL varchar([n]) fields as type textfield

2012-06-13 Thread rico_suave
Hi Russ, I have done as you suggested and the solution (If I didn't mess things up) was actually quite simple indeed. We are using pyodbc and django-pyodbc. I have submitted my change to the django-pyodbc guys, for them to have a look. If they actually implement this it will be my first

Re: How to use django-facebook-graph

2012-06-13 Thread Simon Schmid | FEINHEIT
Hi Ada Facebook Development is kind of complicated. You have to be familiar first with the Facebook Graph API [1]. Our repository django-facebook-graph mainly helps you to add facebook functionality to your django app, if you understood how facebook development in general works. Try to go through

Stackato PaaS - any experiences?

2012-06-13 Thread Cal Leeming [Simplicity Media Ltd]
Okay, this time I've been reviewing the Stackato PaaS. http://www.activestate.com/stackato Has anyone else here had experiences using this in production to host Django apps? The demo video they made was cute, the management interface seems to be spot on (from the screenshots at least), and the

Re: django on windows xp

2012-06-13 Thread Daniel Roseman
On Wednesday, 13 June 2012 06:07:19 UTC+1, Manish wrote: > > Hi , > > I am using trying to install and use django on windows xp and i am using > git bash as command line. When i try using > "django-admin.py startproject mysite" command i get an error, __init__.py > line 54. except

Re: Getting at Oracle ROWID

2012-06-13 Thread rahajiyev
Thanks, here's what I came up with: In the model: class RowidField(models.CharField): def __init__(self, *args, **kwargs): kwargs['name'] = 'rowid' kwargs['max_length'] = 18 kwargs['primary_key'] = True super(RowidField,

Re: How to install django on Windows xp

2012-06-13 Thread Renne Rocha
Hello, It appears that you are trying to use Python 3. Django doesn't works with Python 3, so you must install Python 2.7 instead. Reinstall the Python version to Python 2.7. It must fix your problem. Regards, Renne On Wed, Jun 13, 2012 at 4:20 AM, Manish

error in Poll choice example

2012-06-13 Thread pradnya bora
--error-- Reverse for 'polls.views.results' with arguments '(2L,)' and keyword arguments '{}' not found.Request Method: POST Request URL: http://127.0.0.1:8000/polls/2/vote/ Django Version: 1.5 Exception Type: NoReverseMatch Exception Value: Reverse for

Re: Django in shared production server

2012-06-13 Thread rum ish
Here is a link I found with some insight http://www.codekoala.com/blog/2008/installing-django-shared-hosting-site5/ On Wed, Jun 13, 2012 at 1:28 AM, ruma wrote: > Hi, > > I have bought a hosting service and trying to deploy the django > application.I ssh to the hosting linux

Django in shared production server

2012-06-13 Thread ruma
Hi, I have bought a hosting service and trying to deploy the django application.I ssh to the hosting linux server and have installed django and everything working fine. Now I want to deploy in the production. But I do not have access to the httpd. Any suggestion how handle this. Any suggestion

How to install django on Windows xp

2012-06-13 Thread Manish
Hi, I am new to python and django. I have install django and trying to create a new project. When i run the command "django-admin.py startproject mysite", i get an error. the error is : Tracebback(most recent call last): File "./django-admin.py", line 2, in from django.core import

django on windows xp

2012-06-13 Thread Manish
Hi , I am using trying to install and use django on windows xp and i am using git bash as command line. When i try using "django-admin.py startproject mysite" command i get an error, __init__.py line 54. except ImportError,e Syntax Error: Invalid Syntax I am very new to django and python.

Re: Graphs for my Django Application

2012-06-13 Thread Tanveer Ali Sha
@Tim Sawyer.. If i make use of FLOT , is it necessary to need to convert my model to numeric values, mapping the ticks and adding the labels manually.>?? If yes!! How can i do that? On Mon, Jun 11, 2012 at 11:38 AM, Tanveer Ali Sha wrote: > >