On Sun, Oct 16, 2011 at 11:27 PM, garyrob wrote:
> [...]
> But Part 1 of the django tutorial
> (https://docs.djangoproject.com/en/dev/intro/tutorial01/) shows a directory
> [...]
> But the tutorial is for version 1.3
> 'final', 0).
I'd ike to ask you what visual part of that online tutorial page
On Sun, Oct 16, 2011 at 07:27:42PM -0700, garyrob wrote:
> I'm having a strange problem.
>
> When I run
>
> django-admin startproject mysite
>
> I get a directory structure that is flat in the sense that there is no inner
> mysite directory -- the manage.py and urls.py files are at the same l
I'm having a strange problem.
When I run
django-admin startproject mysite
I get a directory structure that is flat in the sense that there is no inner
mysite directory -- the manage.py and urls.py files are at the same level.
But Part 1 of the django tutorial
(https://docs.djangoproject.com
Hello,
I'm new to Django and I've only a medium background in funtionnal
programming in Python.
I'm currently reading and working on the Django tutorial. I've few
questions on a example of code because things are not so clear for me.
Here is the code example
1 from django.db import models
2
3 cl
On Sun, Oct 16, 2011 at 6:07 AM, Tsung-Hsien wrote:
> I have a photo page needed connecting each photo to different URL.
>
> --
> The URL as below:
> url(r'^gallery/(?P\d+)/(?P\d+)/$', zoom_photo)
>
> The view as below:
> def zoom_photo(reque
I think you need this
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/
On 16 October 2011 18:24, bovender wrote:
> Hi all,
>
> new to Django and loving it.
>
> Is there a way to automatically generate HTML output for the fields of a
> model instance?
>
> I'm looking for something s
Hi Florian,
Thanks for the pointer.. nice and works like a charm..
i will prefer add the options in the settings.py as the table will growing
and work for all application table including admin table.
and the next target is figure out about the database router for load
balancing the sql query..
Hi Florian,
I have been working on the problem the whole weekend and after trying
all the mog_wsgi debugging method I still do not have a solution. I do
know that the error does not lie in my django code or my apache
configuration as I did the exact setup on a ubuntu machine and it
works 100%. It
Have u run the py script by command "python"?
like:
python django-admin-py startprject student
On 10月16日, 上午6时25分, raddy wrote:
> hello
>
> I'm using Windows7
> Python27 & Django1.3.1
>
> I'm done with the tutorials (1,2,3); have been working on mysite
> project. everything worked perfectly then.
Increase debug level and make sure to read the debugging docs on
modwsgi.org; then you can hopefully provide more info, so we can actually
help.
Cheers,
Florian
P.S.: Btw telling us which versions you use exactly would help too
--
You received this message because you are subscribed to the Go
Oh and if you don't want to create all tables in the cluster, just create
with the default engine and then switch as needed.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/m
Hi,
this can be done as documented like for the innodb backend:
https://docs.djangoproject.com/en/dev/ref/databases/#creating-your-tables
Cheers,
Florian
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
Maybe you could try creating a batch file in the directory where you
you are going to keep your projects and call it NewProject.bat put
this inside
:Start Batch
File*
: Below replace c:\python27/lib/site-packages/d
I should also mention that one AttributeValue table for all the
registrations isn't good for my purpose, because it says that the
Value column must have a specific type field. I want that every detail
(Atrribute) will have the option to be from any field type
(CharField,DateTimeField, etc).
On Oct
I didn't change anything pertaining DB in the model, so it wasn't
necessary, but done that and nothing is better :-(
--
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
And this is from views.py:
def campaign(request, campaign_id):
ctx = {'phones': PersonPhones.objects.all(), "camppeople":
CampPeople.objects.all() }
return render_to_response("campaign.html", ctx,
context_instance=RequestContext(request))
Regards,
Piotr Hosowicz
--
You received this me
Since you changed your changed your models, you will have to drop your
tables and syncdb all over again.
On 10/16/11, Piotr Hosowicz wrote:
> Hello,
>
> To remind: this is my models.py excerpt:
>
> class CampPeople(models.Model):
> person = models.ForeignKey(Person)
> camp = models.Foreig
Hello,
To remind: this is my models.py excerpt:
class CampPeople(models.Model):
person = models.ForeignKey(Person)
camp = models.ForeignKey(Campaign)
docall = models.BooleanField(default = True)
called = models.BooleanField(default = False)
class PersonPhones(models.Model):
p
Hi,
i try to run syncdb to create table in mysql cluster db, and need have
engine=NDBCLUSTER in each table which want to create in the cluster.
How to add the engine=NDBCLUSTER from the syncdb command line ?
Thanks for the help.
Mulianto
--
You received this message because you are subscribed
Hello,
strange Problem here:
LOGGER = logging.getLogger('somename')
LOGGER.error('Could not do something: %s', err.output, exc_info=True)
In the mail it shows 'Could not do something: %s', but in the logfile
(RotatingFileHandler) %s is correcly substituted by err.output. Am I
missing the paragra
hello
I'm using Windows7
Python27 & Django1.3.1
I'm done with the tutorials (1,2,3); have been working on mysite
project. everything worked perfectly then.
but now i wish to create a new project
i tried by using:
django-admin.py startproject student
but a notepad (django-admin)opens saying
#!
Hi all,
new to Django and loving it.
Is there a way to automatically generate HTML output for the fields of a
model instance?
I'm looking for something similar to form.as_table, just without the form
widgets.
Currently I find myself manually repeating all the typing work for the
detail view
I have a photo page needed connecting each photo to different URL.
--
The URL as below:
url(r'^gallery/(?P\d+)/(?P\d+)/$', zoom_photo)
The view as below:
def zoom_photo(request, item_id, photo_id):
item = Item.objects.get(id=item_id)
23 matches
Mail list logo