Yes , Sam is right.
unique=True was added after table was created.
On Sat, May 11, 2013 at 12:12 AM, Sam Solomon wrote:
> My guess is that unique=True was added after the table was created using
> syncdb.
>
> I'm guessing that most companies that use Django professionally use South (
> http://
IBM_DB_DJANGO-1.0.5
---
IBM_DB_DJANGO adaptor enables access to IBM databases from Django
applications http://www.djangoproject.com/. The adaptor is developed
and maintained by IBM.
What's New?
- Added support for Django-1.5, with backward comp
On 10/05/2013 10:23pm, gintare wrote:
Windows7 computer.
Django 1.5.1
Python 2.7
Not able to create a site, instead text document pops out.
Command:
c:\Python27\Scripts>c:\Python27\Scripts\django-admin.py startproject mysite
This looks as though you changed directory to c:\python27\script
My urls.py:
from django.conf.urls import patterns, include, url
# from django.contrib.auth import login, logout
# Uncomment the next two lines to enable the admin:
Hi Philippe,
I think that it really depends on how modular you would like your Django
project to be. Do you want the stats generation functionality to be
separately pluggable from the pie-charting functionality? Is your
gather_data app large enough (number of models) to warrant breaking it
down? I
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general. I believe a good way to get apps
talking to each other is through the use urls.py configurations in
conjunction with views. More on that in the official Django tutorial.
On Sat, May 11,
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general. I believe a good way to get apps
talking to each other is through urls.py configurations. More on that in
the official Django tutorial.
On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloy
By the way, the book mentioned above - "Two Scoops of Django" - makes very
good reading for Django in general.
On Sat, May 11, 2013 at 2:28 AM, Sithembewena Lloyd Dube
wrote:
> Hi Phillipe,
>
> I think that it really depends on how modular you would like your Django
> project to be. Do you want
Hi Phillipe,
I think that it really depends on how modular you would like your Django
project to be. Do you want the stats generation functionality to be
separately pluggable from the pie-charting functionality? Is your
gather_data app large enough (number of models) to warrant breaking it
down? I
Hi,
I'm pretty new to Django and am having a problem with a race conditions
while modifying my session data. I'm using the standard session backend in
Django 1.4.1,, backed by Mysql.
I have view A, which can take a long time to process, and view B, which is
usually faster. I store multiple dat
Hi all,
I'm new to Python and Django so don't be to hard on me please :)
I'm writing a Django project which analyses your music folders, gives back
statistics about it (like file-extentions, mp3 bitrate, number of unique
artists,...) and generates pie charts of these stats.
My project current
Granted this structure doesn't seem reasonable. Each manufacturer shouldn't
be a separate app, but rather "backends" to generic storage or invoice apps.
So you only need
INSTALLED_APPS = (
# ...
'storage',
'invoice'
)
And then work from there. The apps themselves should be able to reg
Hello,
I have 2 models: car and salesman. I want to make a form based off the car
model. Salesman name is a foreign key in the car model. In the form, I want
to be able to enter the salesman's name and if it doesn't exist already
then create a new salesman.
So I have something like this in for
Wow thanks amazing work, I wondered if someone had figured out a way to do
it.
thanks
--jerry
On Fri, May 10, 2013 at 1:04 PM, Radomir Wojcik wrote:
> I was looking for the answer to this today and I wrote a tutorial on how
> to do this based on all the stuff I found on the net:
>
> With the
Answering my own question from a few days ago, this:
choice_vals = scene.begin_scene.all().values()
ChoiceFormFactory = formset_factory(ChoiceForm)
formset = ChoiceFormFactory(initial=choice_vals)
is all wrong. I needed to be using a modelformset_factory, not a
formset_factory, with a
On Fri, May 10, 2013 at 9:37 AM, Larry Martell wrote:
> On Fri, May 10, 2013 at 8:55 AM, Tom Evans wrote:
>> On Fri, May 10, 2013 at 2:52 PM, Larry Martell
>> wrote:
>>> Just upgraded to 1.5 and my app is failing with:
>>>
>>> Internal Server Error:
>>> Traceback (most recent call last):
>>> Fi
tnx :D
On Fri, May 10, 2013 at 4:31 PM, Shawn Milochik wrote:
> It is not possible.
>
> https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from th
It is not possible.
https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
--
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+uns
Nops ... when i used
INSTALLED_APP = {
'invoice.sony',
'invoice.samsung',
'storage.sony',
'storage.samsung',
}
storage.samsung.models is overrind invoice.samsung.models
:(
On Fri, May 10, 2013 at 4:08 PM, Thiago Avelino wrote:
> Yep, add in installed_app:
>
> application_name.stor
Yep, add in installed_app:
application_name.storage.sony
application_name.storage.samsung
Cheers,
Thiago Avelino
On Fri, May 10, 2013 at 3:19 PM, Valder Gallo wrote:
> I cant have 2 subapp with same name in Django ?
>
> Ex.
>
> invoice/sony
> invoice/samsung
>
> storage/sony
> storage/sams
My guess is that unique=True was added after the table was created using
syncdb.
I'm guessing that most companies that use Django professionally use South (
http://south.aeracode.org/) to make schema changes easier.
Without South, you would have to keep the database in sync with the code
manual
I cant have 2 subapp with same name in Django ?
Ex.
invoice/sony
invoice/samsung
storage/sony
storage/samsung
--
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
I was looking for the answer to this today and I wrote a tutorial on how to
do this based on all the stuff I found on the net:
With the economy class Linux hosting its a bit tricky. For starters you
don't have root access to the site packages so you cannot install for
example MySQL-Python.
1.
On Fri, May 10, 2013 at 8:55 AM, Tom Evans wrote:
> On Fri, May 10, 2013 at 2:52 PM, Larry Martell
> wrote:
>> Just upgraded to 1.5 and my app is failing with:
>>
>> Internal Server Error:
>> Traceback (most recent call last):
>> File "/Library/Python/2.7/site-packages/django/core/handlers/base.
ok i'm totaly stupid
{% extends "Base.html" %}
{% block titolo %}Attore{% endblock %}
{% block contenuto %}
{{ attore.nome }} {{ attore.cognome }}
{% endblock %}
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this gr
Do you have a urls.py file? To used the url tag with a name you need to
have a defined url with that name, example:
urlpatterns = patterns('',
url(r'^$', 'app.views.index', name="index"),
)
On Friday, May 10, 2013 9:38:27 AM UTC-5, Hu Shizhi wrote:
>
> Hi,
>
> I am new to Django and am using
Hi maybe try with this app https://github.com/digi604/django-smart-selects
Cheers
On Thu, May 9, 2013 at 4:33 PM, Sam wrote:
> I have 3 tables: Continent, Country and Story.
>
> Country has ForeignKey(Continent) and Story has ManyToManyField(Country,
> blank=True) field.
>
> What I need is to
Hi,
I am new to Django and am using django-registration and followed the
quickstart.rst document and get the following. Could anyone kindly help?
Thanks,
Tian
NoReverseMatch at /accounts/login/
Reverse for 'index' with arguments '()' and keyword arguments '{}' not found.
Request Method:GETRe
On Fri, May 10, 2013 at 2:52 PM, Larry Martell wrote:
> Just upgraded to 1.5 and my app is failing with:
>
> Internal Server Error:
> Traceback (most recent call last):
> File "/Library/Python/2.7/site-packages/django/core/handlers/base.py",
> line 187, in get_response
> response = middleware
In this way there isn't an exception but it doesn't load attore.nome e
attore.cognome
*Attore.html :*
{% extends "Base.html" %}
{% block titolo %}Attore{% endblock %}
{% block contenuto %}
{% for attore in film %} {{ attore.nome }} {{ attore.cognome }}
{% endfor %}{% endblock %}
--
Y
Sorry for the stupid question, but how? Thanks.
*views.py :*
from django.shortcuts import render_to_response, get_object_or_404from
django.template import RequestContextfrom models import *
def film(request):
film = Film.objects.order_by("titolo")
return render_to_response('Film.html',
Just upgraded to 1.5 and my app is failing with:
Internal Server Error:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py",
line 187, in get_response
response = middleware_method(request, response)
File
"/Library/Python/2.7/site-packag
Hi
I'm doing a test to insert images in mongodb with GridFS.
I am using mongoengine.
I have this code:
def index (request):
if request.method == 'POST':
MovieTitle = 'Avatar'
Movie movie = (= movieTitle movieTitle)
my_painting = Movie (movieTitle = movieTitle)
Le jeudi 9 mai 2013 21:09:13 UTC+2, Javier Guerra a écrit :
>
> On Thu, May 9, 2013 at 11:55 AM, Amirouche Boubekki
> > wrote:
> > I just released a new version of PythonScript, a "variant" of Python
> that
> > compiles to javascript.
>
>
> nice!
>
> how does it compare with Pyjamas (http
Windows7 computer.
Django 1.5.1
Python 2.7
Not able to create a site, instead text document pops out.
Command:
c:\Python27\Scripts>c:\Python27\Scripts\django-admin.py startproject mysite
does not create folder 'mysite', instead (as any other commands like
version, help..)
commnad gives a
We provide free job posting in our beta period of djangojobs.net
You can follow us via twitter @djangojobsnet or our job email list to get
latest job posts
http://djangojobs.net
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe fr
On Friday, 10 May 2013 10:29:21 UTC+1, Federico Erbea wrote:
>
> Hello everyone thanks in advance on the aid, I'm new in programming in
> general. I would like to create a link (in Film.html) and using the ID to
> open a new page (Attore.html) where to load only the data associated with
> that
> > Does anyone know if is possible execute a middleware only to a specific
> > application or url?
On 05/09/2013 04:56 PM, Shawn Milochik wrote:
> In your middleware you'll have access to the request object, so you can
> easily check the URL, user, etc.
I'd consider a solution based on view dec
Hi,
I am inserting data into my models using sqlite3 manually, but it's
not storing without id, it's generating error, this Id is generated
automatically in django. how is it possible that i can store data without
taking id value. please help me out.
thanks.
--
You received this me
Hello everyone thanks in advance on the aid, I'm new in programming in
general. I would like to create a link (in Film.html) and using the ID to
open a new page (Attore.html) where to load only the data associated with
that ID but it doesn't do that since it loads all data of attori instead of
I have choiced to use the wsgi.
2013/5/10 lx
> hi:
> the the Basic configuration of apache is:
>
> LoadModule python_module /usr/lib64/httpd/modules/mod_python.so
>
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODU
41 matches
Mail list logo