I tried deleting auth_user in order to force manage.py to create a new
one and see what happens (just in case there was some problem with the
database table)
I gave a manage.py syncdb (after deleting auth_user) and it created
the table. It also asked me to create a new superuser. I gave the
detail
On Mon, Feb 7, 2011 at 11:54 PM, Ben Dembroski wrote:
> My apologies to the list.
>
> I just noticed the commas at the end of the lines in the views.py
> file.
>
> Once I got rid of those, all was much better.
>
>
>
Glad to hear it. BTW, you are expressly going against how django
suggests you val
On Mon, Feb 7, 2011 at 8:28 PM, Ian Stokes-Rees
wrote:
> Does it make sense that inherited models also need their apps included in
> INSTALLED_APPS? Right now if I have:
>
> base/models.py:
>
> class MyBaseModel(django.db.models.Model):
> stuff
>
> and then elsewhere:
>
> derived/models.py:
>
On Monday, February 7, 2011 8:27:55 PM UTC, SimpleDimple wrote:
>
> I am new to Django and building a school system but am an experienced
> developer otherwise having firm grip over rails, .net, php & java.
>
> I have the following class where on teacher add/edit form, I am trying
> to filter va
Hi Django Users,
I had done the custom form with some fields which
includes(charfield,foreignkey(ModelChoiceField),many_to_many
field(MultiplemodelChoiceField) ),I had created a formset for my form then i
need to process and pass the formset datas into my template
*this is my
Thanks for the "heads up".
I actually was aware of this. When I'm trying to figure this kind of
thing out, I start with the simplest problem and then add complications
once I understand the fundamentals -- even if that means doing it the
wrong way initially. Perhaps not the best approach...
On Tue, Feb 8, 2011 at 10:21 AM, NavaTux wrote:
> Hi Django Users,
> I had done the custom form with some fields which
> includes(charfield,foreignkey(ModelChoiceField),many_to_many
> field(MultiplemodelChoiceField) ),I had created a formset for my form then i
> need to process a
Thanks Tom
mjob=Job.objects.create(name=name,*city=city,tags=tag*)
Here i shouldn't use to create a object for foreign key and many_to_many
field; we have to get it from it's id right? because the key property
violates then,
city=City.objects.get(id=city_id)
tag=Tag.objects.get(id=tag_id)
m
On Tue, Feb 8, 2011 at 12:32 PM, NavaTux wrote:
> Thanks Tom
> mjob=Job.objects.create(name=name,city=city,tags=tag)
>
> Here i shouldn't use to create a object for foreign key and many_to_many
> field; we have to get it from it's id right? because the key property
> violates then,
> city=City.obj
Hi there,
Trying not to reivent the wheel, I'm looking for some contact
management django app in a professional context (clients, manufaturer,
...).
I'm looking for something providing a company, office, employee, and
allowing to manage international addresses, phone, fax, email, IM,
websites
I forgot to mention: Python itself, as of 2.6 I believe, uses Sphinx
http://docs.python.org/release/2.6/documenting/index.html
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
T
I'm (reasonably) happy to include base models in INSTALLED_APPS, but
this argument:
On 2/8/11 4:32 AM, Tom Evans wrote:
> Explicit is better than implicit. If you want models from app 'base'
> installed on your system, you add the 'base' app to INSTALLED_APPS.
> Otherwise, its a series of $MAGIC w
Hi all,
I was a java programmer before I started to code in python.
For the last 1yr I use python and loves it.
I'm new to django, but tried django tutorial and used web2py before for a
few websites.
Now, I had a bid for an e-commerce site.
I don't want to go for magneto or the like, because I d
Hi,
I startet exploring django today and I'm currently stuck.
Right now I'm doing the 3 part of the tutorial, where it says Design
your URLs.
I editet the urls.py so it looks like this:
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns
On Feb 7, 9:44 pm, dw314159 wrote:
> Django gurus:
>
> Hello, I am experiencing very slow performance with Django when
> connected to an Oracle database. The exact same Django application
> runs far faster with PostgreSQL and SQLite, with the same source data
> loaded into each database. Looking a
On Tue, Feb 8, 2011 at 9:39 AM, Ian Stokes-Rees
wrote:
> I'm (reasonably) happy to include base models in INSTALLED_APPS, but
> this argument:
>
> On 2/8/11 4:32 AM, Tom Evans wrote:
>> Explicit is better than implicit. If you want models from app 'base'
>> installed on your system, you add the 'b
On Tue, Feb 8, 2011 at 2:43 PM, Szabo, Patrick (LNG-VIE)
wrote:
> Hi,
>
> I startet exploring django today and I'm currently stuck.
> Right now I'm doing the 3 part of the tutorial, where it says Design
> your URLs.
>
> I editet the urls.py so it looks like this:
>
> from django.conf.urls.default
Satchmo is the "big name" in the Django community for online shops.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+u
Youre right...kinda mixed up the version there..
Thanks !
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT-Entwickler
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: +43 (1) 534 52 - 1573
Fax: +43 (1) 534 52 - 146
-Ursprüngliche Nach
On Tue, Feb 8, 2011 at 2:53 PM, Arun K.Rajeevan wrote:
> Hi all,
> I was a java programmer before I started to code in python.
> For the last 1yr I use python and loves it.
Great, a warm welcome to you!
> I'm new to django, but tried django tutorial and used web2py before for a
> few websites.
Oops, hit 'send' by mistake on that last e-mail.
As I was saying, Satchmo is likely the way go to. However, don't
expect us to support your paying customers.
If you're not competent to support your customers in Django, use
another tool. Learn Django and implement a Satchmo store to teach
yourself
By support I only mean the support we usually get from forums, but a bit
faster response time.
Which I think is expectable over here.
Arun.K.R
On 8 February 2011 20:47, Shawn Milochik wrote:
> Oops, hit 'send' by mistake on that last e-mail.
>
> As I was saying, Satchmo is likely the way go to.
Well, thank you for plata pointer, I never heard about it.
Going to try that.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
djan
Hi,
I'm new to Django, but since this project will take a while I'm already
using 1.3 alpha since it will probably be released when I'm done…
As I understand it, the preferred method now are class-based views. But
I seem to be missing some kind of AuthenticationMixin… right now, have
to override
I am trying to insert data into db it throws below error,can any please fix
this.
model.py
from django.db import models
# Create your models here.
class Profile(models.Model):
name = models.CharField(max_length=50, primary_key=True)
assign = models.CharField(max_length=50)
doj
hi
I created some User Profile in my app.
Each user can add some posts and now I'd like one user to be able to
view/modify only his/her posts in the admin, and not the posts from
other users.
I have no idea about how to do this.
Any hint or link to a tutorial/doc would be very helpful, so far I c
I have coded a form which will display some data in a dropdown
selection box. The data is being populated from a a queryset that I
have setup in the form's code. However the entries in the dropdown
only display as objects of the table from which they're being
retrieved, and don't display the actual
On Tue, Feb 8, 2011 at 3:37 PM, sushanth Reddy wrote:
> I am trying to insert data into db it throws below error,can any please fix
> this.
form.Fields normalize to a python value. That python value must be
assignable to the model field you are trying to update. You cannot
assign a string to a fo
Hi.
I'm stuck with a problem concerning the 'resolve' and 'reverse'
functions.
urls.py:
urlpatterns = patterns('',
(r'^points/', include ('points.urls')),
(r^deliveries/, include ('deliveries.urls'))
)
points/urls.py
urlpatterns = patterns('points.views',
(r'^(?P\d+)/$', 'point_dispatch')
Hello. I hope someone is maybe having a slow day and can spend a
little time with me. Here's the whole story: Several months ago, our
company started a django project. This project was headed by one man.
Well, as of early January, he is no longer with the company. Now, we,
the survivors, have the t
On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote:
> hi
>
> I created some User Profile in my app.
> Each user can add some posts and now I'd like one user to be able to
> view/modify only his/her posts in the admin, and not the posts from
> other users.
> I have no idea about how to do this.
>
> An
On Tue, Feb 8, 2011 at 5:26 PM, Dev@CB wrote:
> Hello. I hope someone is maybe having a slow day and can spend a
> little time with me. Here's the whole story: Several months ago, our
> company started a django project. This project was headed by one man.
> Well, as of early January, he is no long
On Tue, Feb 8, 2011 at 4:26 PM, Dev@CB wrote:
> Hello. I hope someone is maybe having a slow day and can spend a
> little time with me. Here's the whole story: Several months ago, our
> company started a django project. This project was headed by one man.
> Well, as of early January, he is no long
Dear Gurus,
I've made a custom method for getting the score (from django-voting)
for a giving Model:
class Link(models.Model):
episode = models.ForeignKey("Episode", related_name="links")
url = models.CharField(max_length=255, unique=True, db_index=True)
def __unicode__(self):
Tom, why are you discouraging me?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For m
Andres,
Thank you for your kind, helpful reply. Heading to lunch now, more
django later!
Thank you again,
Justin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscri
On Feb 8, 5:33 pm, Andres Lucena wrote:
> On Tue, Feb 8, 2011 at 5:00 PM, jean polo wrote:
> > hi
>
> > I created some User Profile in my app.
> > Each user can add some posts and now I'd like one user to be able to
> > view/modify only his/her posts in the admin, and not the posts from
> > other
On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote:
> Tom, why are you discouraging me?
>
My intention was not to discourage you; it was to encourage you to ask
a sensible question in a legible manner. If you take slight at that,
then I have no problem with not corresponding with you further.
Enjoy yo
How do I specify which field of data to display in a dropdown box,
that is being populated by a queryset, in a form definition? And then
also how do I also specify the underlying non-dispalyed key data for
each entry in the same dropdown?
--
You received this message because you are subscribed to
On Tue, Feb 8, 2011 at 6:11 PM, Tom Evans wrote:
> On Tue, Feb 8, 2011 at 5:01 PM, Dev@CB wrote:
>> Tom, why are you discouraging me?
>>
>
> My intention was not to discourage you; it was to encourage you to ask
> a sensible question in a legible manner. If you take slight at that,
> then I have
*.html
{% csrf_token %}
starts
ends
contains
equal
#
views.py
rstartsLkIn, rendsLkIn, rcontainsLkIn, requalLkIn =
request.POST.get('rstartsLkIn','') ,
request.POST.get('rendsLkIn','') ,
request.POST.get('rcontainsLkIn',''
To precise:
I have 2 models:
class Job(models.Model):
name = models.CharField(max_length=150, unique=True)
slug = models.SlugField(max_length=150, unique=True)
class JobType(models.Model):
name = models.CharField(max_length=150, unique=True)
slug = models.SlugField(max_length=150,
On Tuesday, February 8, 2011 7:18:59 PM UTC, gintare wrote:
>
>
> *.html
>
>
> {% csrf_token %}
>
>
> starts value="rstartsLkIn"
> ends TD>
> contains value="rcontainsLkIn" checked
> equal value="requalLkIn"
>
>
> #
>
In the clean() of an admin form I want to give the user some warnings.
So this is what I do in the admin -
class SomeForm(forms.ModelForm):
class Meta:
model = SomeModel
def clean(self):
self.warnings = []
self.warnings.append("Warning: you seem to be confused.")
Ian,
Thank you for the prompt reply!
I am observing the same behavior in the Django shell. Here the actual
query runtime is about the same between Oracle and PostgreSQL back-
ends, but the total turnaround time is about 18 times longer with
Oracle. I believe the following code demonstrates this c
I have three Django sites that I've been working on recently and I've
been doing most of the development work in Dreamweaver. I don't use
any of the wysiwyg features (or, pretty much, any of the Dreamweaver
program features), but I like it because I can do all the the code
edits and the FTP transf
Is it possible to code something to cause the default widget of a
field to not be displayed on a screen and code the desired html
element manually instead?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to djan
I use NetBeans and it's OK :)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more
I really enjoy Wing IDE, it has an excellent debugger. It won't do
your ftp stuff but it will make solving bugs a lot easier.
CH
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
I'm using PyCharm...
2011/2/8 Karen McNeil
> I have three Django sites that I've been working on recently and I've
> been doing most of the development work in Dreamweaver. I don't use
> any of the wysiwyg features (or, pretty much, any of the Dreamweaver
> program features), but I like it beca
On Tuesday, February 8, 2011 8:30:54 PM UTC, Karen McNeil wrote:
>
> I have three Django sites that I've been working on recently and I've
> been doing most of the development work in Dreamweaver. I don't use
> any of the wysiwyg features (or, pretty much, any of the Dreamweaver
> program featu
On Tue, Feb 8, 2011 at 5:43 PM, Daniel Roseman wrote:
> On Tuesday, February 8, 2011 8:30:54 PM UTC, Karen McNeil wrote:
>>
>> I have three Django sites that I've been working on recently and I've
>> been doing most of the development work in Dreamweaver. I don't use
>> any of the wysiwyg feature
I have found http://stackoverflow.com/questions/tagged/django to be an
awesome resource.
CH
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send
Hi,
we want to write some testing code, but our site uses Solr for
indexing. The test cases we are running are testing -among other
things- the searching.
problem is: we need to run some additional code to index the stuf the
fixtures just inserted into the DB.
as far as I read it the django uni
I use Textmate ($55?) for editing. Great color coding for html, ruby,
php, javascript, css, and python. :-)
I use Terminal (free) for Subversion and Git (version control). I'd
highly recommend Git. It is easier to use and les of a hassle than
Subversion.
I use Cyberduck (free) for FTP and Mac's F
If I import some tuple which is used for choices in a forms.RadioSelect widget,
then the choices don’t get translated
models.py:
BOOL_CHOICES = ((True, _(u'Yes')), (False, _(u'No')))
forms.py:
from models import BOOL_CHOICES
1) does work an translates the choices
form.fields['accomdation'].wi
Are you doing: from django.utils.translation import ugettext_lazy as _ ?
or: from django.utils.translation import ugettext as _ ?
The first one shoud work.
Rgds,
Marcos
On Tue, Feb 8, 2011 at 7:11 PM, Ivo Brodien wrote:
> If I import some tuple which is used for choices in a forms.RadioSelect
+1 for not editing code and uploading it.
I recommend vim or gVim
Brian
On Tue, Feb 8, 2011 at 4:57 PM, Austin Govella wrote:
> I use Textmate ($55?) for editing. Great color coding for html, ruby,
> php, javascript, css, and python. :-)
>
> I use Terminal (free) for Subversion and Git (version
If you work in Windows I would recommend PyScripter. It is lightweight and
the fastest IDE I've tested so far (and I've used others like PyDev, Wing or
NetBeans)
It also features code completion, debugging, etc. I've used it to debug
several Django applications and it worked like a charm.
--
You
hey Marcos,
> Are you doing: from django.utils.translation import ugettext_lazy as _ ?
> or: from django.utils.translation import ugettext as _ ?
>
> The first one shoud work.
Indeed I used ugettext instead of ugettext_lazy
Thanks!
--
You received this message because you are subscribed to th
I understand what you mean about the scope
Thanks for the sample code, very helpful, will try it out and let you
know.
Thanks,
On Feb 8, 2:45 pm, Daniel Roseman wrote:
> On Monday, February 7, 2011 8:27:55 PM UTC, SimpleDimple wrote:
>
> > I am new to Django and building a school system but
I understand the model part, I am more concerned about
1) how and which event to capture on server side when header is
clicked
2) how to know which column's header was clicked
Can you please help.
On Feb 8, 2:36 am, Aryeh Leib Taurog wrote:
> On Feb 7, 10:50 pm, SimpleDimple wrote:
>
> > I am
Great Pointer - I think this is what I was looking for.
On Feb 8, 2:13 am, Shawn Milochik wrote:
> 1. You'll have to create your own login view. You can look at Django's
> view and just copy it. You can use the built-in authentication and
> template and everything, plus whatever else you want to
Thanks for the link but actually I am not looking for debugging, I
just want to add up my own stuff into the header coming from DBcan
you help me in that ?
On Feb 8, 2:08 am, Shawn Milochik wrote:
> This will help you a lot:
>
> https://github.com/robhudson/django-debug-toolbar
>
> It shows
can anyone help or point me to some simple django based app that I can
study to understand more ?
On Feb 8, 2:07 am, SimpleDimple wrote:
> I can live w/o AJAX for now to keep it simple.
>
> What I am not clear is on how to do the postback from javascript ? I
> mean on what URL and pass on which
I am new to django so not sure if I am of much help but let me try
the key is usually the ID field of your table.
for the value to display add a method __str___ in your model, here is
sample code from one of my project
read more on ___str___ and ___unicode___ methods
class Teacher(models.Model):
The reason you should use the toolbar is that it will help you
instantly determine which templates are being used, so you know which
ones to edit.
Shawn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django
On Tue, Feb 8, 2011 at 11:34 PM, Pascal Germroth wrote:
> Hi,
>
> I'm new to Django, but since this project will take a while I'm already
> using 1.3 alpha since it will probably be released when I'm done…
>
> As I understand it, the preferred method now are class-based views. But
> I seem to be m
On Feb 8, 3:15 pm, dw314159 wrote:
> I am observing the same behavior in the Django shell. Here the actual
> query runtime is about the same between Oracle and PostgreSQL back-
> ends, but the total turnaround time is about 18 times longer with
> Oracle. I believe the following code demonstrates t
On Feb 8, 2011, at 12:30 PM, Karen McNeil wrote:
> I have three Django sites that I've been working on recently and I've
> been doing most of the development work in Dreamweaver. I don't use
> any of the wysiwyg features (or, pretty much, any of the Dreamweaver
> program features), but I like it
On Feb 8, 3:30 pm, Karen McNeil wrote:
> I have three Django sites that I've been working on recently and I've
> been doing most of the development work in Dreamweaver. I don't use
> any of the wysiwyg features (or, pretty much, any of the Dreamweaver
> program features), but I like it because
So... that's a no, then?
I mean, about the question I asked. You know, the "is there an IDE +
FTP program" question?
Although, to assuage everyone's concerns:
- I do have a development site that I use to test any significant
changes before I put them on the live site.
The point that I
So... that's a no, then?
I mean, about the question I asked. You know, the "is there an IDE +
FTP program" question?
Although, to assuage everyone's concerns:
-- I do have a development site that I use to test any significant
changes before I put them on the live site. The point that I was
tryi
On 9 February 2011 02:03, Karen McNeil wrote:
> So... that's a no, then?
>
> I mean, about the question I asked. You know, the "is there an IDE +
> FTP program" question?
Quoting http://www.aptana.org/products/studio2:
File Transfer & Synchronization
Support for one-shot as well as keep-synchro
This is a re-post of my stack overflow question here
http://stackoverflow.com/questions/4939908/how-should-i-properly-impliment-https-auth-remote-auth-in-django
Hi,
I am in the planning phase a new project. I want to be able to control
multiple relays from my android powered phone over the in
I'm working on building a fabric deployment for a project with a
fairly complex environment. There will be 2+ app servers running
django code, a few database servers running in some kind of master/
slave configuration, a rabbitmq server, a mail server, some load
balancers, etc. There will be over 1
On Tue, 2011-02-08 at 05:53 -0800, Arun K.Rajeevan wrote:
> The one e-commerce solution I found and looks promising is Stachmo
> http://www.satchmoproject.com/
> which is django based.
go for it - it is developed by people with a long history of developing
e-commerce sites in a variety of platf
Hi guys! I receive a strange errror when I try to get my pip pacakges:
(lukkom_env)alex@big:~/lukkom_env/lukkom$ pip freeze|grep registration
-e hg+Not trusting file
/home/alex/lukkom_env/lib/src/django-registration/.hg/hgrc from untrusted
user root, group root
Not trusting file /home/alex/lukkom_
I've solved it creating a new virtualenv, if anybody knows the error, please
tell me!
On Wed, Feb 9, 2011 at 02:46, Álex González wrote:
> Hi guys! I receive a strange errror when I try to get my pip pacakges:
>
> (lukkom_env)alex@big:~/lukkom_env/lukkom$ pip freeze|grep registration
> -e hg+Not
On Feb 8, 10:03 am, hank23 wrote:
> I have coded a form which will display some data in a dropdown
> selection box. The data is being populated from a a queryset that I
> have setup in the form's code. However the entries in the dropdown
> only display as objects of the table from which they're be
How can I use these functions to login and authenticate with my own
database? I was trying to look for it in the documentation but it
doesn't seem to have the answer.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send e
greetings,
a year ago I had the same problem and did not found any solution, after that
i started to build my own HTTP(S) single sign on using PHP (but recently i
ported on the Django) with the work flow like this
login :
clients (consumer) check the credential server using hidden iframe
server (s
Tonight the Django team has released updated versions of Django 1.2
and Django 1.1 to correct multiple security issues reported to us.
* Details in the blog post here:
http://www.djangoproject.com/weblog/2011/feb/08/security/
* Download updated versions of Django here:
http://www.djangoproject.co
I've been curious about workflow with Django sites (or other
frameworks for that matter). I LOVE being able to remote edit. I can
see where this request is coming from. If I want to edit a file on the
server, I just open it up on my local machine, edit, and save. The
SFTP transfer all happens behin
I think the documentation on creating your own authorization backend is
what you need.
http://docs.djangoproject.com/en/1.2/topics/auth/#writing-an-authentication-backend
It's very simple to do, and you can do it however you want. For example,
it would take you about five minutes to write one
How bad of an Idea is it to not use Django forms? I feel like Django forms
are kinda a pain
On Fri, Feb 4, 2011 at 12:06 PM, Tom Evans wrote:
> On Fri, Feb 4, 2011 at 4:20 PM, Shawn Milochik wrote:
> > Here's the main piece:
> > http://docs.djangoproject.com/en/1.2/ref/forms/
> > Just make a f
I wouldn't consider using a UUID as multi-factor authentication.
All our API traffic is over https. We use the basic authentication included
with django-piston.
Any reason why you want to exchange username and password for an API Key? Why
not just authenticate each request with username and p
Hi Guys,
I would like to create a standalone server using django environment which
accepts/receive inputs through socket connections. After that some
processing and then updating the database.
I created one python server and set the environment variable but I figured
out that as soon as somethin
88 matches
Mail list logo