The django tutorial that the others have mentioned is the best place to
learn the basics. There is also a book on E-Commerce in django:
http://www.amazon.co.uk/Beginning-Django--Commerce-Experts-Development/dp/1430225351/ref=sr_1_9?s=books&ie=UTF8&qid=1304834462&sr=1-9
--
You received this mes
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
S
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 PhoneInline(adm
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 y
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 can find help here
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 08/0
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. I 'd like to add that I ha
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 users" group.
To
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 inert.
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 sampl
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
>> with a more complex model and got errors so I sca
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
> database to get rid of any old in
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 ex
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. When
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'
...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
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 appropriate InlineModelA
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)
from_add
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 apache declares (/etc/apach
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)
from_a
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
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
Date: Sat, 7 May 2011 12:05:00
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..
now
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 it so easy to keep the b
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 threads/proce
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) + " -- Las
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) + " -- Las
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 f
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 wrote:
> > Hi everybody,
> >
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 May 6, 4:22 am, Shawn
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 ru
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 internet about this. Here
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 wo
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 th
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
django-users+unsubscr...@googlegroups.c
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.
Lan
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:
http://docs.djangoproject.com/en/dev/intro/tutorial04/?from=ol
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 received this message because
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 =
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
django-users+unsubscr...@go
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_
>
> not
>
> .
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 thi
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 = models.CharFiel
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
> transforms plain UML class diagrams
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 thi
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.
- What do you know? Have y
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, self).__getit
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 django-users@googlegroups.com
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 want
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
django-users+unsubscr..
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 called any2any, whi
> 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,
I
52 matches
Mail list logo