Running into a "Cannot assign... must be a ...instance" error

2020-03-04 Thread Joey Jo Jo Jr
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"

New to Django. Trying to wrap my head around markdown to html conversion using regex

2020-02-20 Thread Joey Jo Jo Jr
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

Django's str(queryset.query) returns invalid SQL if I compare datetimes

2019-08-20 Thread Jo
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: ...

Re: Aggregating the results of a .union query without using .raw, is it possible?

2019-08-19 Thread Jo
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: > >

Aggregating the results of a .union query without using .raw, is it possible?

2019-08-19 Thread Jo
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

Re: Model share question

2016-03-31 Thread moon jo
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

Model share question

2016-03-30 Thread moon jo
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).

ImportError: no module named polls

2016-01-25 Thread moon jo
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

Is it possible to connect django to apache derby as a database?

2015-06-05 Thread Uk Jo
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

Cannot start tutorial that begins with '"jango-admin.py startproject mysite"

2014-08-29 Thread Jo MM
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

Re: What is the best way to implement time-based / cronjob actions in a Django app?

2010-10-13 Thread Jo
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

How to manually set FileField path

2009-08-10 Thread Jo
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

Re: Django documentation site is SLOW

2009-08-07 Thread Jo
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

Django documentation site is SLOW

2009-08-07 Thread Jo
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

Re: template inheritance

2009-01-12 Thread Jo
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 >

template inheritance

2009-01-11 Thread Jo
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.........

2008-03-27 Thread jo
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.............

2008-03-25 Thread jo
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

Re: Django vs TurboGears

2006-08-03 Thread jo
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

Django vs TurboGears

2006-07-29 Thread jo
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