Re: ANN: Releasing Django Media Tree, a media file management application for the Django admin

2012-01-27 Thread Samuel Luescher
Hi, I just pushed a massive update to django-media-tree that may interest you. It now contains generic view classes, and the CMS plugins are actually based on those. So creating FeinCMS plugins should now be quite easy. It's all documented, these pages are relevant: http://readthedocs.org/docs/

Re: User-specific sites

2012-01-27 Thread Russell Keith-Magee
On Wed, Jan 18, 2012 at 5:35 AM, Eryn Wells wrote: > Hi all, > > This is my first post and it's a simple question... (I think) > > In my experience, it seems like Django allows users to log in to access and > modify the same content, like a blog with multiple authors or a CMS. I'm > trying to fi

Re: Django silences exceptions raised by functions called during template rendering

2012-01-27 Thread Russell Keith-Magee
On Fri, Jan 13, 2012 at 9:30 PM, Ioan Alexandru Cucu wrote: > Hi guys, > > Using django 1.1.1 > Example template snippet template snippet: > > {{ foo.bar }} > > If 'bar' raises an AttributeError, the exception is silenced and an > empty string is displayed. > I tried setting DEBUG, TEMPLATE_DEBUG,

Re: Problem with Django! Please help

2012-01-27 Thread Tomas Neme
So, you need to create a "user registration" view. Plus, I'd just use auth.models.User https://docs.djangoproject.com/en/1.3/topics/auth/ because you're saving the passwords as plain text, and that is A Bad Thing. That, and because there's a bunch of stuff and apps you can use to help you on all

Re: django noob question

2012-01-27 Thread adj7388
I forgot to address the issue of your LeagueTable, which appears to be a way to keep track of standings. It looks like what you're really doing is trying to keep track of matches won and lost, points earned, etc i.e., the standings of a league. One way to do this is with a Match model: class Matc

Re: django get value from oracle function

2012-01-27 Thread Ian
On Jan 20, 3:05 pm, citos88 wrote: > I use Django and Oracle, and I want call oracle's function and catch > and save to django's variable this what return that function. How can > I do this? You'll need to get a database cursor and use its callfunc method, something like this: from django.db imp

Re: Django vs. Ruby on Rails

2012-01-27 Thread Chris Czub
> 3) Using one or the other for Geographic Information Systems work; I know a lot of GIS people like GeoDjango a lot. I can't comment more than that as I'm not familiar with the field, but it says something that I've heard of GeoDjango but nothing similar for Rails. On Thu, Jan 19, 2012 at 10:59

Re: Django vs. Ruby on Rails

2012-01-27 Thread Tim Chase
On 01/19/12 09:59, Brian D wrote: 1) Comparing the framework to Django; In the broadest strokes (and from my understanding of it), Rails defaults to introspecting your database and building internal models of it while Django specifies models first and then builds the database out of it. Dja

Re: django 1.4 orm standalone - GenericForeignKey

2012-01-27 Thread Vaal
think I found a solution, but need to check[code]settings.configure(    DATABASES={        'default': {            'ENGINE': 'django.db.backends.sqlite3',            'NAME': 'db.sqlite',        }    },    INSTALLED_APPS=(    'django.contrib.contenttypes',))[/ code] -- You received this message b

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-27 Thread Stuart Laughlin
Hello Dale -- I see you asked this question nearly two weeks ago, but for some reason your message was delivered to my inbox just today. Since your background is apache, I would stay there if I were you (and use mod_wsgi for your django apps). The only caveat is that I have no experience runni

Re: django noob question

2012-01-27 Thread adj7388
Without knowing your problem domain, you might want to start off with: class League(models.Model): name = models.CharField(max_length=200) class Team(models.Model): name = models.CharField(max_length=200) league = models.ForeignKey(League) Generally you don't want a model with a plur

Re: how to lookup dictionary in filter return?

2012-01-27 Thread Reinout van Rees
On 16-01-12 10:10, snow leung wrote: my filter return dictionary like this: {{ somevalue | dic_filter }} but when i try this {%for itm in somevalue | dic_filter %} {{itm}} {%endfor %} it only print the key how can i get the value with this ? It is the same in Python. Looping over a dic

Re: Error with Apache + mod_wsgi

2012-01-27 Thread Reinout van Rees
On 13-01-12 23:09, polar wrote: ImproperlyConfigured: Error importing middleware django.middleware.csrf: "No module named csrf" I don't understand why because I didn't change anything in apache or in the django.wsgi files. I just restart my cloud server. In the same time, a php project running w

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Thanks a lot I was thinking I would learn the Google Maps API. Have you worked with OSM? Do you have any input if you have used OSM and if you have used Google Maps what your comments are? Thanks, JJ Zolper -- You received this message because you are subscribed to the Google Groups "Django

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Thanks a lot I was thinking I would learn the Google Maps API. Have you worked with OSM? Do you have any input if you have used OSM and if you have used Google Maps what your comments are? Thanks, JJ Zoler -- You received this message because you are subscribed to the Google Groups "Django

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
> ActivePython for Windows includes the win32 extension libraries (if > one wants to go to native Windows code -- though the now standard ctypes > library permits similar capability if one knows the API), and PythonWin > IDE (as I recall, this started life as an included demo of the win32 > ext

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread JJ Zolper
Since I will be deploying my Python code on a server that is based on Linux wouldn't it be smart that I develop my Python code on something similar to my VM for Django? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on

Re:

2012-01-27 Thread Babatunde Akinyanmi
I'm presently working on something very similar. I created a model that holds a single question, its options and its answer. I also created what I call QuestionForm which will draw the amount of Question objects needed and then render them as a form. When the form is submitted, the QueryDict is pas

Re: Problem in Geodjango

2012-01-27 Thread Jeff Heard
Check that you are actually using the django.contrib.gis.db.backends.postgis (or other) database backend in your settings.py. It sounds like the SQL to create geometry columns is never getting called. On Thu, Jan 12, 2012 at 4:38 AM, Vicky .. wrote: > Hi Everyone .. > > I am following the steps g

Re: GeoDjango - Error while importing data

2012-01-27 Thread Jeff Heard
you are using Postgres 9.1 There is a bug in the adapter for 9.1. It is addressed and fixed with this patch: https://code.djangoproject.com/ticket/16778 On Mon, Jan 16, 2012 at 2:52 AM, Serge RABEVOHITRA < serge.rabevohi...@gmail.com> wrote: > Hi, > > I've just begun to learn GeoDjango. So I f

Re: Inheriting Permissions from Abstract Class

2012-01-27 Thread Alec Koumjian
Just wanted to ping this as it just got approved. -- 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/-/vYH8aakMXNIJ. To post to this group, send email to django-

Re: Confused with django model Limit and Offset Implementation

2012-01-27 Thread Swaroop Shankar V
got it working thanks anyway :) Thanks and Regards, Swaroop Shankar V On Mon, Jan 23, 2012 at 12:00 PM, Leandro Ostera Villalva < leost...@gmail.com> wrote: > AFAIK it is [offset:page] > > El 22 de enero de 2012 20:40, Swaroop Shankar V escribió: > >> Hi, >> Am trying to create a custom pagina

Re: Group Moderation

2012-01-27 Thread Karen Tracey
On Wed, Jan 25, 2012 at 12:36 PM, Alec Koumjian wrote: > I posted early yesterday and still haven't been approved to post or > comment. I could not find an administrative contact. Please advise. > > Apologies -- something seems to have broken with the google groups moderation emails -- I have not

Re: What am I doing wrong with this URL Pattern

2012-01-27 Thread Tim Chase
On 01/19/12 03:36, Django Newbie wrote: Example. url(r'^People/Info/(?P\d+)/$', 'iFriends.People.views.details'), url(r'^People/Info/(?P[a-z]{3})/$', 'iFriends.People.views.detail_name'), It works with numeric value. if I use "http://localhost:8000/ People/Info/1/" but not with if I use http:

Re: Should someone with no programming experience start learning Python, or Django (along with Python) first?

2012-01-27 Thread Tim Chase
On 01/17/12 15:40, Steve wrote: Just as the title says, I have basically no programming experience. I want to program purely for the web. I know a bit of HTML, CSS, and very minimal amounts of Java. Can I start learning Django first and go from there? Is that a bad idea? Since Django is wri

django 1.4 orm standalone - GenericForeignKey

2012-01-27 Thread Vaal
Hi! In version 1.3 I have no problem using GenericForeignKey in standalone scripts with Django ORm and GenericForeignKey. And in 1.4 there is a problem. http://dpaste.com/694017/ (virtualenv) C:\Users\user\Desktop\django-test>python django14.py Traceback (most recent call last): File "django14.

problems running subprocess inside django view

2012-01-27 Thread Mark Lancaster
I'm having problems running subprocess inside a django view using: result = subprocess.Popen([ , ], stdout=subprocess.PIPE).communicate()[0] exactly the same method works perfectly inside a regular python script. Should I be using a different method to initiate a script? Thanks -- You receive

Handling multiple parameters on URI via GET

2012-01-27 Thread Darren Spruell
I've puzzled my way into a corner. Figuring this will be a palm-to-forehead moment. I have a page on my site which is Paginator-ed for the object list. I'm sticking to the vanilla setup from the docs so when it is in effect I've got a URI query string of '?page=%d' processed via GET. I've added a

Parsing HTML

2012-01-27 Thread ddtopgun
i'am new to django and i want to try get the content of HTML. can help me how to get the content of html. f=urllib.request.urlopen("http://site_name.com";) s=f.read() f.close() but the code is display all code html. i want to just take the contents of tag html. thanks. -- You received this m

django noob question

2012-01-27 Thread yousuf
this is my models.py from django.db import models # Create your models here. class Leagues(models.Model): LeagueName = models.CharField(max_length=200) class Team(models.Model): TeamName = models.CharField(max_length=200) class LeagueTable(models.Model): league = models.ForeignKey(

IntelliJ IDE, Running & Debugging Tests

2012-01-27 Thread Trevor Ewen
Hi - Has anyone managed to run/debug their tests in IntelliJ IDE? If so, are there any specific tricks to the launch configurations, IDE setup, or version. Any information you have would be very helpful. Thanks, TE -- You received this message because you are subscribed to the Google Groups "

Re: [pinax-users] Learning Django+Pinax - Recommend books and/or tutorials?

2012-01-27 Thread Steven Elliott Jr
> > What would you recommend? > To get started with Python: http://pragprog.com/book/gwpy/practical-programming http://www.amazon.com/gp/product/1590599829/ref=pd_lpo_k2_dp_sr_3/182-5610174-4840816?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=lpo-top-stripe-1&pf_rd_r=1YTG71HMBVWK64HZ2TP2&pf_rd_t=201&pf_rd_p=486

Django empty admin in Development

2012-01-27 Thread darwin_tech
Hi, I have a problem which has stumped me for some time now. On my development server my Django Admin works as expected, showing all my models and the auth models. However, on the production server, even though the whole application works fine, when I log into the admin I see nothing. No models, n

Re: Determine gender from first name

2012-01-27 Thread Carsten Agger
Den 25-01-2012 09:59, Praveen Krishna R skrev: *I don't know if there are any databases or webservices available for the purpose. But how would you handle the exceptions ?! Like if it does not exist in the db, and common names used across genders ?!* * * In general this would not be possible.

Re: Moving a file manually

2012-01-27 Thread Jonathan Paugh
On 01/26/2012 03:44 AM, Tor Nordam wrote: Hello, I have a model with a FileField, that I use to store some user uploaded files. After a while, I changed my mind about where to store the files, so I was just wondering if there is a way to manually move a file, and then update the location of the

Re: Determine gender from first name

2012-01-27 Thread Jonathan Paugh
- Original Message - From: Demetrio Girardi Sent: 01/25/12 03:49 AM To: django-users@googlegroups.com Subject: Determine gender from first name This is not a django-specific question, but I couldn't find anything useful on the subject and have no better place to ask. Let's say I want to

queryset[] returns different reference every time it is called

2012-01-27 Thread newme
users = User.objects.filter(pk=1) user0 = user[0] user1 = user[1] user0 is user1 returns false it seems [] returns different reference every time it is called? how could this be done? i know it's maybe a python question, if i post it in a wrong group, i'm sorry. -- You received this message be

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Steven Elliott Jr
On Jan 25, 2012, at 9:14 PM, JJ Zolper wrote: > > The keywords were 'in production'. The development server (i.e. python > > manage.py runserver) works fine under Windows. But when you want to > > make the website accessible to your audience (the internet, company > > etc.), you should host that

Help with new version of django

2012-01-27 Thread itua ijagbone
Hello, please i need help as to how to update my project to the lastest version of django 1.3.1. i have been using 1.1.1 to develop the project. Please how do i go about it, making my project conform to 1.3.1 -- You received this message because you are subscribed to the Google Groups "Django us

Django as app backend

2012-01-27 Thread jompa
I was thinking about using django as backend for a simple smartphone app and, as I'm quite unexperienced with Django and it's possibilities, was wondering if anybody has any experience of this. Basics: Abillity ro create a node with image, description etc (backend admin). Retrieve nodes via JSON,

Model object can be created in the admin, but cannot be edited after saving?

2012-01-27 Thread marshall
I've got a model that serves as a front-end to spawn celery tasks called LaryerImportTask. I want the admin user to be able to create LayerImportTask objects in the admin, but I don't want them to be able to change it in the admin after it's been created. Any ideas on how I could do this? -- You

Group Moderation

2012-01-27 Thread Alec Koumjian
I posted early yesterday and still haven't been approved to post or comment. I could not find an administrative contact. Please advise. -- 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.goo

Template Loader Error: (It's been really frustrating till now..!)

2012-01-27 Thread Tony Kyriakides
Hey all... i get this error while i have a template directory and my about.html file It doesn't display the home.html either... Environment: Request Method: GET Request URL: http://127.0.0.1:8000/about/ Django Version: 1.3.1 Python Version: 2.7.2 Installed Applications: ['django.contrib.au

TinyMCE, safe tag and wrong conversion of entities

2012-01-27 Thread jurgen
In my admin interface, I can create a database entry which contains HTML using TinyMCE. I do this to create publication entries for my website. In the database, a publication entry stores entities using numeric encoding. To render a list of publications, I use the safe tag in the django template. T

Re: django docs __unicode__ return u'%s %s

2012-01-27 Thread Alec Koumjian
The '%' symbol is used for formatting inside of a string. This is Python, not Django specific. It is a shortcut to insert variables (and format them to your liking) instead of doing messy stuff like this: adjective = 'messy' print 'This is the ' + adjective + ' way to do it' As opposed to: adje

Inheriting Permissions from Abstract Class

2012-01-27 Thread Alec Koumjian
I have some custom permissions that I would like to give to about half a dozen different classes. If I did them individually they might look like this: MyModel(models.Model): ... Meta: permissions = (('view_mymodel', 'View Mymodel'),) ... That's all good and well, but follow

Re: get_FOO_display() for generic/variable choice fields

2012-01-27 Thread Michael Elkins
On Tue, Jan 24, 2012 at 03:51:27AM -0800, katstevens wrote: Obviously the 'val = obj.get_field_display()' line doesn't work! Is there a generic way of doing this (something like obj.get_display(fieldname) ?) or am I going to have to hard code separate checks for get_country_display() and get_dia

django-admin.py is not working.

2012-01-27 Thread Sammy
I am new to django and i have been trying to create a django project with no success. Every time i type django-admin.py startproject mysite. I get C:\Users\WASSWA SAM\Documents\django\djcode>django-admin.py startproject mysite Usage: django-admin.py subcommand [options] [args] Options: -v VERBOS

Re: I need help with Python Tools for Visual Studio 2010 and Django

2012-01-27 Thread Jonathan Paugh
On 01/23/2012 03:58 PM, JJ Zolper wrote: Yes I knew I was in the Python shell I just never saw anything that described you couldn't make Django commands within the Python interpreter. I mean it is based on Python isn't it? That's where I thought logically you could make Django calls from in Pyt

Recurly REST API

2012-01-27 Thread Zeeshan Syed
Hey guys, I'm pretty new to Django. I was curious to know if someone could provide me with an example of how to utilize the Recurly API using Pyhon and Django. The API is here http://docs.recurly.com/api/subscriptions. But I'm unsure of how to perform an action like reactivate a subscription. If s

confusion about choosing the database user name (Postgresql/psycopg2)

2012-01-27 Thread MiddleForkGIS
I'm a little confused about the choice of the database user to specify in the settings.py configuration file. On the one hand, if I set the user to be 'www-data' (the Apache2 user), I can serve pages to the public just fine, but cannot use the admin site. DatabaseError at /admin/ permission denie

Re: Transition from VPS(WHM/CPanel) to EC2

2012-01-27 Thread Matt Stevens
I've never used EC2, but on my VPS with Linode I have: 1. Nagios with event handlers, can be configured to perform any action when the state of a service or host changes. 2. I use Bind, no experience with Route 53. 3. pgAdmin is a brilliant program, much better than phpMyAdmin – albeit

Re: Confused with django model Limit and Offset Implementation

2012-01-27 Thread Leandro Ostera Villalva
AFAIK it is [offset:page] El 22 de enero de 2012 20:40, Swaroop Shankar V escribió: > Hi, > Am trying to create a custom pagination for my project, but am seriously > struck with the django implementation of Limit and offset. I went through > the documents, instead of making me understand how it

pyodbc.connect timeout question

2012-01-27 Thread Luis Tavera
Hi all, I have some code similar to the one below that runs slightly differently if I run it outside Django and within Django. The difference is that within Django it takes much longer to raise the pyodbc.Error (several minutes) than outside Django (a few seconds). I am new to Django (and Python)

Re: Setting Network settings from Python/Django

2012-01-27 Thread Leandro Ostera Villalva
I take it that, at the end of the day, Django is Python code, thus you can execute whatever Python code you want in certain places (like views). Hope that pointed somewhere! El 22 de enero de 2012 01:20, Ganesh Kumar escribió: > Hi guys > > I'm working on a simple web interface for an embedded

Re: imagefiled don't Work

2012-01-27 Thread Tony Kyriakides
(in the terminal) python manage.py syncdb On Jan 21, 8:57 am, cha wrote: > Hello I reading this > tutorialhttps://pype.its.utexas.edu/docs/tutorial/unit6.html#answers > it's work OK But When I want improve it and add ImageField in Category > Model i have problem with ImageField It's Not uploaded

Re: How can I go about this?

2012-01-27 Thread Leandro Ostera Villalva
You can still use some of what Donald said to give you an idea of where to start. Have you went thru the tutorials? Do you know the basics? That would give us a better chance to help you! =) El 22 de enero de 2012 00:44, coded kid escribió: > Thanks for the reply. I don't really mean twitter cl

Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."

2012-01-27 Thread Leandro Ostera Villalva
AFAIK when you try to access it ( quests[579] ) it gets loaded so performing .delete is possible. My guess is that you are none-ifying the id somehow either by operating with it or by improper redefinition of the id field in your model. El 21 de enero de 2012 18:49, JohnA escribió: > Is your co

Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-27 Thread Aaron Cannon
Hi. Have you created a 500.html file in your templates directory? Aaron On 1/21/12, Chris Seberino wrote: > >> Check your apache logs. > > Last line below says error is that there is no handler500. I thought > a missing web page for some URL was a 404 error so I'm not sure why > this error is

Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."

2012-01-27 Thread Leandro Ostera Villalva
Doesn't the Create method or the YourModel() constructor initialize the pk ? El 21 de enero de 2012 12:43, JohnA escribió: > How are you finding these objects? That might point to the answer. > > Probably the likeliest explanation is that you are creating the > objects but not saving them. > >

multiple modelforms in a single view not saving

2012-01-27 Thread Chris Wolfe
Hi - I am working on create form to save a lease made up the following model, view and form. Whenever I try to save a lease using the lease form, an integrityerror pops up saying that the lease.id field is null. Does anyone have an idea why this might be happening? #Views.py def register_new_tena

Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."

2012-01-27 Thread Leandro Ostera Villalva
No that I know. Can you show us some more code like how you defined the model and how do you come to this id=None issue? El 21 de enero de 2012 09:31, Chris Seberino escribió: > > On Jan 21, 6:44 am, Tom Evans wrote: > > Models are representations of rows in a database. > > Deleting a model ins

Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-27 Thread Aaron Cannon
Any hints in the Apache error logs? Aaron On 1/21/12, Chris Seberino wrote: > I am proxying my Django app behind Apache. I created a 404.html in my > template directory but when I try to test it I get the following error > that appears to come from Apache... > > Internal Server Error > > The se

Re: what is the best IDE to use for Python / Django

2012-01-27 Thread Leandro Ostera Villalva
I actually use a text editor (Sublime Text 2, simply stunning) and a lot of shell. For projects I have my own git server and hudson-ci which I use locally and can sync with the one we use at work easily, and with little effort those can be integrated into the editor, too, which is wonderfully made

Re: How to use a DB table for choices=tuples in ChoiceField?

2012-01-27 Thread Leandro Ostera Villalva
Here's a nicer way to do it. CHOICES = list ( (obj.code,obj.name) for obj in Scac.objects.all() ) Or you can always make a static method for it and call Scac.objects_as_list() El 21 de enero de 2012 05:01, Bill Beal escribió: > It looks like the Pythonic way is to create the list in > models.p

Re: Handling copy on a small project

2012-01-27 Thread Leandro Ostera Villalva
I'd vote for putting it in the db too. Flatpages are good to go. El viernes 20 de enero de 2012, Daniel Roseman escribió: > On Friday, 20 January 2012 04:39:44 UTC, Jeremy Boyd wrote: >> >> Hi all, >> >> For my side project, we have the need to rapidly iterate on the app's >> copy. As I see it, w

Re: Why can't erase this model object? "AssertionError: Question object can't be deleted because its id attribute is set to None."

2012-01-27 Thread Leandro Ostera Villalva
When you have an instance of an object and it has no id (that means, id is set to None) then it actually does not represent any object in your database, ergo, you can't delete it because it's not there. Can you show us the portion of code where you are trying to delete it? El 20 de enero de 2012

Re: How to use a DB table for choices=tuples in ChoiceField?

2012-01-27 Thread Leandro Ostera Villalva
I'm new to this list but a nice way to share code snippets is thru services like gist. Here's how the first source code would have looked: https://gist.github.com/1651488 Ontopic: I believe that a method called 'as_list' would be more descriptive. Perhaps the manager included in models.Model has

Re: Model-driven Django development

2012-01-27 Thread Leandro Ostera Villalva
Here with django you define models in Python code and the framework autogenerates layers for you to interact with the db. With utilities such as syncb from manage.py or sqlall you can let the framework create a db or just show you the sql behind those models you defined. It's really handy. El 20

django get value from oracle function

2012-01-27 Thread citos88
I use Django and Oracle, and I want call oracle's function and catch and save to django's variable this what return that function. How can I do this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-use

Hello there, and sort of a question

2012-01-27 Thread Leandro Ostera Villalva
Hello guys, I'm new to Django and looking for the best way to setup a site as soon as possible. I already went over the basics and did a pair of websites, a blog using some django.contrib stuff incluiding an xml-rpc interface for the metaweblog api and some other apps that I needed (like a random d

Working with Geodjango fields in a form

2012-01-27 Thread Jair Trejo
Hello! I hope someone can help me. I've got a model with a required location field (a Geodjango Point) and some other information. I created a model form from it and use a simple textbox widget for the location field, so the user writes coordinates of the form: 19.2, -97.1 ¿How can I ma

Re: list_filter not showing up in admin

2012-01-27 Thread Edvinas J
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter On Fri, Jan 13, 2012 at 8:28 AM, The Ape wrote: > Hi everyone, > > I am quite new to delevoping with django and I am trying to setup a > simple blog app. > I wanted to use a "list_filter" in the

about QuerySet

2012-01-27 Thread newme
user = User.objects.filter(pk="") user is a QuerySet every time i call user[0], i returns a different reference. maybe it should be a python question. i want to know i QuerySet does that. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Retrieve repository information from the github using github API

2012-01-27 Thread anoop mohan
Hi friends, I need to Create a web app in Django. This web app should take a list of github usernames and show the recent commits as well projects owned by this github user. The list of users should be stored in the DB and I should be able to update this from the Admin. Use the github API. Curr

help-i'm a newbie

2012-01-27 Thread Mahjabeen Akter
Hi all, I want to start learning django, but the tutorial seems so difficult for me! :( " django-admin.py startproject mysite " this line of code is not working. Could you please tell me what's wrong with it? or what should I do to set up a new project? Thank you. -- You received this message be

ModelForm

2012-01-27 Thread hack
Hello, I am new to Python and have a Java background. I have created a bunch of models, and forms using ModelForm: class FormName(ModelForm): class Meta: model = FormName Whenever I display the form in my browser with {{ form.as_table }} the form queries all the foreign ke

help with tutorial 01

2012-01-27 Thread Cyd
In the tutorial here: https://docs.djangoproject.com/en/1.3/intro/tutorial01/ I get no errors up until the p.save() at the end: # No polls are in the system yet. >>> Poll.objects.all() [] # Create a new Poll. >>> import datetime >>> p = Poll(question="What's u

Retrieve repository information from the github using github API

2012-01-27 Thread anoop mohan
I need to Create a web app Django. This web app should take a list of github usernames and show the recent commits as well projects owned by this github user. The list of users should be stored in the DB and I should be able to update this from the Admin. Use the github API. Currently I have no ide

Re: ImageField filename

2012-01-27 Thread Damian Soriano (Gmail)
You can define a function that returns the path to upload the image, in this function you receive as argument the object being saved (instance) and the name of the file (filename). You can return whatever you want as a path (that include the filename) def upload_path(instance, filename): retur

Django vs. Ruby on Rails

2012-01-27 Thread Brian D
I'm wondering about diving into Ruby on Rails to qualify for a position, or spending my time instead going deeper into a full bells and whistles prototype Django site and betting on jobs opening up in my field. This is really a GIS career professional question. Has anyone here crossed the fence ov

Re: ImageField filename

2012-01-27 Thread wayne
This is the same as the FileField. The UploadedFile class has a name property, which can be used.. https://docs.djangoproject.com/en/dev/topics/http/file-uploads/#handling-uploaded-files On Jan 19, 9:56 am, Mike Dewhirst wrote: > How do I get the actual filename of the uploaded image? > > The

Retrieving repository details github using github API

2012-01-27 Thread anoop mohan
I need to create a web app in Djangok. This web app should take a list of github usernames and show the recent commits as well projects owned by this github user. The list of users should be stored in the DB and I should be able to update this from the Admin. Use the github API. Currently I hav

What am I doing wrong with this URL Pattern

2012-01-27 Thread Django Newbie
Hi, I am trying to figure out a way to call a function depending on the parameter in the URL. Example. url(r'^People/Info/(?P\d+)/$', 'iFriends.People.views.details'), url(r'^People/Info/(?P[a-z]{3})/$', 'iFriends.People.views.detail_name'), It works with numeric value. if I use "http://localho

Re: tutorial 2 admin site problem

2012-01-27 Thread Alexandru Moldovan
Did you declared a super user when you've created the database for the first time from you app? On Wed, Jan 18, 2012 at 12:39 PM, Denis Darii wrote: > You can replace: > > url(r'^admin/', include(admin.site.urls)), >> > with: > > url(r'^/', include(admin.site.urls)), >> > in your *urls.py* if yo

Should someone with no programming experience start learning Python, or Django (along with Python) first?

2012-01-27 Thread Steve
Just as the title says, I have basically no programming experience. I want to program purely for the web. I know a bit of HTML, CSS, and very minimal amounts of Java. Can I start learning Django first and go from there? Is that a bad idea? -- You received this message because you are subscrib

User-specific sites

2012-01-27 Thread Eryn Wells
Hi all, This is my first post and it's a simple question... (I think) In my experience, it seems like Django allows users to log in to access and modify the same content, like a blog with multiple authors or a CMS. I'm trying to figure out how to do user-specific sites – something like a blog s

Re: cannot set GeometryProxy with value of type

2012-01-27 Thread Ryan H.
Hi Antony, I don't know if you've already gotten your answer (hopefully), but if not, I can share my notes on what I did to solve the problem when I saw the same error: First, check the spatial data in your database. There should be a column called "type" with an entry for each geometry. I'm be

Problems with Django Form Processing

2012-01-27 Thread zhyr28
Hi all, I want to develop a survey app that has ten radio selects. After people submit the survey, the data will be processing and then output the result. I met a problem when I was trying to process the data from the form. Here is the code: forms.py: contains the survey questions. QUESTION_ONE= (

Multi-conference, multi-user version of Symposion? (Meetup.com/EventBrite style)

2012-01-27 Thread Paul Schlacter
Would anyone be interested in working with me to develop a multi-conference multi-user version of Symposion? Basically I want to create an open-source meetup.com/eventbrite style site allowing users to create events (including paid ones). An RSVP list will need to be shown on the event, as well a

failing django install on dreamhost

2012-01-27 Thread ebhakt
I have tried to install django on dreamhost using many ways : 1. I have tried the official django install script from dreamhost 2. tried to follow instructions as per http://jeffcroft.com/blog/2006/may/11/django-dreamhost/ But in all the cases it fails at the syncdb step I tried the ste

how to embedd video

2012-01-27 Thread jak.plopelor
how do can I embed video in a django template? what I tried is this (using jwplayer): ''' {% if error_message %}{{ error_message }}{% endif %} Loading the player ... jwplayer("container").setup({ flashplayer: "/player.swf", file:

Re: filebrowser not uploading

2012-01-27 Thread Bojan Liu
i got the same error, upload button can't work. -- 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/-/S9gz6eKUU_QJ. To post to this group, send email to django-us

how to lookup dictionary in filter return?

2012-01-27 Thread snow leung
my filter return dictionary like this: {{ somevalue | dic_filter }} but when i try this {%for itm in somevalue | dic_filter %} {{itm}} {%endfor %} it only print the key how can i get the value with this ? thx! -- You received this message because you are subscribed to the Google Groups

GeoDjango - Error while importing data

2012-01-27 Thread Serge RABEVOHITRA
Hi, I've just begun to learn GeoDjango. So I followed step by step the "geodjango tutorial". When I was at the step "Import data" (TM_WORLD_BORDERS-0.3.shp) , i've got this error message : "Failed to save the feature (id:0) into the model with the keyword arguments : {'iso2' : u'AG' DatabaseEr

Re: One To One relationship with a generic relation?

2012-01-27 Thread snow leung
no way On 1月15日, 上午9时15分, Stodge wrote: > I've used generic relations and they worked, but in one particular > case I need a one-to-one generic relation. Is this possible? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Fcgi problem

2012-01-27 Thread Angel Lacret
It doesn't match the urls.py file even if i update the .fcgi file -- 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

LEARNING DJANGO- NEED HELP (ERROR 404)

2012-01-27 Thread Dharmendra Verma
NEED HELP- I started learning Django, and was following tutorial from http://www.djangobook.com/en/1.0/chapter02/ , but when i started server after editing view file (followed tutorial as it is) getting error- Page not found (404) Using the URLconf defined in mysite.urls, Django tried these URL pa

Re: Web Servers for Django Projects [WAS: Does anyone know any blogs...]

2012-01-27 Thread Dale
Hi everyone, great discussion for a Django noob, I'm learning lots! What's the consensus (wink) on choice of web server if one is forced to use the same server for dynamic Django/Python _and_ PHP content, and also static content? I guess no one's really forcing me, but it feels like if I have to s

[no subject]

2012-01-27 Thread Arun Ashok
Hai all, I want to develop a django application for online objective type examination.For this i wish to use radio buttons for selecting answers and calculate mark and result at the time of the completion of exam.So i kindly request to my dear friends please give advice for creating this applica

  1   2   >