Oracle GIS backend - no bulk_create?

2015-07-02 Thread Robert Martin
Hi all, I've been trying to do a bulk_create using the Oracle GIS backend (Django 1.8.2) and getting an AssertionError: File "C:\Users\robert.martin\Envs\ais\lib\site-packages\django\contrib\gis\db\backends\oracle\operations.py" , line 248, in modify_insert_params assert len(placeholders)

how to Django to Scorm example turturial ?

2015-07-02 Thread Д . Энхбаяр
how to Django to Scorm example turturial ? -- 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 post to this group, send

Re: Django formset hidden id field

2015-07-02 Thread Carl Meyer
On 06/28/2015 03:00 PM, Peter of the Norse wrote: > On May 27, 2015, at 7:47 AM, Cheng Guo > wrote: >> >> Hello, >> >> I have a formset and when I render it, Django would include this line >> in the HTML: >> >> || >> >> I am curious what is the purpose of having an id

Re: Django model for non web applications

2015-07-02 Thread Carl Meyer
On 07/02/2015 05:49 PM, Russell Keith-Magee wrote: > > On Thu, Jul 2, 2015 at 12:50 AM, Jeff Fritz > wrote: > > I'm fairly new to Django and making my way through the tutorial. > > Knowing what I've learned so far, I'd like to explore using > django.db.mo

Re: Access dynamic session variable name in template

2015-07-02 Thread jorrit787
This doesn't seem to work :( def comment_upvote(request, comment_id): comment = get_object_or_404(Comment.objects.filter(id__exact=comment_id, approved=True)) votes = request.session.setdefault('commentvotes', {}) if comment.id not in votes: comment.upvotes = comment.upvote

Re: NoReverseMatch in Django (url ploblem)

2015-07-02 Thread James Schneider
> > I'm a beginner of Django I want to set my url with database field_name > > instead of use primary key from Django tutorial. This is my code. > > > > *mysite* > > **dwru/urls.py** > > urlpatterns = [ > > url(r'^$', include('product.urls', namespace="product")), > > ] > > This regex is incorr

Re: NoReverseMatch in Django (url ploblem)

2015-07-02 Thread James Schneider
> I'm a beginner of Django I want to set my url with database field_name > instead of use primary key from Django tutorial. This is my code. > > *mysite* > **dwru/urls.py** > urlpatterns = [ > url(r'^$', include('product.urls', namespace="product")), > ] This regex is incorrect, and will only

Re: Django model for non web applications

2015-07-02 Thread Russell Keith-Magee
On Thu, Jul 2, 2015 at 12:50 AM, Jeff Fritz wrote: > I'm fairly new to Django and making my way through the tutorial. > > Knowing what I've learned so far, I'd like to explore using > django.db.models.Model in a non-web application. I'd like to take the > entire model layer and use it for databas

Re: Access dynamic session variable name in template

2015-07-02 Thread Daniel Roseman
On Thursday, 2 July 2015 19:09:59 UTC+1, jorr...@gmail.com wrote: > > Hi everyone, > > I am trying to keep track of who has voted on a comment by setting session > variables like 'commentvote1', 'commentvote2', etc to True. These variable > names are dynamically generated based on the id of the c

Access dynamic session variable name in template

2015-07-02 Thread jorrit787
Hi everyone, I am trying to keep track of who has voted on a comment by setting session variables like 'commentvote1', 'commentvote2', etc to True. These variable names are dynamically generated based on the id of the comment. How can I access these dynamic variables in my template? I've tried

Re: Help me develop a Job Tracker (?)

2015-07-02 Thread Javier Guerra Giraldez
On Thu, Jul 2, 2015 at 10:26 AM, Softeisbieger wrote: > I am currently thinking about the database representation. I don't think I > can solve this with django-viewflow: I need to be able to specify in advance > a deadline and an assignee for each task of a work flow. first of all, its important

Re: Help me develop a Job Tracker (?)

2015-07-02 Thread Softeisbieger
I am currently thinking about the database representation. I don't think I can solve this with django-viewflow: I need to be able to specify in advance a deadline and an assignee for each task of a work flow. Maybe consider the following: A work flow consists of a number of tasks. Each task is

Re: Creating model (table) inheritance in Django 1.8 using PostgreSQL

2015-07-02 Thread Some Developer
On 02/07/15 13:56, Vijay Khemlani wrote: You could dynamically create a ModelForm based on the model class: from django.forms import ModelForm MetaClass = type('Meta', (), {'model': ProductItemText}) MetaModelForm = type('ProductModelForm', (ModelForm, ), {'Meta': MetaClass}) form = MetaModel

Re: Can't Start Project.

2015-07-02 Thread Bill Freeman
SQLite persists your data in a file on the filesystem. You get to choose the name in settings.py. Using other databases requires additional configuration, including getting them installed, installing a python adapter that django supports, creating a database user with suitable permissions, and mo

Re: Creating model (table) inheritance in Django 1.8 using PostgreSQL

2015-07-02 Thread Vijay Khemlani
You could dynamically create a ModelForm based on the model class: from django.forms import ModelForm MetaClass = type('Meta', (), {'model': ProductItemText}) MetaModelForm = type('ProductModelForm', (ModelForm, ), {'Meta': MetaClass}) form = MetaModelForm() The only thing you would need is th

Creating model (table) inheritance in Django 1.8 using PostgreSQL

2015-07-02 Thread Some Developer
I have a model which defines an item and many sub-models which inherit from it to define the type of the model. Something like this: Product(models.Model): owner = models.ForeignKey(settings.AUTH_USER_MODEL) name = models.CharField(max_length=255) ProductItemText(Product):

NoReverseMatch in Django (url ploblem)

2015-07-02 Thread Jeff Gaoey
I'm a beginner of Django I want to set my url with database field_name instead of use primary key from Django tutorial. This is my code. *mysite***dwru/urls.py** urlpatterns = [ url(r'^$', include('product.urls', namespace="product")),] *myapp***product/urls.py** urlpatterns = [ url(r'^$