Re: How to Set Up for Apace and Mod_wsgi

2012-09-12 Thread Jon Blake
I'm not making any progress on this. I have redone part 1 of the Django 1.4 tutorial, and it all works nicely with my Oracle back-end database and the development server. I'm now trying to progress this app to be served by Apache + mod_wsgi. After starting Apache, command httpd -M lists

Re: Iphone applications via django

2012-09-12 Thread Jani Tiainen
I'm developing generic mobile app, mostly to be used with iPad/Android tablets. Currently we don't build native apps due our development being in such a early phase. 12.9.2012 15:49, Sait Maraşlıoğlu kirjoitti: Sencha looks great, and saw some alternatives too, I will check them all. One

Re: Django html indention

2012-09-12 Thread Stephen Anto
Hi, Have you installed Aptana Plugin for eclipse. If not do it and get codding assistance..Thanks for visiting On Thu, Sep 13, 2012 at 2:50 AM, Sait Maraşlıoğlu wrote: > Im using eclipse and it has some nice features about indention, but its >

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Rivsen
I received this e-mail too. It's about someone using 139.com email join the group, and now this e-mail address was closed by 139. Maybe hes mobile phone lost or arrears. 2012/9/13 Jon Blake > I've had a coup[le of these, now. > > > On Tuesday, September 11, 2012 5:27:59 AM

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Jon Blake
I've had a coup[le of these, now. On Tuesday, September 11, 2012 5:27:59 AM UTC+10, Kurtis wrote: > > I just received a very unusual e-mail that included a recent post's > subject. The post in question was: "Re: form doesn't validate when trying > to upload file". It was sent directly to my

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Matt Schinckel
One really small nitpick: when returning a 405, it is a requirement that you return a header with the acceptable methods: > > > 10.4.6 405 Method Not Allowed > The method specified in the Request-Line is not allowed for the resource identified by the Request-URI. The response MUST include an

Re: Model Validation with Exception Handling

2012-09-12 Thread Kurtis Mullins
Just a quick example of a field that can have two completely different error types but both throw a ValidationError while running full_clean(). Let's say my Model includes an email address. The email address must be unique. It could either fail because 1. It's not Unique (or) 2. It's an invalid

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Kurtis
I guess I'm the only one who loves Django's CBVs :( Maybe some good documentation / third-party tutorial is in order? haha Thanks for sharing though, Cal! -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Model Validation with Exception Handling

2012-09-12 Thread Kurtis
Hey Guys, Do you have any suggestions on a good way to grab error types during Model Validation? I'm not using Forms or HTML. First, here's a simplified snippet showing my current format for Model Data Validation. my_object = MyModel(**data_dict) try: my_object.full_clean()

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Kurtis Mullins
Thanks guys for confirming. I'm glad I'm not the only one! I've just set it as spam, hopefully gmail will catch on. On Wed, Sep 12, 2012 at 6:38 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > +1 just received one of these. > > > On Wed, Sep 12, 2012 at

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
+1 just received one of these. On Wed, Sep 12, 2012 at 10:18 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > Looking at Google's translation of the text, I would guess it's informing > you that you need to be on that user's whitelist: "You send is not > activated 139 mailbox

Testing django 1.5 (trunk) with firebirdsql

2012-09-12 Thread maxi
Hi, I'm testing Django 1.5 from trunk against FirebirdSQL 2.5 on Ubuntu 11.04 with Python 2.7 I'm working right now on a new django-firebird [1] backend which do use the new python firebird driver (fdb) [2]. Then, I'm running the django test suite and I get an error when it try to create

Re: testing a django package

2012-09-12 Thread Thomas Orozco
Actually, Django TestCases can override the URLConf, which allows you to have a given URL for a given view in your test: from django.test import TestCase class MyTestCase(TestCase): urls = 'mypackage.tests.urls' def test_something(): # Do stuff... >From there, you can

Re: ANN: django-otp and friends: one-time passwords and trusted agents

2012-09-12 Thread Thomas Orozco
This seems to be a *very* promising project! : ) Le mercredi 12 septembre 2012 22:27:26 UTC+2, psagers a écrit : > > I recently released a suite of packages to support two-factor > authentication in Django by way of one-time passwords. > > The core package is django-otp

Re: testing a django package

2012-09-12 Thread Jonas Geiregat
> I think you could create an urls.py file for your tests and attach > your views there. Then use the test client to direct requests to those > test URLs and assert that the response is what you expect. I didn't know that could work. I think I'll also need to create views that extend these

Re: testing a django package

2012-09-12 Thread Thomas Orozco
I think you could create an urls.py file for your tests and attach your views there. Then use the test client to direct requests to those test URLs and assert that the response is what you expect. Now, this is probably not going to be practical to test your jQuery components, but you might want

Django html indention

2012-09-12 Thread Sait Maraşlıoğlu
Im using eclipse and it has some nice features about indention, but its only works with html css ... , as soon as I press ctrl+shift+f, it makes indentions. But if I use django tags, it gets my code worse and sometimes causes errors. is there a way to make this indentions easier? I know python

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Nikolas Stevenson-Molnar
Looking at Google's translation of the text, I would guess it's informing you that you need to be on that user's whitelist: "You send is not activated 139 mailbox user's mail seven days will be deleted by the system, please to notify Friends timely activation to receive e-mail." In other words,

Re: testing a django package

2012-09-12 Thread Jonas Geiregat
I can now show you what I really would like to write tests for. https://github.com/jonasgeiregat/django-ajax-forms The code I would like to test is in ajax_forms/views.py mainly the AjaxFormView and the AjaxModelFormView. Any help is appreciated! > >> Is it a view mix in? >> > The package

Re: Possible spam from mailing list? ("China Mobile")

2012-09-12 Thread Nikolas Stevenson-Molnar
I just got the same email after replying to a message. _Nik On 9/10/2012 7:28 PM, Rivsen wrote: > Maybe someone use 139 email, ask group manager check this and contact > that one who use 139 email. > > 2012/9/11 Brad Pitcher > > > Yes, I

ANN: django-otp and friends: one-time passwords and trusted agents

2012-09-12 Thread psagers
I recently released a suite of packages to support two-factor authentication in Django by way of one-time passwords. The core package is django-otp , which defines the framework and provides all of the shared APIs. Integration is possible at several

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Melvyn Sopacua
Op 12 sep. 2012 18:58 schreef "Cal Leeming [Simplicity Media Ltd]" < cal.leem...@simplicitymedialtd.co.uk> het volgende: > > Hi all, > > There is a lot of debate on whether there is a real future for the Django CBVs (class based views). ..snip.. > > Any thoughts? > I understand what you're

Re: not picking up new template

2012-09-12 Thread Thomas Orozco
Here's an example: from django.template import loader l = loader.find_template_loader('django.template.loaders.app_directories.Loader') # Or W/E loader you happen to use l.load_template_source(somewhere/'your_template.html') This will return a tuple (template string, template_path). This way

Re: ViewDoesNotExist !?!?! It certainly does....

2012-09-12 Thread Lachlan Musicman
On Wed, Sep 12, 2012 at 6:19 PM, Sergiy Khohlov wrote: > add to urls > from tafe.views import session_create Thanks. I actually found this solution late late last night while offline, buried deep in the docs:

Re: Plot points from a kml file in django

2012-09-12 Thread Melvyn Sopacua
Open your models in the admin. Fwiw, Geodjango uses overlays on externally hosted basemaps using openlayers API. Rendering maps natively is not supported, as far as I can tell. One a would use mapserver for that. -- You received this message because you are subscribed to the Google Groups

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
On Wed, Sep 12, 2012 at 7:44 PM, Javier Guerra Giraldez wrote: > On Wed, Sep 12, 2012 at 11:58 AM, Cal Leeming [Simplicity Media Ltd] > wrote: > > So, here is a really minimalistic way of having class based views, > without > > the fuss.

Re: tree.io installation with django

2012-09-12 Thread Fabian Weiss
Hi Cal! :) THX for you reply, but I need more informations! I changed the line you said in settings.py, but what shall I do know? Again python manage.py update_ve and ./bin/patch?? I tried again the last step: python manage.py installdb > Traceback (most recent call last): > File

Re: Alternatives to CBVs (class based views)

2012-09-12 Thread Javier Guerra Giraldez
On Wed, Sep 12, 2012 at 11:58 AM, Cal Leeming [Simplicity Media Ltd] wrote: > So, here is a really minimalistic way of having class based views, without > the fuss. > > http://djangosnippets.org/snippets/2814/ looks nice. i like that it respects the idea

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
Am 12.09.2012 um 16:20 schrieb Stephen Anto: > Hi, > > Pls refer this link > http://f2finterview.com/web/Django/15/ it may give you solution Any hint, how to integrate this into the admin? > > On Wed, Sep 12, 2012 at 5:31 PM, Axel Rau

Re: tastypie - some feedback / comments

2012-09-12 Thread Thomas Orozco
After giving it a try for a small personal project / curiosity, I couldn't agree more that it's great for a REST API with querysets, but whenever something doesn't exactly tie into this structure, things get complicated. However, I would say that this can also be a good thing. This forces you to

Re: not picking up new template

2012-09-12 Thread Thomas Orozco
Can you being up a manage.py shell and load the template from there to identify where's Django is pulling the template from? You should be able to go step by step and identify where you're pulling the old template in! If you don't find anything, it's probably because your template actually isn't

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Javier Guerra Giraldez
On Tue, Sep 11, 2012 at 4:56 PM, Matthew Woodward wrote: > Any thoughts/pointers/admonitions/etc. are greatly appreciated. what i typically do: commonly, i have several projects running, each one involves more than just one django project. maybe two django projects, more

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Tim Chase
On 09/12/12 09:56, Cal Leeming [Simplicity Media Ltd] wrote: > Be aware, the below structure works perfectly for us It might help if you include what your $PYTHONPATH is set to, so one knows which directories are expected to be available for importing. -tkc -- You received this message

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Brian McKeever
I actually figured it out. I created a new virtualenv on my development machine and installed the requirements to it, and from that virtualenv, syncdb fails to install the invitationuser table. I guess whoever is in charge of the django-invitation repository introduced a bug without changing

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
lol wtf. Perhaps the code on the production server isn't fully up to date? Did you check the database to ensure the table definitely doesn't already exist? Did you try running "manage.py sql" on the production server to see if the SQL is printed out for the missing table? Cal On Wed, Sep 12,

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Brian McKeever
I am not using any database router. These are my database settings: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'my database name', 'USER': 'my admin name', 'HOST': 'localhost', 'PASSWORD' : 'my password' }

Re: Django-admin (was: tastypie - some feedback / comments)

2012-09-12 Thread Tomas Neme
The admin templates and views themselves are convoluted enough (the price of having them work with anything), and full of enough magic that it's not really feasible to build on top of them to add the required capabilities. Maybe adding new admin views would be a posibility, but what happens when

Re: Syncdb is producing different databases on different machines.

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Are you using any sort of custom db router? (look for DATABASE_ROUTERS in settings). On Wed, Sep 12, 2012 at 5:05 PM, Brian McKeever wrote: > On my development machine, upon freshly creating my postgresql database, > when I run syncdb, it creates two invitation tables - >

Alternatives to CBVs (class based views)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, There is a lot of debate on whether there is a real future for the Django CBVs (class based views). Personally, I find them tedious, and just wanted a way to keep my views clean. So, here is a really minimalistic way of having class based views, without the fuss.

Re: Django-admin (was: tastypie - some feedback / comments)

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
This is just my own opinion but, I can't ever see django-admin going much further than it is now - for much the same reasons as mentioned on the tastypie thread, nor have I come across any alternatives (yet) - although it'd be interesting to hear others thoughts on this. For me the thing I've

Syncdb is producing different databases on different machines.

2012-09-12 Thread Brian McKeever
On my development machine, upon freshly creating my postgresql database, when I run syncdb, it creates two invitation tables - invitation_invitationkey and invitation_invitationuser. On my production server, upon freshly creating my postgresql database, when I run syncdb, it only creates

Re: not picking up new template

2012-09-12 Thread Larry Martell
On Wed, Sep 12, 2012 at 11:56 AM, Thomas Lockhart wrote: > On 9/12/12 8:27 AM, Larry Martell wrote: >> >> On my Mac, I changed a template, and the change was picked up, no >> problem. I checked my change into git, went to another machine, a >> CentOS box, pulled the

Re: not picking up new template

2012-09-12 Thread Thomas Lockhart
On 9/12/12 8:27 AM, Larry Martell wrote: On my Mac, I changed a template, and the change was picked up, no problem. I checked my change into git, went to another machine, a CentOS box, pulled the change down, but django is not picking it up. I've tried everything I can think of - bounced the

Django-admin (was: tastypie - some feedback / comments)

2012-09-12 Thread Tomas Neme
Since this came up, are there any more-or-less packaged alternatives to django-admin? More than twice I've had to give up in something as simple as rendering two-level FK indirections, lest I wanted to override most of the ModelAdmin classes. The thing is that I don't trust myself to be

not picking up new template

2012-09-12 Thread Larry Martell
On my Mac, I changed a template, and the change was picked up, no problem. I checked my change into git, went to another machine, a CentOS box, pulled the change down, but django is not picking it up. I've tried everything I can think of - bounced the server, restarted the browser, cleared the

Re: tastypie - some feedback / comments

2012-09-12 Thread Kurt Pruhs
I've had the same issues. A previous developer used TastyPy for APIs and it's a nightmare trying to modify them beyond the simple, out-of-the-box functionality. In its current state, it's more trouble than it's worth. -- Kurt Pruhs Utah State University Information Technology Department

Re: Newbie Project Setup and Terminology Questions

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Be aware, the below structure works perfectly for us because of trial and error from years of development, it suits the particular style/nature of our projects, and it has been made standardized across the board. I wouldn't recommend using the above, instead, I would recommend looking around for

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Actually, just seen that flash hasn't been maintained, and my own personal usage of it was touch and go at best These days, I also tend to use the approach of storing a message in the session instead (as explained by Jirka). Cal On Wed, Sep 12, 2012 at 2:35 PM, Jirka Vejrazka

Re: Use STATIC_URL in templates

2012-09-12 Thread Chao Chen
hi ,in the Django files you can read the docs/howto/static-files.txt On Wed, Sep 12, 2012 at 10:12 PM, Axel Aguilar wrote: > Hello, I'm pretty new with django, exactly the same than with python, and > after reading a few tutorials and make a very simple django site, I have

Use STATIC_URL in templates

2012-09-12 Thread Axel Aguilar
Hello, I'm pretty new with django, exactly the same than with python, and after reading a few tutorials and make a very simple django site, I have a django/python question... I made this script in python: import os import random url

Re: Dealing with big changelists in admin

2012-09-12 Thread Stephen Anto
Hi, Pls refer this link http://f2finterview.com/web/Django/15/ it may give you solution On Wed, Sep 12, 2012 at 5:31 PM, Axel Rau wrote: > > Am 12.09.2012 um 10:27 schrieb Stephen Anto: > > > There are lots of sources available on

Re: Hung apache threads after upgrading to django 1.4

2012-09-12 Thread Tom Evans
On Wed, Sep 12, 2012 at 2:49 PM, Dane wrote: > After using django 1.3 for a while I upgraded to django 1.4 and started > noticing apache threads hanging indefinitely. I set a timeout to avoid > running out of threads, but it would be nice to know what is causing the >

Re: Django newbie with issues

2012-09-12 Thread Morrti
Hi, We already have django developers here and talking to them they would like to move to 1.4 but they have not had any meaningful discussions with all the interested parties to know when this is likely to be. I'll pass your advice back to them and see what happens though knowing the pace

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Simon Cossar
thank's, that's just what I was looking for. On Wed, Sep 12, 2012 at 6:35 AM, Jirka Vejrazka wrote: > If you have sessions enabled, you can use the built-in messages > framework (look in contrib) to display a message on the "next" page. > Alternatively, you can save

Hung apache threads after upgrading to django 1.4

2012-09-12 Thread Dane
After using django 1.3 for a while I upgraded to django 1.4 and started noticing apache threads hanging indefinitely. I set a timeout to avoid running out of threads, but it would be nice to know what is causing the issue in the first place. Using an strace, I found that the threads are

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
Am 12.09.2012 um 14:47 schrieb Daniel Roseman: >> Am 12.09.2012 um 10:27 schrieb Stephen Anto: >> >>> There are lots of sources available on net for Django pagination. I am >>> using django pagination on my website http://www.f2finterview.com/ for >> show >>> questions and answers. >>>

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Jirka Vejrazka
If you have sessions enabled, you can use the built-in messages framework (look in contrib) to display a message on the "next" page. Alternatively, you can save (semi-) arbitrary data in the user session and retrieve it in the view that displays the "success" page. HTH Jirka -- You

Re: sending data with HttpResponseRedirect

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hey, You might find this helpful; https://github.com/danielfm/django-flash Cal On Wed, Sep 12, 2012 at 5:19 AM, Simon Cossar wrote: > Hi All, I'm just starting to play around with Django... working through > the tutorial and the Django Book. I have just written a view

Re: Iphone applications via django

2012-09-12 Thread Sait Maraşlıoğlu
Sencha looks great, and saw some alternatives too, I will check them all. One question about it. Do you develope applications for iphone, android seperately or u create something then compile it for different enviroments? havent got round for piston but have some outputs with tastypie already,

Re: Dealing with big changelists in admin

2012-09-12 Thread Daniel Roseman
On Wednesday, 12 September 2012 13:02:33 UTC+1, axel...@chaos1.de wrote: > > > Am 12.09.2012 um 10:27 schrieb Stephen Anto: > > > There are lots of sources available on net for Django pagination. I am > > using django pagination on my website http://www.f2finterview.com/ for > show > >

tastypie - some feedback / comments

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hi all, For the last two years whenever an API has been required for a project, we have just used our own API wrapper that consists of about 50 lines, then added in the bits we needed as we go along. So today, I decided to spread my wings a little and give TastyPie a try... here is a bit of

Re: Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
Am 12.09.2012 um 10:27 schrieb Stephen Anto: > There are lots of sources available on net for Django pagination. I am > using django pagination on my website http://www.f2finterview.com/ for show > questions and answers. > > each request fetches only five questions and answers (Eg. >

module import failed - Newbie special -

2012-09-12 Thread Olivier BATARD
Hi, I'm trying to learn django with the book "learning website development with django" but I'm stucked where importing module from my app : - I have a project named django_bookmarks - Inside I've created an app with the django-admin command : python manage.py startapp bookmarks - so I've

sending data with HttpResponseRedirect

2012-09-12 Thread Simon Cossar
Hi All, I'm just starting to play around with Django... working through the tutorial and the Django Book. I have just written a view that after successfully processing a form uses HttpResponseRedirect() to send the user to a 'success' page. Is their a standard way of accessing the form data from

Re: Iphone applications via django

2012-09-12 Thread Jani Tiainen
I'm using Sencha Touch to build mobile interface to Django application. (basically Django serves just REST API, UI is pure JS/HTML5 stuff). Nice thing is that there exists build process to use phonegap with sencha touch to create real native app if needed. 12.9.2012 13:15, Stephen Anto

Re: Django newbie with issues

2012-09-12 Thread Paul Backhouse
On Wed, 2012-09-12 at 02:46 -0700, Morrti wrote: > moving to 1.4 isn't a quick option for me/us so I'm stuck on 1.1 for a > while. Why is this? If you're new to Django you should dive in at the latest version. If your company has existing projects that are dependent on 1.1, then why not create a

Userena, how to set the avatar (mugshot) at signup time?

2012-09-12 Thread Bastian
Hello, I use userena to manage signups and profiles. It works fine and users can set up their avatar in the profile but I'd like them to set it up during signup time. When they register they need to fill username, email, password and sometimes other basic stuffs needed to create a user

Re: Django newbie with issues

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
May I ask the reason you cannot upgrade to 1.4??? Sticking to 1.1 is usually only done if you have an existing code base that absolutely requires 1.1. You really need to upgrade :/ Cal On Wed, Sep 12, 2012 at 10:46 AM, Morrti wrote: > Hi, > > Thanks for your

Re: Iphone applications via django

2012-09-12 Thread Stephen Anto
Hi, Django piston is available to convert all django data into json via handler. You can use this json data to both web and mobile interface. Currently I am working on the same cheers... Thanks for visiting On Tue, Sep 11, 2012 at 2:29 PM, Sait Maraşlıoğlu

Re: tree.io installation with django

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Hmm - this should really just work out of the box, but looking at the docs, it doesn't give you much information about running wsgi/fcgi etc. Try this; Change this line: STATIC_DOC_ROOT = path.join(PROJECT_ROOT, 'static') To this: STATICFILES_DIRS = ( path.join(PROJECT_ROOT, 'static'), )

Re: Override save or other options?

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
Curious, we had to do a similar thing for billing periods on our VoIP system a while back. We ended up using dateutil, here's a bit of a code dump. This was all triggered from populate_billing_periods() which was called at the point of processing billing info (which happens every 24 hours)

Re: Forms, ChoiceFields and import?

2012-09-12 Thread Stephen Anto
Hi, in forms.py import all from models.py forms.py: from tafe.models import * It may solve your problem. Thanks for visiting! and For Django Interview questions and answers On Wed, Sep 12, 2012 at 6:56 AM, Lachlan Musicman

Re: Marketplace for Django apps

2012-09-12 Thread Cal Leeming [Simplicity Media Ltd]
OP - you could always just set a marketplace up, try and get a few big names to jump in with you, and see if people follow - if anything it'd make for a cool little lunch time project for you! :) On Tue, Sep 11, 2012 at 10:20 PM, Thomas Orozco wrote: > You could always use

Re: Django newbie with issues

2012-09-12 Thread Morrti
Hi, Thanks for your comments on version numbers, but moving to 1.4 isn't a quick option for me/us so I'm stuck on 1.1 for a while. Trying to run the app and instead of getting the "welcome" page I get the following, see below. Not withstanding my version issue, anyone got any ideas on this.

Re: Django and LDAP

2012-09-12 Thread Stephen Anto
Hi, Django instalation on ubuntu, I found key instructions on http://www.f2finterview.com/web/Django/4/ for more follow django instalation guide On Mon, Sep 10, 2012 at 11:44 PM, Tony wrote: > Hi everybody, > > I am new to Django and Python, and right now, i am

Re: ViewDoesNotExist !?!?! It certainly does....

2012-09-12 Thread Stephen Anto
Hi, try this urls.py urlpatterns = patterns('app_root', url(r'^url_path/$','view_name',name='url_name'), ) view.py def view_name(request): your business logics return HttpResponse() I think it may work On Wed, Sep 12, 2012 at 9:51 AM, Lachlan Musicman

Re: Dealing with big changelists in admin

2012-09-12 Thread Stephen Anto
Hi, There are lots of sources available on net for Django pagination. I am using django pagination on my website http://www.f2finterview.com/ for show questions and answers. each request fetches only five questions and answers (Eg. http://f2finterview.com/web/Django/) On Wed, Sep 12, 2012 at

Dealing with big changelists in admin

2012-09-12 Thread Axel Rau
I have a table with lots of IP addresses. I defined some search_fields and that works well. How can I limit the amount of fetched and displayed rows (and pages)? A filter which slices the QuerySet to display only the first 100 results, would do it, but I do not know, how to create a filter, which

Re: Converting kml file to shapefile Error

2012-09-12 Thread Coulson Thabo Kgathi
the shape file i wnt 2 use it on geodjango, tht wht it has 2 do wit django wel jst thought some1 have seen the same error b4 n might help, not tht its a django or python issue -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: Plot points from a kml file in django

2012-09-12 Thread Coulson Thabo Kgathi
eish i am a dead man if i dnt do ths by end of today -- 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/-/PpALNxvsnboJ. To post to this group, send email to

Re: ViewDoesNotExist !?!?! It certainly does....

2012-09-12 Thread Sergiy Khohlov
add to urls from tafe.views import session_create 2012/9/12 Lachlan Musicman : > session_create -- 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

Re: tree.io installation with django

2012-09-12 Thread Fabian Weiss
THX alot for your help Cal! Does that STATIC stuff has something to do with the fact that I am using an Apache virtual host? But that link you gave me is very complicated! Sorry, but I dont understand :( This is my simple WSGI file:

Re: Plot points from a kml file in django

2012-09-12 Thread Coulson Thabo Kgathi
my interntion is to have somethin like this, but not exactly the same. have points plotted on a map like this. [image: HoustonCrimeMaps] -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Plot points from a kml file in django

2012-09-12 Thread Coulson Thabo Kgathi
i have made a geodjango project, and my intension is to make a map application that will will plot points on a map. the points are to be made by using gps coordinates that i that i have in a kml file. so what i did is convert the kml file into shapefile and auto generated the model by