Re: Django with Ubuntu Cloud

2014-01-30 Thread Me Sulphur
Django is a fairly flexible web framework. See read more about STATIC and MEDIA files in Django. The Ubuntu cloud API is documented here https://one.ubuntu.com/developer/files/store_files/cloud, you can interact with it using libraries like requests. https://docs.djangoproject.com/en/dev/howto/

Re: Django with Ubuntu Cloud

2014-01-30 Thread Russell Keith-Magee
Hi Vibhu, Everything I know about Ubuntu Cloud I learned from their homepage in the last couple of minutes -- but that website seems to suggest that Ubuntu Cloud is based on OpenStack. OpenStack is a generic API for cloud computing that is shared by a number of providers (most notably Rackspace,

Django with Ubuntu Cloud

2014-01-30 Thread Vibhu Rishi
Hi, Has anyone setup Django with Ubuntu Cloud ? My primary interest is how to setup the media server. I am primarily using Heroku for the hosting of the project, but that does not provide hosting for the static / user uploaded files. So, I am looking at what alternatives I have. There are a lot o

Re: Honest feedback

2014-01-30 Thread Doug Ballance
There have been small, well thought out changes over the last 4 years but fundamentally most still remains pretty much the same. I have several installs running an patched old .96 version, as well as newer stuff with later versions. It all feels about the same to work with. I recently upgr

Re: problems when interpreter calls module 'taggit'

2014-01-30 Thread Babatunde Akinyanmi
On 31 Jan 2014 02:13, "Charly Román" wrote: > > You need to install django-taggit. > Or add taggit to your INSTALLED_APPS setting. > > > 2014-01-30 Cristiano Araujo : > >> goodevening guys >> i'm new in this group >> >> my problem is this: i'm trying to make a simple django app, but when i try to

Re: problems when interpreter calls module 'taggit'

2014-01-30 Thread Charly Román
You need to install django-taggit. 2014-01-30 Cristiano Araujo : > goodevening guys > i'm new in this group > > my problem is this: i'm trying to make a simple django app, but when i try > to sinc the db the interpreter shows mw this error: > > >

problems when interpreter calls module 'taggit'

2014-01-30 Thread Cristiano Araujo
goodevening guys i'm new in this group my problem is this: i'm trying to make a simple django app, but when i try to sinc the db the interpreter shows mw this error:

Re: RPython / Django Web Applications Developer - Michigan $90-$100/hr

2014-01-30 Thread Cal Leeming [Simplicity Media Ltd]
Hi Leigh, Not sure if this was double posted in error, but if not, can you avoid double posting in future please? You can always bump the previous thread :) Cal On Thu, Jan 30, 2014 at 8:51 PM, Leigh Haugen wrote: > Great opportunity on a Cloud Development team for somebody who is willing >

Re: App_step.readme_id may not be NULL

2014-01-30 Thread Wnt2bsleepin
Neither seem to work readme_form.user = request.user readme_object = readme_form.save() step_forms.readme_template = readme_object step_forms.save() or readme_form.user = request.user readme_object = readme_form.save() step_forms.readme = readme_object step_forms.

Re: render .txt file in django template

2014-01-30 Thread C. Kirby
Sort of wrong. Django static files are available as http resources, not available to the template renderer. With django staticfiles you can't do {{file_i_want}}. If you want to work purely in the template, you have 2 options: 1. Load the txt file url with ajax and put it where you want on the p

Re: render .txt file in django template

2014-01-30 Thread Fatih Tiryakioglu
But the document says that static media isn't about django, but apache (for production). Loading static file contents in the view.py seems to me not effecient. I am now on development phase, and I think I should render static files in the template now. And in the production phase, I would chang

Re: render .txt file in django template

2014-01-30 Thread C. Kirby
The template engine doesn't have direct access to the filesystem. You will have to pass the file contents from your view to the template: 1.Load the file in your view 2. Read it into a context variable. 3. Render the context variable in your template On Thursday, January 30, 2014 3:29:29 PM UTC

render .txt file in django template

2014-01-30 Thread Fatih Tiryakioglu
Hi all, Could you please show me how can I render .txt static files (they are user comments) in django template? I couldn't resolve that issue for a month.. I appreciate your help. -- -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsub

RPython / Django Web Applications Developer - Michigan $90-$100/hr

2014-01-30 Thread Leigh Haugen
Great opportunity on a Cloud Development team for somebody who is willing to take a temporary job here in Michigan. Python / Django Web Applications Developer, Michigan 6+mth contract, $90-$100/hr. No phone calls. Please email resumes to: le...@kdmmcorp.com RE

Re: Django 1.5.1: ORA-01843: not a valid month

2014-01-30 Thread davidj411
if you upgraded django and the issue begins, wouldn't that point to the version of django? one would think so. however , rolling back to the older version of cx_Oracle fixes the issue. conclusion would be: it seems to be an issue when django > 1.4 AND cx_Oracle > cx_Oracle 5.0.3! https://code.d

Re: App_step.readme_id may not be NULL

2014-01-30 Thread C. Kirby
A model formset gives you multiple instances of the modelform, so you need to iterate through them: readme_object = readme_form.save() readme_object.user = request.user readme_object.save() for step_form in step_forms:

Re: App_step.readme_id may not be NULL

2014-01-30 Thread Wnt2bsleepin
> > Didn't seem to work. The step_forms is a modelformset_factory, so I don't > know if that makes a difference. I would also like to assign a user to > the readme_form, but > readme_form.user_id = request.user.id readme_object = readme_form.save() step_forms.readm

Re: App_step.readme_id may not be NULL

2014-01-30 Thread donarb
On Thursday, January 30, 2014 9:08:22 AM UTC-8, Wnt2bsleepin wrote: > > I am new to Django and am trying to save two objects from the same form. > > Models: > > class ReadmeTemplate(models.Model): > """ > Represents a bugfix README > > Contains step models, which contain mult

App_step.readme_id may not be NULL

2014-01-30 Thread Wnt2bsleepin
I am new to Django and am trying to save two objects from the same form. Models: class ReadmeTemplate(models.Model): """ Represents a bugfix README Contains step models, which contain multiple steps. """ def __unicode__(self): return self.title title =

Re: Proxy problem (permissions denied)

2014-01-30 Thread Me Sulphur
Hopefully you have included the csrfmiddleware token in your POST request payload or data. Overlooking same is usually one of the frequent causes of 403 in development. Read here: https://docs.djangoproject.com/en/dev/ref/contrib/csrf/ BTW, you can also consider using GeoDjango

Proxy problem (permissions denied)

2014-01-30 Thread Gkpetrak
Hello, I'm trying to develop a GIS app using Django / OpenLayers / GeoServer. GeoServer is an open source software server that allows users to share and edit geospatial data. I'm working on development mode, with development server of Django. The base url of my app is: http://127.0.0.1:8000/ a

Re: Password reset not working.

2014-01-30 Thread Me Sulphur
On an alternative note, it is always good to follow some kind of consistent conventions for things like naming. You might also want to prefix 'password_change_done' and 'password_reset_done' with 'auth_' for the sake of consistency. -- You received this message because you are subscribed to th

Re: Password reset not working.

2014-01-30 Thread heidi
Thank you so much! Fixed now. How I missed that I have no idea. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To pos

Re: Password reset not working.

2014-01-30 Thread Me Sulphur
url(r'^password/reset/(?P[0-9A-Za-z_\-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.password_reset_confirm, name='password_reset_confirm'), Try setting 'name' for the above url block as 'auth_password_reset_confirm' On Thursday, 30 January 2014 18:39:12 UTC+5:30, he

Password reset not working.

2014-01-30 Thread heidi
I'm using Django 1.6.1, and password reset is not working. When users enter their email, 502 occurs and this is sent to me: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 114, in get_response response = wrapped_callback

m2m_changed (How to get only the affected/changed fields in pk_set)

2014-01-30 Thread Me Sulphur
The docs say (for the param *pk_set* in m2m_changed signal) For the pre_add, post_add, pre_remove and post_remove actions, this is a set of primary key values that have been added to or removed from the relation. But it seems, that pk_set contains all values and not only the affected/changed on

Re: Odd issue with 1.6.1 (as opposed to 1.5.5)

2014-01-30 Thread bigjust
François Schiettecatte writes: > Hi > > I am wondering if there is something about CONN_MAX_AGE in 1.6.1 and > accessing objects from a script (as opposed to as part of an HTTP > request). > The connection age check (and subsequent closing) is initiated only by a signal being fired at the end of

Re: Odd issue with 1.6.1 (as opposed to 1.5.5)

2014-01-30 Thread bigjust
François Schiettecatte writes: > Hi > > I am wondering if there is something about CONN_MAX_AGE in 1.6.1 and > accessing objects from a script (as opposed to as part of an HTTP > request). > The connection age check (and subsequent closing) is initiated only by a signal being fired at the end of

Re: Prefetch object (django 1.7)

2014-01-30 Thread Marcin Szamotulski
Indeed, I am PostAuthor is a through model. Thanks I understand now how it works. Prefetch('postauthors', PostAuthors.objects) fails with AttributeError: Cannot find 'postauthors' on Post object, 'postauthors' is an invalid parameter to prefetch_related() So it seems that 'postauthors' is not