Re: tree.io installation with django

2012-09-16 Thread Mike Dewhirst
On 17/09/2012 3:35pm, Fabian Weiss wrote: Well, I really dont know what to do :( All I can show you is the Apache log: [Sun Sep 16 21:45:58 2012] [error] /usr/local/lib/python2.7/dist-packages/jinja2/__init__.py:31: UserWarning: Module hashlib was already imported from

Re: tree.io installation with django

2012-09-16 Thread Fabian Weiss
Well, I really dont know what to do :( All I can show you is the Apache log: [Sun Sep 16 21:45:58 2012] [error] /usr/local/lib/python2.7/dist-packages/jinja2/__init__.py:31: UserWarning: Module hashlib was already imported from /usr/lib/python2.7/hashlib.pyc, but

Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

2012-09-16 Thread Jani Tiainen
17.9.2012 7:31, Navnath Gadakh kirjoitti: -- 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/-/t6s6YgYVAY8J. To post to this group, send email to

Re: how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

2012-09-16 Thread Kev Dwyer
Navnath Gadakh wrote: > > Hello Navnath, You can either submit the form via javascript and display the alert based on the response from the view, or submit the form normally and in your javascript code poll another view to check the result. The first method is better, in my view. Both

how to use java script alert in view? i use form submit on post method. After sucessfull opreation in view i want alert

2012-09-16 Thread Navnath Gadakh
-- 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/-/t6s6YgYVAY8J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this

Re: Abstract classes and inhertience

2012-09-16 Thread Stephen Anto
Hi, Have you tried to fetch all data from models like Model.objects.all() It it is the way to fetch all data. Thank you for visitingFor Django On Mon, Sep 17, 2012 at 6:50 AM, Lachlan Musicman wrote: >

Abstract classes and inhertience

2012-09-16 Thread Lachlan Musicman
Hola, I have an abstract base class, Person, with three children: Applicants, Students and Staff. I have two questions. As per docs ($PATH/topics/db/managers.html#custom-managers-and-model-inheritance) I have three managers for the Abstract class: people = models.Manager() men = MaleManager()

Re: tree.io installation with django

2012-09-16 Thread Mike Dewhirst
On 16/09/2012 6:41am, Fabian Weiss wrote: The invalid syntax thing is also a bit odd, as it looks valid to me. I haven't followed this thread but whenever I get an invalid syntax error with valid syntax it is usually a problem with an earlier line. In my cases it is often a missing comma or

Hello World with Django

2012-09-16 Thread python . anaconda
Hi, Can someone help me in this question? http://stackoverflow.com/questions/12399318/why-do-i-need-django-for-a-simple-hello-world As you can see, the Flask solution is only "half answer" and the Django solution in my web hosting service doesn't work and, as you can imagine, I don't have

Re: tree.io installation with django

2012-09-16 Thread Fabian Weiss
Allright, I didnt know that! So here are the requirments! I deinstalled django debian packet and used pip. Works very well! But some of the requiered software is also available and installed on my system through APT! For example python-dateutil. What to do? Deinstall it and install it with

Re: Easy question to the Auth System

2012-09-16 Thread WoHinDu
I love Django. Sometimes it's a bit dificult to find what you need, but if you find it, it's always simpel. If someone have the same problem just add filter_horizontal or filter_vertical thats all! Am Sonntag, 16. September 2012 18:01:34 UTC+2 schrieb WoHinDu: > > Hey, > > sorry for my bad

adding a database (anda table with its model) on the fly

2012-09-16 Thread Gelonida N
I wondered whether there would be any way to add a new model and a new database without having to stop my processes. I can imagine multiple use cases, where this could be intersting. One use case would be for example a graphical application: - The user would select a sqlite file or perhaps

Re: Django and LDAP

2012-09-16 Thread sbrandt
Where exactly do you need help? You can install it like every other python package via pip or easy_install: "pip install django-auth-ldap" or "easy_install django-auth-ldap". Configuration is really easy and described in the documentation. They support groups and automatic extraction of LDAP

Re: Changing table's engine through migration scripts

2012-09-16 Thread Thomas Orozco
I wouldn't recommend that Migrations are tightly tied to your app as you need them to set you app up. In that sense, they should be database agnostic, as your app is (because Django is). Using a migration that only works for MySQL seems very strange to me. Indeed, such a migration wouldn't make

Re: Easy question to the Auth System

2012-09-16 Thread Thomas Orozco
Hi, Use ManyToMany if one event can relate to *several* Users Use ForeignKey if one event relates to a *single* User Cheers, Thomas 2012/9/16 WoHinDu : > Hey, > > sorry for my bad englisch. Englisch is not my nativ language, but i hope you > can understand it and sorry for

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread Helly
wow I'm really glad I embarrassed myself on the whole internet. Thanks for answering with zero condescension. I am going to try to install this today. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Easy question to the Auth System

2012-09-16 Thread WoHinDu
Hey, sorry for my bad englisch. Englisch is not my nativ language, but i hope you can understand it and sorry for the stupid question but i'm new at Django. I have a table called "Event" in this Table i store some events with title, date/time an a description. But how can i "connect" this

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread hevok
You need the PostgreSQL database adapter for Python: pip install psycopg2 or easy_install psycopg2 Cheers, Hevok On Sunday, September 16, 2012 4:28:12 AM UTC+2, Helly wrote: > > Hello all, > > I've been trying to set up Django for quite some time now. I'm on Mac OS X > Lion 10.7.4. As to my

Re: Customizing the Django Admin Interface

2012-09-16 Thread hevok
Its the correct way to copy the templates and static files into your project folder, if you want to customize them. Otherwise the changes would disappear as soon as you deploy or setup-up your project on a different computer/virtual environment. Try F5, CTRL-F5 or CTRL-R to reload CSS in the

Changing table's engine through migration scripts

2012-09-16 Thread Gurpreet Bhatia
corrected the wrong subject :) On Sun, Sep 16, 2012 at 12:22 PM, Gurpreet Bhatia < gurpreetbhatia@gmail.com> wrote: > Hi Everyone, > > I have one query: > > Should we change the database(mySQL) table's engine through migration > scripts or not? If not then why? > > Following were my

Re: Customizing the Django Admin Interface

2012-09-16 Thread Gurpreet Bhatia
Hi Everyone, I have one query: Should we change the database(mySQL) table's engine through migration scripts or not? If not then why? Following were my proposal: def forwards(self, orm): # Change engine from MYISAM to INNODB db.execute('alter table abc ENGINE=INNODB;')

Re: Newbie Project Setup and Terminology Questions

2012-09-16 Thread Matt Woodward
Thanks to all for the examples and insight! Very helpful. Matt -- 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/-/sITNuGB_k54J. To post to this group, send

Re: Newbie, trying [read: failing] to set up Django

2012-09-16 Thread jyria
Do you have psycopg2 installed? If you have pip then "pip install psycopg2" I would suggest using python virtualenv for django development. Makes life easier. On Sunday, September 16, 2012 5:28:12 AM UTC+3, Helly wrote: > > Hello all, > > I've been trying to set up Django for quite some time

Admin does not show icon_calendar.gif

2012-09-16 Thread trojactory
Hi, After deploying my admin site to production, which is configured to use S3 for static assets, some icons are missing in the admin site. For instance, icon_calendar.gif is missing which is the button for showing the calendar popup. I believe the bug is related to a django-storages bug

Re: admin problem

2012-09-16 Thread Harjot Mann
done with it thnkuu sooo much On Sun, Sep 16, 2012 at 6:27 PM, Harjot Mann wrote: > how an i use it??/ > > > > On Sun, Sep 16, 2012 at 6:25 PM, Nevio Vesic wrote: > >> >>

Re: admin problem

2012-09-16 Thread Harjot Mann
how an i use it??/ On Sun, Sep 16, 2012 at 6:25 PM, Nevio Vesic wrote: > > https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.__unicode__ > > > On Sunday, September 16, 2012 2:52:43 PM UTC+2, Harjot Mann wrote: >> >> hello

Re: admin problem

2012-09-16 Thread Nevio Vesic
https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs#django.db.models.Model.__unicode__ On Sunday, September 16, 2012 2:52:43 PM UTC+2, Harjot Mann wrote: > > hello everyone > I have made a project in django on student dmc records > as there are many students whose data is

Re: tree.io installation with django

2012-09-16 Thread Nick Apostolakis
On 16/09/2012 12:01 μμ, Fabian Weiss wrote: I would like to do, but my Debian Distribution just offers 1.4! Maybe I can install another one, but than I probably get Version missmatch.. :/ You could install any version you like through the use of pip an virtual env Check it out. Its quite

Re: django.contrib.markup deprecated in 1.5 - what's the alternative?

2012-09-16 Thread Phil Gyford
Thanks for the pointer Jirka - I hadn't managed to find that ticket. Makes sense and, like you, I only have a few trusted users entering text that will be filtered. On 15 September 2012 19:37, Jirka Vejrazka wrote: > Hi Phil, > > incidentally, I was looking at this

Re: Django, how to automatically sort the database's entries when I add an entry?

2012-09-16 Thread Daniel Roseman
On Sunday, 16 September 2012 00:00:09 UTC+1, Nicolas Dubien wrote: > > Hi, > > I'm using a quite huge database with twenty thousand entries or more. At > the beginning, I used to sort it each time (.sort_by("my_field_name")) I > need the page but I saw that it took me lot of time to generate the

Re: tree.io installation with django

2012-09-16 Thread Fabian Weiss
I would like to do, but my Debian Distribution just offers 1.4! Maybe I can install another one, but than I probably get Version missmatch.. :/ Am Samstag, 15. September 2012 23:32:06 UTC+2 schrieb Nick Apostolakis: > > > > On Sat, Sep 15, 2012 at 11:41 PM, Fabian Weiss >

Customizing the Django Admin Interface

2012-09-16 Thread JJ Zolper
Hello, I was able to locate the Django files for the admin under contrib in the source. I was curious if I could get some tips about customizing the interface. One website I read said I shouldn't change any of the Django source but if I want to set up a slightly different login page for