Mysql vs. sqlite filtering of datetimefields with None values

2008-05-16 Thread Hans
I have recently come across a slight difference in the way that datetimefields are handled by mysql and sqlite. Locally, on my desktop I use sqlite for debugging, while the production server runs mysql. Running django-trunk. One of my models includes a datetimefield: last_fetched = models.DateTim

Renaming variables passed to inherited templates

2008-05-21 Thread Hans
and guess that there might be an easy sollution to this that I have overlooked. Hans --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Mysql vs. sqlite filtering of datetimefields with None values

2008-05-21 Thread Hans
Bump --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more op

Re: Renaming variables passed to inherited templates

2008-05-21 Thread Hans
Ooops. I thought I had read the documentation thoroughly, but found the WITH filter. http://www.djangoproject.com/documentation/templates/#with I guess I can use that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Response problem

2012-02-15 Thread Hans
I'm using a form for my webpage that returns values with simillar key values. Now for backend compatibility reasons I cannot change the key variables. This is the query dictionary returned from the HTML file. " whenever i use HttpResponse(request.POST['address1']) it prints out 'bay street' when

get_profile not working (get_model returns None)

2009-01-08 Thread Hans Fangohr
s.pyc in get_profile(self) 291 app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.') 292 model = models.get_model(app_label, model_name) --> 293 self._profile_cache = mod

Re: get_profile not working (get_model returns None)

2009-01-08 Thread Hans Fangohr
Dear Karen, On 9 Jan 2009, at 00:35, Karen Tracey wrote: > On Thu, Jan 8, 2009 at 6:24 PM, Hans Fangohr > wrote: > > > Dear all, > > I have difficulties with the get_profile to link my Profile class with > the inbuilt User object. > > The error message (whi

Re: get_profile not working (get_model returns None)

2009-01-09 Thread Hans Fangohr
Dear Karen, On 9 Jan 2009, at 04:34, Karen Tracey wrote: > On Thu, Jan 8, 2009 at 11:19 PM, Hans Fangohr > wrote: > > You are right: using 'People.profile' works. To be clear (for > others): the application name should (in contrast to the > documentation) N

Can I get the request object into the django.contrib.auth.views.password_change view template?

2009-01-19 Thread Hans Fangohr
password_change. Here is the question: Is there a (simple?) way of feeding that request object somehow into the view so that it can be used in the registration/password_change_form.html? Many thanks for any hints in advance, Hans --~--~-~--~~~---~--~~

Re: Can I get the request object into the django.contrib.auth.views.password_change view template?

2009-01-20 Thread Hans Fangohr
Hi Malcolm, On 20 Jan 2009, at 02:33, Malcolm Tredinnick wrote: > > On Tue, 2009-01-20 at 02:07 +, Hans Fangohr wrote: > [...] >> However, in the template files, I extend my base.html which makes use >> of the request object (basically checking whether the request ha

Unsubscribe

2007-12-15 Thread Hans Tovetjärn
Hello, please remove my subscription to this group. Thanks. Regards, Hans Tovetjärn [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen

Apologies

2007-12-15 Thread Hans Tovetjärn
Hello, nevermind my clumsiness, up way too late and copied and pasted the wrong link! Thank your for your kind responses though, will resubscribe at a later date when I got the hang of the basics. Have a nice day everyone! Regards, Hans Tovetjärn [EMAIL PROTECTED

1.7 migrations: problem with renamed upload_to function on FileField

2014-11-12 Thread Hans Lawrenz
I'm having a problem generating migrations after changing the function used for the upload_to parameter on a FileField. After removing the old function from my code and switching to using a closure to generate the function used by upload_to I get the following exception upon running makemigratio

accessing foreign key value in views.py

2017-05-18 Thread Amisha Hans
Hey , I am facing a lot of issues regarding this foreign key !. Scenario is a s follows :- models.py class ComponentDeprecation(models.Model): row_id = models.IntegerField(primary_key=True) component = models.ForeignKey('SsComponents', db_column='component') submitter = models.Char

Setting the Date Format in the input fields

2017-05-18 Thread Amisha Hans
The default format is : -MM-DD HH:MM:SS i want it as /MM/DD HH:MM:SS for all the inputs ... outputing in the same format was easy : using date and time filters please help me out -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Django Inner Join Queryset where there is no foreign key relation between two tables

2017-07-09 Thread Amisha Hans
down votefavorite Please Help ! I Want to know the inner join Queryset for the below mentioned raw oracle Query : - select PubEv.published_dat

Re: data too long in a CharField column

2020-08-21 Thread hans alexander
I changed my database from mysql to postgresql. But when I tried saving data on forms, I got this error " value too long for type character varying(50)" I don't know why, because when I was using MYSQL, I didn't get any error. Can someone help me with this Postgresql? On Monday, May 4, 2009 at 10

Re: How to pass a set of objects in between two views?

2020-08-24 Thread hans alexander
Can you share the views.py that you wrote? Actually If the page for random set of questions is same for User NOT Logged In and User Logged In, the data you called from database will still showing up. On Mon, Aug 24, 2020 at 9:19 PM vipul shinde wrote: > > I'm building a quiz app in which I'm sto

Re: Help. if i runserver I get this error

2020-09-05 Thread hans alexander
You need to set your index path in urls.py like this: path(' ', , ) On Fri, Sep 4, 2020 at 11:49 PM Boi Deekay wrote: > Page not found (404)Request Method: > GETRequest URL: > http://127.0.0.1:8000/ > > Using the URLconf defined in myFirstPy.urls, Django tried these URL > patterns, in this order

Re: Image upload using django-summernote is ok in admin panel but not showing to user

2020-09-05 Thread hans alexander
You can use CKEditor 5 for creating content. Check this https://jawaban.online/scope/outlink/6025/django-ckeditor-pypi/ On Sat, Sep 5, 2020 at 6:46 PM sourav chakraborty wrote: > Yes, but please suggest what should be the type of field then? As I want > to use an editor to write content as wel

Re: Integrating User Accounts into Django Website

2020-09-05 Thread hans alexander
What do you mean by Integrating User? Django actually has built in features for user accounts. On Sat, Sep 5, 2020 at 8:40 PM Lightning Bit < thelegendofearthretu...@gmail.com> wrote: > Hi all, > > Does anyone have experience with integrating user accounts into a Django > Website? Are there any q

Re: Integrating User Accounts into Django Website

2020-09-05 Thread hans alexander
e > up and running, the admin page works, but I do not know how to make a login > page for visitors of the site. > > On Sat, Sep 5, 2020 at 9:56 AM hans alexander wrote: > >> What do you mean by Integrating User? Django actually has built in >> features for user accounts.

I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
my structure is like this: my_project blog sitemaps.py my_project urls.py Inside sitemaps.py : from django.contrib.sitemaps import Sitemap from .models import * class BlogPostsS

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Sorry, point no 1 needs to be revised.. 1. In urls.py, I want to import BlogPostsSitemap -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...

[no subject]

2020-09-08 Thread hans alexander
I got errors when installing Django Channels. I'm using Python 3.8.5, Django 3.1 Installing using : pip install channels I got error like this: Installing collected packages: twisted, daphne, channels Running setup.py install for twisted ... error ERROR: Command errored out with exit sta

Re:

2020-09-08 Thread hans alexander
he best > > On Tue, Sep 8, 2020 at 4:14 PM hans alexander wrote: > >> I got errors when installing Django Channels. >> I'm using Python 3.8.5, Django 3.1 >> >> Installing using : >> pip install channels >> >> I got error like this: >> >

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
I followed a tutorial for creating django sitemap, but still got problems along the way. I've seen some videos, but didn't work. Do you have any references for easy way creating django sitemap for blog posts? Sure it would help. Thanks On Wed, Sep 9, 2020 at 12:02 AM coolguy wrote: > Not sure

Re: I got this error "ValueError: attempted relative import beyond top-level package "

2020-09-08 Thread hans alexander
Thanks guys.. Already solved it. I guess the main reason of the problem is that I'm using Pycharm Community Edition. So the alert error not accurate. Anyway I tried to py manage.py with some alerts, and worked. for example: [image: image.png] I left it like that. And sitemap still works. But now

Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-08 Thread hans alexander
I don't know what happened. Need solution for this. [image: image.png] [image: image.png] Any solutions would be appreciated. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from

Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-08 Thread hans alexander
I checked the file on my bucket, it's there. But somehow the link is not working. On Wed, Sep 9, 2020 at 1:13 PM hans alexander wrote: > I don't know what happened. > Need solution for this. > > [image: image.png] > [image: image.png] > > Any solutions would be

Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
> > I see on this link > https://stackoverflow.com/questions/63096379/django-ckeditor-upload-image-link-expires-after-some-hours Has no solution yet. He got the same problem as me. I'm currently still trying to find solution, tinkering aws s3 settings to set the expired time. Any suggestions wo

Re: Image Uploaded by Ckeditor using Django to AWS S3 gone after certain amount of time

2020-09-09 Thread hans alexander
I tried to put AWS_QUERYSTRING_AUTH = False AWS_S3_BUCKET_AUTH = False on settings.py, it didn't work. Thanks. On Wed, Sep 9, 2020 at 3:16 PM hans alexander wrote: > I see on this link >> > > > https://stackoverflow.com/questions/63096379/django-ckeditor-upload-i

Re: Attn. Dreamhost users

2006-03-06 Thread Hans-Christian Holm
ompilation error, but occasionally, an error seems to cause 500 and timeouts. But then, it just solves itself after a wait. Hans-Christian - Original Message - From: "SmileyChris" <[EMAIL PROTECTED]> To: "Django users" Sent: Monday, March 06, 2006 10:39 A

Re: Django in Boo

2006-03-06 Thread Hans-Christian Holm
Rail), a Ruby Action Pack inspired framework for .NET. MonoRail has special support for Boo in Brail templates. All this sounds very nice, but as much I've tried to like MonoRail, I never got those good vibrations I hoped for. With Django, I got them. Hans-Christian - Original Message

Re: Attn. Dreamhost users

2006-03-08 Thread Hans-Christian Holm
reluctant to switching hosts. I haven't had my DH account for that long, but they have offered great value for money so far, and there seems to be a few Django apps running happily there already. And switching is so boring work. Hans-Christian - Original Message - From: "Ju

Making of model field type dependent upon the type of admin input form?

2013-01-12 Thread Hans De Winter
le in the *list view* page), I would like to have a CharField widget to display the filename of my file (instead of the FilePathWidget as defined in the File class). Is there a way to achieve this somehow? Many thanks in advance, - Hans -- You received this message because you are subscribed

Maximum database connections exceeded

2015-03-20 Thread Hans Kristian Flaatten
My Django application is exceeding the maximum number of simultaneous database connections (100) to the Postgres database when running through Gunicorn with async eventlet workers. When the limit it exceeded it starts returning 500-errors until new connections can be established. Setting `CONN_M

Re: new to Django and Python

2014-01-08 Thread Hans S . Tømmerholt
save it with the proper encoding, UTF-8 in this case. -- Vennlig hilsen/Best regards Hans S. Tømmerholt Project manager, Web sites -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails f

Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread Hans S . Tømmerholt
come. -- Best regards/vennlig hilsen Hans S. Tømmerholt Application Developer, Hosting, Global IT Opera Software -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Missing/inconsistent GenericIPAddressField validation?

2015-09-07 Thread Hans S . Tømmerholt
On Mon, 07 Sep 2015 12:41:15 +0200, Hans S. Tømmerholt wrote: Hello. In a nutshell: It appears the validator applied to a GenericIPAddressField form field doesn't allow an IP address with a netmask. But saving the same thing to a PostgreSQL database via a model works just fine.