Re: Override save or other options?

2012-09-10 Thread Jani Tiainen
11.9.2012 7:23, Lachlan Musicman kirjoitti: Hi All, Simplistically, I have an event type model (for a "school class") with a date field. On saving of the first event, I want to add recurring objects. Specifics for this project are "up to a latest date" (ie, end of term) and "recur weekly only"

Re: Cant Import mysite.urls

2012-09-10 Thread Jon Blake
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 don't remember seeing this error with the development server when I first

Override save or other options?

2012-09-10 Thread Lachlan Musicman
Hi All, Simplistically, I have an event type model (for a "school class") with a date field. On saving of the first event, I want to add recurring objects. Specifics for this project are "up to a latest date" (ie, end of term) and "recur weekly only" (not daily, monthly, yearly, etc - for the

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

2012-09-10 Thread Rivsen
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 received a similar email about the post "Re: I can't install django > on my mac. I'm not sure wh..." which I recently responded to. Not sure

Re: Cant Import mysite.urls

2012-09-10 Thread patrick
On Monday, September 10, 2012 8:29:12 PM UTC-3, Jon Blake wrote: > > Working through getting Django to work with Apache, mod_wsgi and Oracle > database back end. When I enter my site URL, I get a "ImportError at /" > page, with an exception value of "No module named mysite.urls". > > Part 3 of

Cant Import mysite.urls

2012-09-10 Thread Jon Blake
Working through getting Django to work with Apache, mod_wsgi and Oracle database back end. When I enter my site URL, I get a "ImportError at /" page, with an exception value of "No module named mysite.urls". Part 3 of the tutorial refers to line ROOT_URLCONF = 'mysite.urls', which I have in my

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

2012-09-10 Thread Jon Blake
Thanks, Jani and Ian. I've used the ldconfig approach to fix this problem. Now getting a "ImportError at /" page, for which I'll post another question. On Tuesday, September 11, 2012 6:15:57 AM UTC+10, Jani Tiainen wrote: > > I've been using ldconfig to handle libs. It's easy as runnig following

Re: complicated permissions

2012-09-10 Thread Brian Schott
If you are looking for a pre-canned solution, look at django-guardian. It implements object-level permission for users and groups. You just create arbitrary permissions in the meta class of your models and can test them in your templates and/or views. It has admin view support, template

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

2012-09-10 Thread Brad Pitcher
Yes, I received a similar email about the post "Re: I can't install django on my mac. I'm not sure wh..." which I recently responded to. Not sure what to make of it. On Mon, Sep 10, 2012 at 12:27 PM, Kurtis wrote: > I just received a very unusual e-mail that included a

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

2012-09-10 Thread Mike Dewhirst
On 11/09/2012 1:31am, DJ-Tom wrote: Hi, I'm new to django and python at the same time (Nightmare ) and currently struggling to get a basic understanding of how everything works and how the different components are connected to each other. My setup is a s follows: - Apache 2.2 running as a

Re: Django and LDAP

2012-09-10 Thread Mike Dewhirst
On 11/09/2012 4:14am, Tony wrote: Hi everybody, I am new to Django and Python, and right now, i am going through the documentation. I have an assignment at my Faculty, where i need to install Django, 389ds LDAP server (where i have to store my users) and i need to somehow connect them two, so i

Re: Documentation helpers in the admindocs (django 1.4)

2012-09-10 Thread craig
Just in case it pop's on anyone's radar, the :model:`ScheduledEvent` was just an attempt at doing it differently since ScheduledEvent is in the same app as the Calendar class. So it's failing whether I provide the app name all the time or not. On Monday, September 10, 2012 1:57:49 PM UTC-7,

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

2012-09-10 Thread Kurt Pruhs
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 look at django-cutemodel and see if it works for what I need, and how I can

Documentation helpers in the admindocs (django 1.4)

2012-09-10 Thread craig
It could be I'm doing something wrong, but I have the admin documentation working, and read about the helpers ( :model:`app.model`, :view:, etc) but when I use them the docs render the actual text and not the link: class Calendar(models.Model): > """ > Contains a collection of

Re: Static files not loading when debug is false

2012-09-10 Thread Jani Tiainen
As I put in my second post. Static serving is not working (by default) when you turn debugging off unless you provide --insecure option on manage.py runserver command. That is by design. Though with you should see improperly configured exception raised if you try to use forcefully static serving

Re: newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Bob Aalsma
Ah, yes, thanks! Regards, Bob Op maandag 10 september 2012 21:31:17 UTC+2 schreef Thomas het volgende: > > On 9/10/12 11:30 AM, Bob Aalsma wrote: > > > I'm in Chapter 5 of the tutorial, configuring the database. > I think I've done everything correct to set the DATABASE_ENGINE = >

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

2012-09-10 Thread Jani Tiainen
I've been using ldconfig to handle libs. It's easy as runnig following few commands as a root. (Though I always use oracle instantclient, it's just simpler in many cases): $ echo /oracle/product/11.1.0/db_1/**lib > /etc/ld.so.conf.d/oracle.conf $ ldconfig On Mon, Sep 10, 2012 at 7:11 PM, Ian

Re: form doesn't validate when trying to upload file

2012-09-10 Thread mapapage
After some testing i think that the prob occurs because from the same view I render another one form in the same template. This form is not multi-part. In this case it happens what I describe. If i put this simple form in comments (in views and in template) the multipart form uploads the file

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

2012-09-10 Thread Cal Leeming [Simplicity Media Ltd]
Hi guys, We have just released a new module that allows for lightweight/easy relational event logging and auditing field changes. Our use case was to satisfy four main requirements; * Log events directly from models, whilst keeping a relational link to the row that triggered the event * Keep

Re: newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Thomas Lockhart
On 9/10/12 11:30 AM, Bob Aalsma wrote: I'm in Chapter 5 of the tutorial, configuring the database. I think I've done everything correct to set the DATABASE_ENGINE = 'sqlite3'. Then I check the settings and see an error: ImproperlyConfigured: settings.DATABASES is improperly configured.

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

2012-09-10 Thread Kurtis
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 email address; by-passing the User Group. Google roughly translated this email as coming from "China Mobile"

newbie: which settings file? ["settings.DATABASES is improperly configured. "]

2012-09-10 Thread Bob Aalsma
I'm new at Django, renewing the start I made some two years ago by following the tutorial. And I'm aware there are some problems with my python, which I'm trying to solve as well. And I didn't find the answer to my question in djangoproject, this group or any other group. I'm in Chapter 5 of

Django and LDAP

2012-09-10 Thread Tony
Hi everybody, I am new to Django and Python, and right now, i am going through the documentation. I have an assignment at my Faculty, where i need to install Django, 389ds LDAP server (where i have to store my users) and i need to somehow connect them two, so i can auth users from LDAP when

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

2012-09-10 Thread Ian
On Sunday, September 9, 2012 10:41:00 PM UTC-6, Jon Blake wrote: > > It looks like I have to tell my app what my path to libclntsh.so.11.1 is. > I have added: > > os.environ['LD_LIBRARY_PATH'] = '/oracle/product/11.1.0/db_1/lib' >> > > to my app's wsgi.py file, but this does resolve my problem. >

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

2012-09-10 Thread DJ-Tom
Hi, I'm new to django and python at the same time (Nightmare ) and currently struggling to get a basic understanding of how everything works and how the different components are connected to each other. My setup is a s follows: - Apache 2.2 running as a service under Windows 7 - mod_wsgi -

testing a django package

2012-09-10 Thread Jonas Geiregat
Hello, I've created a simple reusable django package. This package basically consists out of a views.py file, with some helper functions. I want to write some tests for what's in this file. This file contains a mixin , so I probably can't test it directly. What's the best way to test a

Re: form doesn't validate when trying to upload file

2012-09-10 Thread mapapage
> > I'm running it on the django development server. I changed the header and > it behaves the same way. Is that expected or not? > I also tried print request.FILES and I get , but after > i tried print request.raw_post_data and it seems that the name of the file > that i try to upload is

Re: form doesn't validate when trying to upload file

2012-09-10 Thread Kurtis Mullins
Sorry about that. I accidentally over-looked where you mentioned that in your email. Are you running this on a debug server? Also, can you try replacing your template code with a simple {% csrf_token %}{{ form }} and see if that makes any differences? On Mon, Sep 10, 2012 at 10:38 AM, mapapage

Re: form doesn't validate when trying to upload file

2012-09-10 Thread mapapage
> > I have it like this, with filefield, in my first question I'm just posting > the generated model from inspectdb and underneath I'm saying that I change > it to FileField.. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Re: 利用django能执行本地命令不?

2012-09-10 Thread Dongqing Yang
于 2012/9/10 19:12, littlefivegogogo 写道: > 我在做一个系统,想在服务器端可以执行一些操作,比如分析文件(这些有另外 > 的程序实现了),但是我需要先执行一个 dos命令(分析程序提供的接口),请 > 问这有没有什么办法实现?用cgi吗? -- Try to describe your problem in English that will let most people here to help u. >From my opinion, using dos command is not Django supposed to be dealed

Re: complicated permissions

2012-09-10 Thread Dan Gentry
> > Complicated indeed! > I once worked on a similar project that tackled the first 2 requirements as part of a multi-tenant application, storing both the userID and company ID for each detail record (content). Plus, the user profile was extended to tie a User record to one or more

Re: form doesn't validate when trying to upload file

2012-09-10 Thread Kurtis Mullins
ahh, sorry I just saw something that might help. Try making this change: docpath = models.CharField(max_length=200) to: docpath = models.FileField(...) # Check the docs for arguments to this Field. https://docs.djangoproject.com/en/dev/ref/models/fields/#filefield On Mon, Sep 10, 2012 at 8:41

Re: Static files not loading when debug is false

2012-09-10 Thread Karambir Singh Nain
Yeah. during, debug=true, it is serving fine from static_root. But not when debug is false. On Monday, September 10, 2012 2:01:03 AM UTC+5:30, Jani Tiainen wrote: > > I suppose that your frontend webserver is serving files from url /static/ > from path that STATIC_ROOT points to? > > On Sun,

Re: form doesn't validate when trying to upload file

2012-09-10 Thread mapapage
> > as I say in my last reply, I include the multi part header and it doesn't > work! :( What else I can try? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: What editor do you use for .po files?

2012-09-10 Thread POEditor
1) If you’re interested in localizing your software using gettext or Excel files and want to do it in a simple, user friendly, maybe collaborative way, you should try the web-based translation tool http://poeditor.com/ On Saturday, June 20, 2009 12:05:08 AM UTC+3, Joshua Russo wrote:

Re: Best free web hosting portal

2012-09-10 Thread Anton Popovine
Hello, http://www.appfog.com/ came out of closed beta recently. They support python and django. You get quite alot for free. (2Gb ram, unlimited # of instances, 10 services) Anton On Monday, September 10, 2012 10:51:07 AM UTC+2, Somnath wrote: > > Hello friends, > >I want to

Re: Best free web hosting portal

2012-09-10 Thread TJ Max
Heroku is the only one I know of. ep.io had a free option as well but they went out of business. http://www.heroku.com/pricing#0-0 http://www.askthepony.com/blog/2011/07/getting-django-on-heroku-prancing-8-times-faster/ On Mon, Sep 10, 2012 at 1:51 AM, Somnath wrote: >

利用django能执行本地命令不?

2012-09-10 Thread littlefivegogogo
我在做一个系统,想在服务器端可以执行一些操作,比如分析文件(这些有另外的程序实现了),但是我需要先执行一个dos命令(分析程序提供的接口),请问这有没有什么办法实现?用cgi吗? -- 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/-/rGwNz_K-yKkJ. To

Best free web hosting portal

2012-09-10 Thread Somnath
Hello friends, I want to host my site on free web hosting for testing purpose, so anyone give me suggestion on best free web hosting site for django website. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion

Re: Form field with suggestions rather than binding choices

2012-09-10 Thread Vikas Rawal
> > > Will be grateful for advice on which is the most straight forward and > functional solution. > > or link to a clear howto on doing autocomplete. vikas -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: How many attempts to generate a unique ID?

2012-09-10 Thread Tom Evans
On Mon, Sep 10, 2012 at 12:31 AM, Anton Popovine wrote: > Yes it needs to be short. This will be an invitation string most likely > written on a chalk board for kids. > > Also there was an error in my initial post : I forgot to increment size += 1 > inside the while

Re: Static files not loading when debug is false

2012-09-10 Thread e.generalov
There is another case - tests. The TestCase forces DEBUG=False, therefore staticfiles application, included to the project in accordance with the documentation, works in the development server, but unexpectedly does't serve static in test scenarios. Why the serving static files in the

Marketplace for Django apps

2012-09-10 Thread Slava Kravchenko
Hi, our web development agency uses Django basically for all stuff we are doing. We love it, we love Django community and open-source. We even have some open-sourced apps. We also have some apps, which can't be open-sourced now for some reason, but we're interested in selling them. We know

Re: how to add datepicker (available in admin)

2012-09-10 Thread vasil mir
i followed the steps but i m ngetting following error Reverse for 'jsi18n' with arguments '()' and keyword arguments '{}' not found. Regards Vasil Mir On Thursday, 5 May 2011 19:53:52 UTC+5:30, Tom Evans wrote: > > On Wed, May 4, 2011 at 9:53 AM, GKR > wrote: > > thanks

Re: Django Tutorial

2012-09-10 Thread Jon Blake
Hi David, you might have stumbled over a problem I had when I first tried out the tutorial a week ago. I'm using an Oracle database back end, and on my first try of python manage.py syncdb, I also missed the prompt to create a superuser account. The problem was finally identified as a missing