Re: Can't Find libclntsh.so.11.1 With Oracle Backend

2012-09-11 Thread Иван Земцов
set the ORACLE_HOME variable of the user who run site SuexecUserGroup inof inof env |grep ORA ORACLE_BASE=/usr/lib/oracle ORACLE_HOME=/usr/lib/oracle/11.2/client64/ On 11 September 2012 03:05, Jon Blake wrote: > Thanks, Jani and Ian. I've used the ldconfig approach to fix

Converting kml file to shapefile Error

2012-09-11 Thread Coulson Thabo Kgathi
I get the error below when i rung the command ogr2ogr -f 'ESRI Shapefile' household.shp household.kml Unable to open datasource `household.kml' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> REC -> Memory ->

Re: testing a django package

2012-09-11 Thread Thomas Orozco
Is it a view mix in? It's a bit difficult to tell you much without more information. A few you things that you may find useful or not for testing : . Test cases can override settings such as the urlconf . There's a test client to test views . Class based views can sometimes be tested without

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike Dewhirst: > > > Try dropping this down to "djtest.settings". Also make sure you have a > file in each of your folders called __init__.py > > This tells Python the folder is part of the package. > Sorry - but this does not help. Just

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread Jian Chang
"d:/wwwroot/djtest/djtest/" was already in system path, so I think you should set DJANGO_SETTINGS_MODULE like this: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") try it![?][?][?] 2012/9/11 DJ-Tom > Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike

Iphone applications via django

2012-09-11 Thread Sait Maraşlıoğlu
How do you create iphone applications via django. Application logic will be django but what about user interface, do we do that with django too? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

models for KML file

2012-09-11 Thread Coulson Thabo Kgathi
Somebody help with using kml files to plot points on maps using geodjango -- 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/-/6EqyQE3Kbm4J. To post to this

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Sep 10, 2012 at 11:07 PM, Kurt Pruhs wrote: > Hey Cal, > > This looks like a great tool. I know I've implemented code like this in > another project. I was planning on doing a field change audit module for an > application I'm currently working on. I will definitely

Re: Iphone applications via django

2012-09-11 Thread Mario Gudelj
Nope. You do objective c or html and js with something like phonegap On Sep 11, 2012 6:59 PM, "Sait Maraşlıoğlu" wrote: > How do you create iphone applications via django. > Application logic will be django but what about user interface, do we do > that with django too? > >

tree.io installation with django

2012-09-11 Thread Fabian Weiss
I am using Debian and want to use treeio with my Apache. So I was working with this tutorial: http://fuckyeahcoding.wordpress.com/2011/12/20/install-tree-io-on-ubuntu-with-apache/ But the instructions "make" and "make install" didnt work.. Instead I used the 'python manage.py update_ve' and

Django newbie with issues

2012-09-11 Thread Morrti
Hi, I'm a total newbie to Django and I'm trying to follow the build your first app tutorial from the site https://docs.djangoproject.com/en/1.1/intro/tutorial01/ but have soon run into problems, please see below. This is as a result of running the python manage.py runserver command. If

Plot points from a kml file in django

2012-09-11 Thread Coulson Thabo Kgathi
Plot points from a kml file in django -- 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/-/d1SMT2gK38cJ. To post to this group, send email to

Re: Iphone applications via django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
You can create a server side API for the app - but the actual interface is done using the methods mentioned by Mario previously. Cal On Tue, Sep 11, 2012 at 11:09 AM, Mario Gudelj wrote: > Nope. You do objective c or html and js with something like phonegap > On Sep 11,

Re: tree.io installation with django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Looks like an incompatible version of Django perhaps (first glance). Alternatively, just patch it yourself based on the error given: @@@ django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting. @@@ See

Re: Plot points from a kml file in django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
http://stackoverflow.com/questions/833/how-to-process-an-uploaded-kml-file-in-geodjango http://iwoom.blogspot.co.uk/2010/11/python-django-reading-kml-points.html http://code.google.com/p/simplekml/ http://code.google.com/p/pylibkml/ http://pypi.python.org/pypi/pykml Come on man, use Google

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Ouch, 1.1 is very old indeed. I have seen compatibility issues before when running django/py apps on a mac, but can't say I've ever ran into this before. Could you upgrade to the latest (1.4.1) and see if you still experience the same issue? Cal On Tue, Sep 11, 2012 at 11:03 AM, Morrti

Re: Marketplace for Django apps

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
-1 It's not the cost that I'm concerned with, it's the community motivation that worries me. If we have a paid app store, we will not only end up with every tom/dick/harry submitting crappy apps (just like every other store), but it also changes the motivation of the community to be commercially

Re: Marketplace for Django apps

2012-09-11 Thread jonas
I want to ask you again, what you think about such service? Would you buy or sell apps (or paid support) out there and why? If the apps are more then good enough and would spare companies time and there are no better or equal opensource alternatives, then yes I do believe some people might

Re: Plot points from a kml file in django

2012-09-11 Thread Coulson Thabo Kgathi
I googled, went through the geodjango tutorial, now my problem is ploting points or coordinates on a map on my geodjango project tht i created using this kml file -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the

Re: Plot points from a kml file in django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Need a bit more info than that for anyone to help you. Please tell us exactly what information you have, what you are trying to achieve, and where you are getting stuck. Cal On Tue, Sep 11, 2012 at 1:49 PM, Coulson Thabo Kgathi wrote: > I googled, went through the geodjango

Re: Django newbie with issues

2012-09-11 Thread Morrti
Hi, We did try things with v1.5, but that also failed. Looking further it seems that my branch on git was wrong. Moving to the correct one for 1.1 has seemed to have corrected things, well we got past that issue. I'm going to continue with the tutorial now and see how that goes. Thanx, Tim On

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread jondykeman
Hello, I am in a very similar situation. I would in an environment that deals with sensitive data collection. Everything has to be two-factor authenticated, in the secure server zone etc. As part of this we need logging of every action ever taken, by whom, when, and what the changes were. At

Re: Django newbie with issues

2012-09-11 Thread Thomas Lockhart
On 9/11/12 6:29 AM, Morrti wrote: Hi, We did try things with v1.5, but that also failed. Looking further it seems that my branch on git was wrong. Moving to the correct one for 1.1 has seemed to have corrected things, well we got past that issue. I'm going to continue with the tutorial now

Re: Iphone applications via django

2012-09-11 Thread Kelly Nicholes
If you go HTML/JS, a phonegap alternative for cross-device compatibility would be appcelerator. On Tuesday, September 11, 2012 2:59:12 AM UTC-6, Sait Maraşlıoğlu wrote: > > How do you create iphone applications via django. > Application logic will be django but what about user interface, do we

Re: Iphone applications via django

2012-09-11 Thread Thomas Weholt
You could use JQuery Mobile on the frontend. It's still a web app like any other, but app-like in looks and functionality, at least to a certain degree. Thomas On Tue, Sep 11, 2012 at 4:16 PM, Kelly Nicholes wrote: > If you go HTML/JS, a phonegap alternative for

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread DJ-Tom
Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian: > > "d:/wwwroot/djtest/djtest/" was already in system path, so I think you > should set DJANGO_SETTINGS_MODULE like this: > os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") > > try it! > > Ok... GREAT! Now it works

Re: Problems with simple "hello world" test - "ImportError: Could not import settings"

2012-09-11 Thread Daniel Roseman
On Tuesday, 11 September 2012 16:33:31 UTC+1, DJ-Tom wrote: > > > > Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian: >> >> "d:/wwwroot/djtest/djtest/" was already in system path, so I think you >> should set DJANGO_SETTINGS_MODULE like this: >>

Re: testing a django package

2012-09-11 Thread Jonas Geiregat
> Is it a view mix in? > The package actually already changed from containing a view mix in to actual views that should be subclassed by the users using the package. > It's a bit difficult to tell you much without more information. > For example, a view derived from FormView. Like I said the

Re: Marketplace for Django apps

2012-09-11 Thread Jorge Vargas
I agree with Jonas here. having a place were you have get apps to solve hard problems no one has done right (ecommerce is a very good example) is a plus. As for it being "cancer" and bad I don't agree there is a market for everything. And that will bring more people in which in the end is what

Re: Changing the text on the admin "change_list.html"

2012-09-11 Thread Melvyn Sopacua
That would be the verbose name in the models' meta class. I think Op 8 sep. 2012 18:34 schreef "Derek" het volgende: > I need to alter the text that appears above every change list in my app: > > "Select *modelname* to change" > > However, I cannot see this text in the

Re: Marketplace for Django apps

2012-09-11 Thread Kurtis Mullins
How about a compromise; just an easier way to donate to Django and Django Application developers? It would encourage sharing high quality projects and hopefully make it worth our time (financially, not just because we love and support libre software) to do so. For that matter, there's all sorts of

Re: Validating GB telephone numbers in Django forms.

2012-09-11 Thread g1smd.1
Brad Pitcher stepped in and made the various code conversions. There's just a few more changes and updates to go and the module will be complete. On Wednesday, September 5, 2012 11:05:45 PM UTC, g1smd.1 wrote: > > > The GB number plan is quite complicated, with a variety of number lengths >

Re: Iphone applications via django

2012-09-11 Thread Ray Ch
Can you tell me how do i do that? Do you have any kind of blog or tutorial which would help me out connecting the web API's with iphone. Do you suggest JSON or XML ? On Tuesday, September 11, 2012 4:09:35 PM UTC+5:30, Cal Leeming [Simplicity Media Ltd] wrote: > > You can create a server side

Re: Request for comments - django-cutemodel (model logging and field change auditing)

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
Thanks for letting me know about django-reversion, it has made for interesting reading. >From what I can see there are two big differences between them; * CuteModel is designed with performance/scalability in mind (as some of our projects are tipping into the 700+mil row count and rising) *

Re: Django newbie with issues

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
+1 on virtualenv - I only just started using it about 3 months ago.. don't know how the hell I survived without it for so long! On Tue, Sep 11, 2012 at 2:59 PM, Thomas Lockhart wrote: > On 9/11/12 6:29 AM, Morrti wrote: > >> Hi, >> >> We did try things with v1.5, but

Re: Iphone applications via django

2012-09-11 Thread Cal Leeming [Simplicity Media Ltd]
It would be a cold day in hell before I ever used XML for an API ;) There's a whole ton of API wrappers for Django (hell you could write your own in under 50 lines of code), but here is a pretty good one: http://django-tastypie.readthedocs.org/en/latest/index.html Tastypie is a bit complex to

Re: Iphone applications via django

2012-09-11 Thread Sait Maraşlıoğlu
What do you mean by api wrapper, ur previous link a bit complicated and Im having a hard time understanding this term, can u explain in a smiple manner? On Tuesday, 11 September 2012 22:18:34 UTC+3, Cal Leeming [Simplicity Media Ltd] wrote: > > It would be a cold day in hell before I ever

Re: Iphone applications via django

2012-09-11 Thread Kurtis Mullins
I can offer some information if you can share your "skill level" when it comes to developing iOS and/or Django Applications. 1. Do you currently know how to program iOS Applications? If so, do you have any experience writing iOS programs that can handle HTTP Requests? If the answer to either of

Re: Iphone applications via django

2012-09-11 Thread Sait Maraşlıoğlu
For my skill levels, Ive started with python, then qt, pyqt,matplotlib ... and finnaly django, I m not complaining, django is just perfect. I m ok with django, I write and and I understand what I read. If I want to learn ios, answer is no, cause Ive been travelling alot lately among different

Re: Iphone applications via django

2012-09-11 Thread Nikolas Stevenson-Molnar
For web applications, I'd recommend using JSON instead of XML: http://en.wikipedia.org/wiki/Json It's easier to work with and Python has a json module which will convert a Python dictionary to a JSON-formatted string ready to return to the client. Most JS libraries also have functions to turn

Re: Marketplace for Django apps

2012-09-11 Thread Thomas Orozco
You could always use https://www.gittip.com/ to that end, Basically, it allows you to tip developers that are on github For instance, you could tip django devs at: https://www.gittip.com/on/github/django/ You can see that: https://www.gittip.com/aaugustin/ or https://www.gittip.com/alex/, among

Re: Override save or other options?

2012-09-11 Thread Lachlan Musicman
On Tue, Sep 11, 2012 at 5:15 PM, Jani Tiainen wrote: > > Rather than creating individual series of events from recurring I would do a > concept called "recurring event". So it would be just a single event that is > projected to spesific days as necessary. It requires a slightly

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't make up my mind, do i need to connect Django

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
On 12/09/2012 7:49am, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't

Re: Django and LDAP

2012-09-11 Thread Thomas Lockhart
On 9/11/12 2:49 PM, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled admin, logged in through Firefox. I can't

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
Once again, thank you. If you have some advices or pointers where to start (besides the ones you've already mentioned), how to develop my knowledge, please feel free to share with me. Grateful Tony On Wed, Sep 12, 2012 at 12:05 AM, Mike Dewhirst wrote: > On 12/09/2012

Re: Django and LDAP

2012-09-11 Thread Ivan Pavlović
I appreciate it Thomas :) On Wed, Sep 12, 2012 at 12:11 AM, Ivan Pavlović wrote: > Once again, thank you. If you have some advices or pointers where to start > (besides the ones you've already mentioned), how to develop my knowledge, > please feel free to share with

Re: Iphone applications via django

2012-09-11 Thread Mario Gudelj
Sait, Just dive into Tasty Pie. It will easily interface your models with a JSON feed. On the client side you then use this JSON feed in your JavaScript to construct your web pages or do whatever you want with it. I think this would be the best model for you. Django with Tasty Pie for the server

Re: Cant Import mysite.urls

2012-09-11 Thread patrick
On Tuesday, September 11, 2012 1:44:22 AM UTC-3, Jon Blake wrote: > > Thanks, Patrick. My reference to utils.py should have been to urls.py, > which I have in my mysite app package. > > I'm seeing this import error on mysite.urls when I'm attempting to get > Apache + mod_wsgi to serve my app. I

Re: Override save or other options?

2012-09-11 Thread Mario Gudelj
I had to do the same thing recently. I had to grab the frequency, interval etc. (used rrule for that) and then had to look at the first event instance and create multiple instances from that event inside the view. If you create a series model and use it as a foreign key in your event to keep on

Newbie Project Setup and Terminology Questions

2012-09-11 Thread Matthew Woodward
Hi all -- semi-new to Django but learning fast and enjoyed meeting a lot of folks at DjangoCon last week! I have some basic project setup and terminology questions I'm hoping to get some thoughts on. Basically I'm curious as to the convention about creating a project using virtualenv and then

Forms, ChoiceFields and import?

2012-09-11 Thread Lachlan Musicman
Hi Is there anyway to import the choices from my models.py into my forms.py to prevent code duplication? At the moment I've got the following, but I'm getting invalid sytax errors in my forms.py: models.py : SESSION_CHOICES = ( (u'0',u'Morning 1'), (u'1',u'Morning

Re: Forms, ChoiceFields and import?

2012-09-11 Thread m1chael
it looks like you have a syntax error here: timetable = forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date') should be: timetable = forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date')) # added a ) On Tue, Sep 11, 2012 at 9:26 PM, Lachlan

Re: Forms, ChoiceFields and import?

2012-09-11 Thread m1chael
Timtables should also be Timetables On Tue, Sep 11, 2012 at 9:30 PM, m1chael wrote: > it looks like you have a syntax error here: > > timetable = > forms.ModelChoiceField(queryset=Timtables.objects.all.ordered_by('-date') > > should be: > > timetable > =

Re: Forms, ChoiceFields and import?

2012-09-11 Thread Lachlan Musicman
On Wed, Sep 12, 2012 at 1:35 PM, m1chael wrote: > Timtables should also be Timetables Yep - thanks. All good now, you were spot on with the missing parentheses Cheers L. > > > On Tue, Sep 11, 2012 at 9:30 PM, m1chael wrote: >> >> it looks like you have a

Re: Override save or other options?

2012-09-11 Thread Lachlan Musicman
On Wed, Sep 12, 2012 at 11:46 AM, Mario Gudelj wrote: > I had to do the same thing recently. I had to grab the frequency, interval > etc. (used rrule for that) and then had to look at the first event instance > and create multiple instances from that event inside the view.

Re: Django and LDAP

2012-09-11 Thread Mike Dewhirst
On 12/09/2012 8:05am, Mike Dewhirst wrote: On 12/09/2012 7:49am, Ivan Pavlović wrote: Thank you Mike for your answer. I started this topic, because i have an assignment at my Faculty, which requires connection between Django and an LDAP (assistant insisted on 389ds). I installed Django, enabled

Re: models for KML file

2012-09-11 Thread Melvyn Sopacua
Op 11 sep. 2012 11:07 schreef "Coulson Thabo Kgathi" het volgende: > > Somebody help with using kml files to plot points on maps using geodjango > Please read and understand the Geodjango tutorial and Gdal layermapping API. If you need help understanding that, ask specific

Re: Django Interview Questions

2012-09-11 Thread Stephen Anto
Hi Guys, I really thanks to who are all gave comments on my previous post. Now, Keep on watching on Django interview questions and answers. I am updating questions and answers. let me know if any feedback. On Thursday, September 6, 2012 4:45:53 PM

ViewDoesNotExist !?!?! It certainly does....

2012-09-11 Thread Lachlan Musicman
Hola As per subject - I'm getting ViewDoesNotExist errors on a view that does exist. I've checked the spelling, indenting and it all seems legit. If I comment out the two lines that call the view in question from urls.py, everything is back to normal. --- tafe/urls.py from django.conf.urls

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

2012-09-11 Thread Lachlan Musicman
Grrr - sorry sent before I was finished. tafe/views.py # Create your views here. from tafe.models import Session from tafe.forms import SessionRecurringForm from django.shortcuts import render_to_response from django.http import HttpResponseRedirect import datetime def session_create(request):