Re: Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-08 Thread Ryan Nowakowski
On Wed, May 08, 2013 at 04:16:33AM -0700, Hélio Miranda wrote: > I have a project in Django, and I'm using mongoengine to save images into a > Mongo database using GridFS. > > All ok so far, but the problem is... when trying to retrieve the images via > http request, with a REST API made with dj

Re: Django upload file for mongodb with GridFS

2013-05-08 Thread Ryan Nowakowski
On Tue, May 07, 2013 at 08:38:57AM -0700, Hélio Miranda wrote: > Hi > I am making an application in Django with mongodb. > And I needed an upload of files that I want to use mongodb's GridFS. > > I am using mongoengine between Django and mongo. > > Has anyone done something like this? > > I am n

error - MultiValueDictKeyError at /profilesetting/ramuss

2013-05-08 Thread Avnesh Shakya
hi, I am facing error - MultiValueDictKeyError at /profilesetting/ramuss "Key 'name' not found in " I am trying to upload image using dynamically(using javascript), but when I click on upload button after selecting image, it's showing this error. my html page contain- {% block scriptquer

Dynamic forms and related models.

2013-05-08 Thread noodlygod
Hello all, I'm attempting to create an RPG character generator using Django. My models are as follows: from django.db import models class Character(models.Model): name = models.CharField(null=False, blank=False, max_length=60) age = models.IntegerField() height = models.CharField(nul

Re: connecting problems to a DB using psycopg2

2013-05-08 Thread noodlygod
Hello, I'm not really an expert and everyone's configuration is different so rather than address your problem directly I'll provide a guide for how I got Postgres/Django to work together on Windows. 1. Download the Postgres installer found here

Re: Republish Static Files

2013-05-08 Thread s . pablo515
Fixed it... It was a caching issue... On Wednesday, May 8, 2013 11:38:05 AM UTC-7, s.pab...@gmail.com wrote: > > These are my current settings: > > STATIC_ROOT = '' > STATIC_URL = '/static/' > STATICFILES_DIRS = ( > 'absolute-path-to-static-dir' > ) > > Then I am accessing these files on my te

RE: How can i extend django registration Field

2013-05-08 Thread Babatunde Akinyanmi
How about specifics on the things you have tried and the errors that you got. You would get more responses of you supply those Sent from my Windows Phone -- From: Okorie Emmanuel Sent: 5/8/2013 9:23 AM To: django-users@googlegroups.com Subject: How can i extend django r

Re: Republish Static Files

2013-05-08 Thread s . pablo515
These are my current settings: STATIC_ROOT = '' STATIC_URL = '/static/' STATICFILES_DIRS = ( 'absolute-path-to-static-dir' ) Then I am accessing these files on my template by using {{STATIC_URL}} which works fine. But when I update any of the files, the changes do not show. How would you us

Re: Models at one place vs. separate places

2013-05-08 Thread Rafael E. Ferrero
Hello Parin, i do create separates apps... also every app have his own models and his own views, and his own templates, etc... the deal its how you can connect the differents apps. (I create another app who connect the others apps, i mean for a new project i create this connection app in base of th

Re: Benchmarking django application using ab (apache benchmark)

2013-05-08 Thread Kevin Daum
ab is one of the standard options. There are more listed here on StackOverflow. You could also check out loads , though it's still a prototype. Kevin On Tuesday, May 7, 2013 12:24

Re: Accessing foreign key objects reversely ??

2013-05-08 Thread Daniel Roseman
On Wednesday, 8 May 2013 11:03:06 UTC+1, sachin wrote: > Hello all, > > Accessing the foreign key object is simple using _set > lets say I have a models like: > > class Profile(models.Model): > """ > extended auth user profile > """ > user = models.OneToOneField(User) > emp_id

Re: Accessing foreign key objects reversely ??

2013-05-08 Thread Nikolas Stevenson-Molnar
Since you're using a foreign key, the relationship is one-to-many. I.e., one Profile to many Complaints. This means there is no "set" of profiles for a complaint. There /is/, however, a single Profile object related to each Complaint. In your case, it's "user". E.g: complaint.user _Nik On 5/8/201

Models at one place vs. separate places

2013-05-08 Thread Parin Porecha
Hi, I am developing a to-do task manager using Django 1.5 . It will have tasks, tags, different forms of input etc. I read on stackoverflow that creating separate apps with separate and limited functionalities is a good practice. So, should I create different apps for Task backend, Tag backend, a

Re: Noobie questions about Django and Databases

2013-05-08 Thread Nate Aune
> What I had planned to "learn by doing", is building a site that scrapes > the prices of baseball bats from about 20 different websites and displays > the best price when a user searches based on the model of the baseball / > softball / teeball bat. > Check out the django-dynamic-scraper:

Indiegogo Campaign

2013-05-08 Thread Fabrizio Messina
Sorry for the lag, I started an IndieGoGo campaign related to the development of ADjDaS (you should pronounce it A-gee-das) it will be a framework written in Dart and python/django (v. 3). It will be released open source (gpl/lgpl 3) and developed by an "ad hoc" no profit organization. ADjDaS

Re: App to engage users

2013-05-08 Thread Santiago Basulto
Here are a couple of apps i've been looking at myself: * https://github.com/frankwiles/django-app-metrics * https://code.google.com/p/django-voice/source/browse/#svn%2Ftrunk%2Fdjangovoice * https://github.com/SpreadBand/django-backcap * https://github.com/girasquid/django-feedback * https://code.

Retrieving images from GridFS using django-tastypie-mongoengine

2013-05-08 Thread Hélio Miranda
I have a project in Django, and I'm using mongoengine to save images into a Mongo database using GridFS. All ok so far, but the problem is... when trying to retrieve the images via http request, with a REST API made with django-tastypie-mongoengine, I get back a json object like this: {"file

Spreadsheet-like with ManyToMany relationship

2013-05-08 Thread Kismet 010
I need to mimic a *spreadsheet* with Django for a simple school app like '*task/student > score*', so I have this models: - Actividad (tasks) - Alumno (students) > M2M to 'Actividad' through 'Calificacion' - Calificacion (scores) I don't know how to proceed, if I need a formset or wh

add and remove instance keeping the log

2013-05-08 Thread Carlos Aboim
Hi Imagine something like: def Model_A(models.Model): number = models.IntegerField() date = models.DateField() Add an instance of the Model_A Delete an instance of the Model_A Add other instance of the Model_A Delete other instance of the Model_A Then when I do a query on database I wh

Accessing foreign key objects reversely ??

2013-05-08 Thread sachin
Hello all, Accessing the foreign key object is simple using _set lets say I have a models like: class Profile(models.Model): """ extended auth user profile """ user = models.OneToOneField(User) emp_id = models.CharField(max_length=10) phone_number = models.CharField(max_le

How can i extend django registration Field

2013-05-08 Thread Okorie Emmanuel
HI, Am new to django, and working on application i intend to extend the registration field using the django registration app by james bennett, it i keep having several error. is there any other way i can achieve these, or how can i effectively interage django registration -- You received thi