New to Django.
I'm trying to set up a simple comment form where I can add a title for the
comment, content of the comment, and attach the username of the user that
is currently signed in and posting it.
I run into the following error when running it:
Cannot assign "'john'": "Entry.author"
Hello all,
I'm working on a class assignment, so I'm not seeking a specific
answer/code, but I'm just trying to figure out a general process.
The task is this...
I have some markdown files located in a directory, however when running the
website they need to be displayed as html. Because
I have a Django queryset that I prepare with
queryset.filter(date__gte=datetime(2011,1,1))
If I then call `str(queryset.query)` I see this in the string:
... WHERE "App_table"."date" >= 2011-1-1
However, this is invalid SQL code as if I run this in Postgresql I get this
error:
...
My bad, the correct SQL query is this:
SELECT "date", sum("car_crashes") FROM (
// String from Python
str(aggregated.query)
) as "aggregated" GROUP BY "date"
Il giorno lunedì 19 agosto 2019 23:10:47 UTC+2, Jo ha scritto:
>
>
I have a table that looks like this
datecar_crashes city
01.01 1 Washington
01.02 4 Washington
01.03 0 Washington
01.04 2 Washington
01.05
That sounds right. Thank you.
On Thursday, March 31, 2016 at 2:19:45 AM UTC-4, Mike Dewhirst wrote:
>
> On 31/03/2016 8:38 AM, moon jo wrote:
> > I'm new to django and have a question regarding model design.
> > For practice, I'm working on a web app - a simplifi
I'm new to django and have a question regarding model design.
For practice, I'm working on a web app - a simplified version of imdb that
handles movie and music.
I've created 2 apps; Movies and Music. With main models in both having the
usual fields (title, release date, rating, artist/actor).
Using django 1.6.10
I finished the polls tutorial and tried to create my own project.
I tried to runserver and it gives me the import error. But it's a blank
project, haven't added anything in the settings.
When I do import settings form django.conf and print
settings.INSTALLED_APPS, it prints
I am a newbie about Django and Python. But I attended the basic lecture of
python. So I will implement my web application.
I want to use apache derby. Is is possible? I am proud of being one of
member in this group. Thanks.
--
You received this message because you are subscribed to the Google
Hello.
I believe I have successfully installed Django based on having no problems
with testing "import django" at the command prompt and in the Python
interpreter.
However, I cannot get the tutorial started.
As explained by the tutorial ("From the command line, cd into a directory
where you’d
On 13 ?.?. 2010, at 18:50, Jonathan Barratt wrote:
> On 13 ?.?. 2010, at 18:38, Mattias Linnap wrote:
>
>> Hi Django users,
>>
>> I'm building an application with Django, and I need some database
>> changes to occur at certain times in the future - independently of any
>> web request. Things
save the object.
Thanks for any help
Jo
--~--~-~--~~~---~--~~
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 g
Ok, after a bit of tinkering I think I might have found the culprit.
Seems fine in Opera, and much better in Firefox when I disable Adblock
Plus (the only add-on I've got installed!)
Still a little sluggish in Firefox, but they are big pages on quite an
old machine. Goes from unusable to almost
Surely can't only be me that finds the main Django site painfully
slow? There is some javascript in there or something that just kills
my browser.
I'm using Firefox on Linux, on 1.5gig P4, OK not state of the art but
it's fine for pretty much any other website, but when I try to look
something
On Jan 12, 10:22 am, bruno desthuilliers
<bruno.desthuilli...@gmail.com> wrote:
> On 11 jan, 18:46, Jo <spaceout...@gmail.com> wrote:
>
> > While building a website using template inheritance one usually does
> > the following:
>
> > fetch from database
>
While building a website using template inheritance one usually does
the following:
fetch from database
fetch from some more data from database
... << more required computations
then at the end render the template with the fetched data
Without template inheritance one usually does the
hi guys.. did u know the money making secrets.
we will give the oppertunity if u are interesting in online jobs.
if u joined with us then earn $400 per day..
just work in 1 hour per daylog in our site
www.jobsforyouguys.blogspot.com
did u know the money making secrets.
google groups brings u these oppertunity .. u submit a
project to google groups then u get $4 per project
work..
do u want to join dis work visit our site
www.jobsforyouguys.blogspot.com
If there is anybody interested to give professional support to a
softwarehouse in Bologna-Italy to start a project using Django, please
contact me at:
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
applys the pattern MVC while Django does it in a strange way.
Django doesn't use AJAX while TG uses Mochikit and JASON.
Django is very compact while TG is assembled with many moduls to put
together.
Someone of you could give me a good reason to use Django instead of TG?
Thank you,
jo
20 matches
Mail list logo