Re: Django Bigener

2011-05-07 Thread delegbede
Welcome Rahim. Start with the django tutorials. Second, look through the django book. These two would give you the needed basics. What counts here is the zeal and it seems you have it. All the best. Sent from my BlackBerry wireless device from MTN -Original Message- From: hersh

Re: Using fields from multiple models (connected by foreign key) in the ModelAdmin

2011-05-07 Thread Eiji Kobayashi
Hi Oleg, Thanks for your patience. I'm pretty sure I DID miss something like you said. Here's my admin.py, with the modifications you suggested: # admin.py from django.contrib import admin from django.contrib.auth.models import User from models import Member, Address, Phone class

Re: Using fields from multiple models (connected by foreign key) in the ModelAdmin

2011-05-07 Thread Oleg Lomaka
If you get the same error, the you have missed something. Show me your current admin.py once more. As to "I'd like to be able to access the fields from the Phone and Address model from the MemberAdmin model". You can access fields from Phone and Address from the InlineAdminModel. That is in case

Re: Loading project to alwaysdata

2011-05-07 Thread ruler501
I want to deploy it. I don't know how they run django there. I don't read french. On May 7, 9:56 pm, Anoop Thomas Mathew wrote: > Can you elaborate a little. is it that you want to set up a django > project or just to display an html from web space?? > > if your aim is 1, > you

Re: Loading project to alwaysdata

2011-05-07 Thread Anoop Thomas Mathew
Can you elaborate a little. is it that you want to set up a django project or just to display an html from web space?? if your aim is 1, you can find help here.. docs.djangoproject.com/en/dev/howto/deployment/ if your aim is 2, you'd better go to some basic web hosting forums. regards, On

Re: Django Bigener

2011-05-07 Thread Anoop Thomas Mathew
Hi Rahim, try docs.djangoproject.com and do the tutorial yourself. This would help you very much. regards, atm On 08/05/2011, hersh wrote: > Hi to all, > > I am new. I want to apply Django to develop an E-commerce project. I > am looking for a good reference to start.

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread Nick Arnett
On Sat, May 7, 2011 at 6:50 PM, George Silva wrote: > Just drop the old tables and run syncdb again! I didn't think it was safe to assume that he wanted to throw away all of his data... Nick -- You received this message because you are subscribed to the Google Groups

Django Blog Engines that Run on GAE

2011-05-07 Thread Mark Curphey
I am looking for some base code to start a side-project without having to re-invent the wheel. Are there any good Django Blog Engines that are open source (non GPL) and work (or can easily be hacked to work) on the Google App Engine (i.e. non-rel)? Most the GitHub projects look stale or

Django Bigener

2011-05-07 Thread hersh
Hi to all, I am new. I want to apply Django to develop an E-commerce project. I am looking for a good reference to start. I 'd like to add that I have to do the project in less than one month. I need a quick reference to understand the basics of Django and start my project. If there are some

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread George Silva
Just drop the old tables and run syncdb again! Cheers On Sat, May 7, 2011 at 10:45 PM, Nick Arnett wrote: > > > On Sat, May 7, 2011 at 6:05 PM, Dug_the_Math_Guy > wrote: > >> HI I'm new to Django and just getting some models going. I started >>

Re: my models are remembering old fields that I have since deleted

2011-05-07 Thread Nick Arnett
On Sat, May 7, 2011 at 6:05 PM, Dug_the_Math_Guy wrote: > HI I'm new to Django and just getting some models going. I started > with a more complex model and got errors so I scaled back to a more > minimalist model to see if I could get that working. I flushed my >

Loading project to alwaysdata

2011-05-07 Thread ruler501
I have made a project and now want to put it on the internet. How do I get it on alwaysdata. I have registered a domain name already and have an account. I do not know much about how internet stuff works. my knowledge stops at how to code the websites(and not too much here yet). so If you could

my models are remembering old fields that I have since deleted

2011-05-07 Thread Dug_the_Math_Guy
HI I'm new to Django and just getting some models going. I started with a more complex model and got errors so I scaled back to a more minimalist model to see if I could get that working. I flushed my database to get rid of any old info and synched the DB to create the new more minimal models.

Re: [Django] Error (EXTERNAL IP): /add_comment/10/

2011-05-07 Thread Andy McKay
On 2011-05-04, at 4:44 AM, Aragorn wrote: > File "/home/max/public_html/examplesite.com/django/dbe/blog/ > models.py", line 44, in save > self.body) You told us lots of stuff, including the save method, but since we don't know line numbers, which one is line 44? > UnicodeDecodeError: 'ascii'

Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-07 Thread Aragorn
...views.py def add_comment(request, pk): """Add a new comment.""" p = request.POST if p.has_key("body") and p["body"]: author = "Anonymous" if p["author"]: author = p["author"] comment = Comment(post=Post.objects.get(pk=pk)) # save comment form

Re: Using fields from multiple models (connected by foreign key) in the ModelAdmin

2011-05-07 Thread Eiji Kobayashi
This doesn't do anything. I still get the same error. I'd like to be able to access the fields from the Phone and Address model from the MemberAdmin model. I still cannot do this. Any other way? Eiji On May 7, 7:22 am, Oleg Lomaka wrote: > Move fields from ModelAdmin to

Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-07 Thread Aragorn
Hi, this is code for mail send: def save(self, *args, **kwargs): """Email when a comment is added.""" if "notify" in kwargs and kwargs["notify"] == True: message = "Comment was was added to '%s' by '%s': \n\n%s" % (self.post, self.author, self.body)

Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-07 Thread Aragorn
Hello, I tried it runserver on the production server and does not work! I made some mistakes in copying the code? On 4 Mag, 15:30, Xavier Ordoquy wrote: > Hi, > > Have you tried the development server (runserver) on the computer that runs > the wsgy ? > What LANG does

Re: Error (EXTERNAL IP): /add_comment/10/

2011-05-07 Thread Aragorn
Hi, this is code for mail send: def save(self, *args, **kwargs): """Email when a comment is added.""" if "notify" in kwargs and kwargs["notify"] == True: message = "Comment was was added to '%s' by '%s': \n\n%s" % (self.post, self.author, self.body)

Re: ajax select box

2011-05-07 Thread Shawn Milochik
You'll need to write JavaScript. Specifically: Write a function that uses AJAX to pass the state to a Django view and receive the city list, then populate the city drop-down. Bind that function to the change event of your state drop-down box. This isn't a Django question, though. If

Re: ajax select box

2011-05-07 Thread delegbede
Google jquery or ajax for related select boxes. I'm sure you'd get good written codes to tweak for your purpose. All the best. Sent from my BlackBerry wireless device from MTN -Original Message- From: pankaj sharma Sender: django-users@googlegroups.com

ajax select box

2011-05-07 Thread pankaj sharma
hello everybody... i want to have an advanced search option... i have a college database.. which has city state and other things .. now i want to provide a search system to user such that they can search colleges by city and states and names i have given select box for states and city..

Re: UML to Django - online generation service

2011-05-07 Thread Javier Guerra Giraldez
On Sat, May 7, 2011 at 11:21 AM, Juan Hernandez wrote: > django-extensions does something similar second that typically i start developing an app by drafting the models. i keep a window with the output of django-extensions updated automatically every time i save. makes

Re: Help! Database is locked! Windows developing envrionment, sqlite3, djcelery and djkombu

2011-05-07 Thread Jirka Vejrazka
Or any other database that you would be familiar with or could easily get help for. SQLite3 is great for single-process tasks and simple development. It can't however handle simultaneous writes (other databases supported by Django can handle simultaneous writes) As you use multiple

Re: Froms new line in forms.py

2011-05-07 Thread GKR
Thanks yu hepled me to resolve the problem.. The problem was i used it earlier as raise forms.ValidationError("Item Code [" + fieldrec.barcode_id + "] already exists." + mark_safe("Errorhere") + fieldrec.i_name + " -- " + str(fieldrec.i_size) + "(ml) -- Rs." + str(fieldrec.i_price) + " --

Re: Froms new line in forms.py

2011-05-07 Thread GKR
Thanks yu hepled me to resolve the problem.. The problem was i used it earlier as raise forms.ValidationError("Item Code [" + fieldrec.barcode_id + "] already exists." + mark_safe("Errorhere") + fieldrec.i_name + " -- " + str(fieldrec.i_size) + "(ml) -- Rs." + str(fieldrec.i_price) + " --

testing a model that uses stored procedures

2011-05-07 Thread Viktor Kojouharov
Hello, I have a model that uses a stored procedure + a column outside of django's control for specialized selects. My problem is that I don't see a good way of testing my related python code for that model. Since I need to execute some SQL code at the beginning of each test, right after the

Re: UML to Django - online generation service

2011-05-07 Thread Juan Hernandez
django-extensions does something similar On Sat, May 7, 2011 at 3:04 AM, gusheng wrote: > I'm thinking of something opposite.. > > Is it possible to draw uml base on my models? > > or, how to draw or present my model-structure-data.. > > > On May 4, 10:26 pm, jcabot

Re: Django password reset modification

2011-05-07 Thread Amanjeev Sethi
I second that. Email is the 'postcard' of the internet world. I wouldn't send plain text password through email(s) even while running HTTPS web based email services. On Sat, May 7, 2011 at 11:27 AM, Andy McKay wrote: > > On 2011-05-05, at 9:36 PM, Phui-Hock wrote: > > On

Re: Problem in Configuring the database

2011-05-07 Thread rahul raj
On Fri, May 6, 2011 at 11:21 PM, Stuart MacKay < smac...@flagstonesoftware.com> wrote: > If you search for the error code 2002 the most likely cause is that the > MySQL server is not running. However you also mention that you are running > VMWare - I presume this is where the database server is

Re: Django password reset modification

2011-05-07 Thread Andy McKay
On 2011-05-05, at 9:36 PM, Phui-Hock wrote: > On May 6, 4:22 am, Shawn Milochik wrote: >> This is a bad idea for multiple reasons. Don't do it. > > Huh, care to explain, please? Because it means you are storing passwords in plain text. There are multiple posts on the

Re: Froms new line in forms.py

2011-05-07 Thread Oleg Lomaka
Then you incorrectly use mark_safe function. Again, here is a form example: from django.utils.safestring import mark_safe class MyModelForm(forms.ModelForm): class Meta: model = MyModel def clean_myfield(self): raise forms.ValidationError(mark_safe("Errorhere")) This

Re: how to use jquery for point of Sale

2011-05-07 Thread GKR
thanks Derek -- 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 options, visit

Re: Froms new line in forms.py

2011-05-07 Thread GKR
sorry for that I am seeing it in browser -- 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

Senior Web Apps Developer Position - Python-Django-Pasadena, CA Area

2011-05-07 Thread AceGerard
Senior Web Application Developer - Major Parts Distribution – Pasadena, CA Area Experience at a high traffic web property preferred (100,000+ page views a day – Pricegrabber, eHarmony, Disney, MySpace, Google, Yahoo, etc.) Experience in more than one area at said high traffic site preferred.

Re: how to use jquery for point of Sale

2011-05-07 Thread Derek
On May 7, 3:42 pm, GKR wrote: > thanks If, as you say, you want to work with a table and input text, and add the item onto the table (I assume dynamically), then you'll need to understand: (a) how to work with Django form - see:

Re: Froms new line in forms.py

2011-05-07 Thread Oleg Lomaka
You didn't answer first question. What do you mean by "output screen". You see those "" in console by printing the string, or you see it in the browser? On Sat, May 7, 2011 at 5:09 PM, GKR wrote: > Yes It gave the output displaying within the strings. > > -- > You

Re: Using fields from multiple models (connected by foreign key) in the ModelAdmin

2011-05-07 Thread Oleg Lomaka
Move fields from ModelAdmin to appropriate InlineModelAdmin #admin.py from models import Member, Address, Phone class PhoneInline(admin.StackedInline): model = Phone can_delete = True extra = 0 fields = ('areacode', 'number') class AddressInline(admin.StackedInline): model =

Re: Froms new line in forms.py

2011-05-07 Thread GKR
Yes It gave the output displaying within the strings. -- 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

Re: Froms new line in forms.py

2011-05-07 Thread Oleg Lomaka
Do you mean an internet browser by "output screen"? Did you try to mark string as safe by calling mark_safe as I suggested? On Sat, May 7, 2011 at 9:37 AM, GKR wrote: > actually i wanted the output as > > ..already exists. > [DEMO_

Re: Froms new line in forms.py

2011-05-07 Thread GKR
Please Help -- 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 options, visit

Using fields from multiple models (connected by foreign key) in the ModelAdmin

2011-05-07 Thread Eiji Kobayashi
Hi! I'm having trouble figuring out what to do. I have multiple models linked together using foreignkey, like the following: # models.py class Member(User): middle_name = models.CharField(max_length=20) class Phone(models.Model): owner = models.ForeignKey(Member) areacode =

Re: UML to Django - online generation service

2011-05-07 Thread gusheng
I'm thinking of something opposite.. Is it possible to draw uml base on my models? or, how to draw or present my model-structure-data.. On May 4, 10:26 pm, jcabot wrote: > Hi everybody, > > You can now try for free a new online code-generation service that >

Re: how to use jquery for point of Sale

2011-05-07 Thread GKR
thanks -- 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 options, visit

Re: how to use jquery for point of Sale

2011-05-07 Thread Javier Guerra Giraldez
On Sat, May 7, 2011 at 1:41 AM, GKR wrote: > still i was not able to get what Shawn replied "How to ask an actual > question so maybe someone can answer it." > > please get me in a lil bit descriptive way. first we would need some context to know where you're standing. -

Re: Get child model class

2011-05-07 Thread pbzRPA
Ok this solution worked for me :):) {{{ from django.db import models from django.contrib.contenttypes.models import ContentType from django.db.models.query import QuerySet class SubclassingQuerySet(QuerySet): def __getitem__(self, k): result = super(SubclassingQuerySet,

Re: Get child model class

2011-05-07 Thread pbzRPA
this is more or less what I found. I will have to see how I can implement it on my side. http://djangosnippets.org/snippets/1037/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Get child model class

2011-05-07 Thread pbzRPA
Thank you, this is more or less what I am looking for. I don't however want to make the CF class an abstract class as I want to have some common fields in there. The Idea behind this is that I want to store custom fields (CF) for various models that a user will be defining themselves. I do not

Re: Django administration page, created a Site -- now what?

2011-05-07 Thread Boštjan Mejak
Thank you for your answers. I'll go read the docs then. ;) -- 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

Re: ANN : any2any, serializers & deserializers for Django

2011-05-07 Thread sebastien piquemal
Apparently there was a bug in my setup file on the release on pypi. It is now fixed ! On May 6, 10:16 am, sebastien piquemal wrote: > Hi all ! > > I am pleased to announce that I have finally released a piece of code > I begun to write a while ago, ... > It is a python library

Re: Django administration page, created a Site -- now what?

2011-05-07 Thread Xavier Ordoquy
> Hello, > > I have created a new Site in my "Django administration" page. How can I use > it now? If I visit the URL that this newly created Site points to, I get a > URLconf error. So what do I need to add to my project's urls.py file? A > newbie here. Please help me on this. Thanks. Hi,

Re: how to use jquery for point of Sale

2011-05-07 Thread GKR
Im sorry for all what happened. as im not that much familiar with forums etc.. I admin it was my mistake. still i was not able to get what Shawn replied "How to ask an actual question so maybe someone can answer it." please get me in a lil bit descriptive way. Thanks -- You received this

Re: Froms new line in forms.py

2011-05-07 Thread GKR
actually i wanted the output as ..already exists. [DEMO_ not ..already exists. [DEMO_ in the output screen. -- You received this message because you are subscribed to the Google Groups "Django users" group.