Re: django beginner

2015-03-13 Thread george . varaboutis
the verson is 1.7.6 why? -- 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...@googlegroups.com. To post to this group, send email to djan

form.errors.as_json() returns a str - Django 1.8

2015-04-21 Thread George L.
I'm trying to return errors to an ajax call but as_json() form method generates a string of a dict instead of a dict. JsonResponse accepts only dicts and if I set safe=False, JsonResponse tries to serialize the data as a string, which results in a corrupted data. Is this a bug or expected resu

Errno 13 when uploading pictures

2015-05-07 Thread R.N. George
I'm trying to upload a picture through my admin page and keep getting Errno 13.I have no clue what is going wrong, any help would be great. Here are the lines of code from my model, image_object = models.ImageField(db_column='IMAGE_OBJECT',upload_to = "/media/", blank=True) # Field name m

Migrate command does not respect options for db connections?

2015-05-30 Thread George Silva
el: class ModelA(models.Model): att_a = models.CharField(max_length=10) I' just created a migration with makemigrations for this app. It does not have any indication of schema, whatsoever. When I ran the migration, with migrate, the table ended up on the public schema. Bug? -- George R. C.

Re: Migrate command does not respect options for db connections?

2015-06-02 Thread George Silva
Any news? Hello? On Sat, May 30, 2015 at 4:28 PM, George Silva wrote: > Context: > > Django 1.7.1 > PostgreSQL 9.4 > > I have the following database entry in settings: > > DATABASES = { > 'default': { > 'ENGINE': 'django.co

Re: Beginning with a feature flag system

2014-07-07 Thread George Silva
4379-a6a3-be22aab1fd80%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria http://www.consultoriasigma.com.br/ -- You received this messa

Re: POSTGIS_VERSION error

2014-08-11 Thread George Silva
ps://groups.google.com/d/msgid/django-users/724ccbb4-3739-4757-944e-b1ce8099f9f0%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/724ccbb4-3739-4757-944e-b1ce8099f9f0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://g

Django Tutorial #5 Testing: return Poll.objects.filter( SyntaxError: 'return' outside function

2014-09-16 Thread Thomas George
Hello, I was tooling along in the 1.6 tutorial quite well when I came across this error, and I'm not sure what to make of it: return Poll.objects.filter( SyntaxError: 'return' outside function The test.py (below) is failing 9 of 12 tests with this error: *import datetime* *from django.utils

Re: AppConfig where to execute initialization queries?

2014-10-22 Thread Oliver George
Did you find a good solution for this? On Monday, October 6, 2014 11:56:15 PM UTC+11, Marc Aymerich wrote: > > Hi, > I have been bitten by unexpected behaviors when running tests because on > AppConfig.ready() I was initializing some stuff that depends on DB stored > data. Reading the django doc

Re: is it worth going for version 1.6 for commertial project

2014-11-25 Thread George Silva
-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/512ad969-af3b-445f-954c-b669674181f4%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/512ad9

PDF not saving on Django using open()

2014-11-28 Thread George Rogers
trying to save files on static after pdfcrowd provides the file. I've tried adding the path to be specific it doesn't work. from PyPDF2 import PdfFileMerger, PdfFileReaderfrom django.template import RequestContextfrom django.shortcuts import render_to_response, get_object_or_404 import pdfcrow

Re: Django's query result caching

2014-12-01 Thread George Silva
scussion on the web visit > https://groups.google.com/d/msgid/django-users/9e3818a0-bf29-41c7-b21f-178806658417%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/9e3818a0-bf29-41c7-b21f-178806658417%40googlegroups.com?utm_medium=email&utm_source=footer&g

deploy django and apache mod wsgi

2014-01-20 Thread George Alvarado
I try deploy django and apache2 apache2 mod-wsgi. An app for tets and open the bowser, navigate in the correct url it says "error 403 tes.com cant acces / on this server", i know its about permisions but how can fix it? -- You received this message because you are subscribed to the Google Group

Re: Django Dying upon loop

2014-06-20 Thread George Silva
;> It might be worth doing some more straightforward exercises in python >>> so that you understand basic concepts like looping and variable >>> scoping, and when you get help on the mailing list, make sure you >>> understand why you are changing what you have been told to

Re: Bokeh Server via Django Tutorial

2017-11-08 Thread George Silva
6e-a523-a3bd1c4e08f4%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/cda57ac4-1daa-456e-a523-a3bd1c4e08f4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva Sig

Re: New Add-On: Django Model Lifecycle Hooks

2018-03-31 Thread George Silva
>From Reading the readme this looks promising. Congrats! I might use this soon. Em sáb, 31 de mar de 2018 15:50, Robert Singer escreveu: > Hey there - > > I just wanted to let community know about a small add-on I wrote in order > to add Rails-style hooks/callbacks to Django models. > https://

Beginning Django.

2018-04-29 Thread George Lubaretsi
Changes in 2.0 that are backwards incompatible are mostly low-level things. As a beginner, you won't have to deal with them for some time. So you can grab any book that is relevant for 1.11 and you'll be fine. I would actually advise to start your training project using Django 1.11 instead of 2

Re: model permission assignment via groups requires further config at model level?

2018-04-29 Thread George Lubaretsi
Django permissions are only enforced in Admin interface by default. You have to enforce them in your views by using `has_perm` method of `user` instance - `user.has_perm('.')` Here's the documentation for permissions - https://docs.djangoproject.com/en/dev/topics/auth/default/#permissions-and-

Re: updating model breaks admin

2018-04-29 Thread George Lubaretsi
If the data is not important, try to delete migration files from `migrations` package, drop the database tables and reference M2M relationship using strings like so: tags = models.ManyToManyField(`Tag`) Or if the Tag model is in another app, like so: tags = models.ManyToManyField(`app_name.Tag`)

updating model breaks admin

2018-04-29 Thread George Lubaretsi
If the data is not important, try to delete migration files from `migrations` package, drop the database tables and reference M2M relationship using strings: tags = models.ManyToManyField('Tag') Or if the Tag model is in another app: tags = models.ManyToManyField('app_name.Tag') Then run `make

Re: Broken?

2018-04-29 Thread George Lubaretsi
File "/raid3/build/comprosloco/oil/models.py", line 172, in __str__ self.accepted What is inside this __str__ method? `self.accepted` field name sounds like it could be a date. Return type of __str__ must be a string. -- You received this message because you are subscribed to the Google G

Re: I am following the official Django documentation and trying to make the polls app. But when I run the command python manage.py makemigrations polls I get the console error.

2018-04-30 Thread George Lubaretsi
Looks like you have a typo somewhere. Exception says that it can't find a module `polss` while it should be `polls`. Check your settings and imports On Mon, Apr 30, 2018 at 11:29 PM Avitab Ayan Sarmah wrote: > The code I am using for the models is: > > from django.db import models > > class Que

Re: Nullable vs empty strings

2018-05-03 Thread George Lubaretsi
Short answer: because you'll know when you need it. And unless that's the case - there's no good reason to do it. Long answer: Because there's really no reason to do it except for when you have unique constraint on that column. It's just a convention. When you have a `CharField`, you expect retur

Re: Unable to set up celery in supervisord

2016-07-21 Thread George Silva
derr_logfile=/home/ankush/jremind/logs/celeryd.log autostart=true autorestart=true startsecs=10 stopwaitsecs=600 command.sh !#/bin/bash export SECRET_KEY="foo" export VARIABLE_A="a" echo $SECRET_KEY echo $VARIABLE_A -- George R. C. Silva Sigma Geosi

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
home/ankush/jremind/jremind,JREMIND_SECRET_KEY="SDFDSF@$%#$%$#TWFDFGFG%^$%ewrw$#%TFRETERTERT$^",JREMIND_DATABASE="jremind",JREMIND_USERNAME="root",JREMIND_PASSWORD="root"' > for 'environment' is badly formatted > > What do you think is badly format

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
is badly formatted > > What do you think is badly formatted here? > > Best, > Ankush > > > On Thursday, July 21, 2016 at 11:51:19 PM UTC+5:30, george wrote: >> >> If you are getting variables from the environment, supervisor that >> special environment direct

Re: Unable to set up celery in supervisord

2016-07-22 Thread George Silva
if you see > https://github.com/celery/celery/blob/3.1/extra/supervisord/celeryd.conf, > there's no mention of environment variables. > > > Regards, > Ankush Thakur > > On Fri, Jul 22, 2016 at 10:34 PM, George Silva > wrote: > >> Check the docs. There'

Re: GeoDjango: strip z dimension; force 2D

2016-12-19 Thread George Silva
://groups.google.com/d/ > msgid/django-users/073345f1-0a70-4645-9c87-577c89b9a511%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/073345f1-0a70-4645-9c87-577c89b9a511%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit http

Using Django

2019-01-13 Thread George Githaiga
I have Django-apps on my root directory.I need to proceed to the environment.Kindly guide. -- 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

Re: [Model, ORM] Disabling a field before actually removing it

2019-06-21 Thread George Silva
the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https:/

Re: Unique model field and case sensitivity (postgres)

2017-03-02 Thread George Orw
So if i add unique index to a column in PostgreSQL, do i need to do any other changes in the django itself ? I am asking this because, MySQL have this functionality enabled by default without creating any special methods. On Monday, December 7, 2009 at 5:33:11 PM UTC+5:30, David De La Harpe G

Re: Will function based views ever be deprecated?

2017-04-01 Thread George Silva
In the end, cbvs are functions. So no, I don't they come to an end soon. I love function based views. Em 2 de abr de 2017 12:37 AM, "Some Developer" escreveu: > Hi, > > I was wondering if function based views will ever be deprecated? I > absolutely hate class based views with a passion for vari

Re: Django not showing updated data

2017-05-18 Thread George Kleanthous
Hi, This is the view def taxes(request): taxes = Tax.objects.all() return render (request, ‘app/taxes.html', {"data":taxes}) > On 18 May 2017, at 3:19 PM, Antonis Christofides > wrote: > > Hi, > > it's hard to tell without more information. It could be a caching

Re: Django + React: Shared Model Consistency

2017-07-05 Thread George Silva
sit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAOs3Lp6cp8vm403D0nWd%2B09- > PDZKZQOcaBcU2dvNi7LUA--%2BeA%40mail.gmail.com > <https://groups.g

Django and Djongo

2020-06-15 Thread George Hadjigeorgiou
selector, server_timeout, address) File "/Users/ghadjigeorgiou/miniconda3/envs/myenv/lib/python3.6/site-packages/pymongo/topology.py", line 209, in _select_servers_loop self._error_message(selector))pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 61] Connect

Django and Djongo Issue

2020-06-15 Thread George Hadjigeorgiou
selector, server_timeout, address) File "/Users/ghadjigeorgiou/miniconda3/envs/myenv/lib/python3.6/site-packages/pymongo/topology.py", line 209, in _select_servers_loop self._error_message(selector))pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 61] Connect

Undefined HTML controls

2020-08-04 Thread Telly George
I have this problem where I navigate from my home page (index.html) to another page new_page.html) but the data input on new_page.html is not being read by Python. It seems as if at that point the HTML controls do not exist or are not being rendered and so I am unable to read the values in the

Help with Django initial setup

2016-04-04 Thread George Mathew
in thread started by .wrapper at 0x01F60BFE2488>* *Traceback (most recent call last):* * File "C:\Users\George\AppData\Local\Programs\Python\Python35\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper* *fn(*args, **kwargs)* * File "C:\Users\George\A

Re: Using React Native

2018-06-29 Thread George Silva
d72e%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/0a971d5d-ef26-4262-9f44-f99cbfd3d72e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva -- You received thi

Re: Using React Native

2018-06-29 Thread George Silva
p/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/54362900-0a03-4d8a-94a6-f24b79f6316c%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/54362900-0a03-4d8a-94a6-f24b79f6316c%40googlegroups.com?utm_medium=emai

Django Admin with SQLite3 :memory:

2018-08-02 Thread George Kontridze
;ve switched to a separate database server, but would still like to implement this feature, if possible. Thanks, - George -- 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: getting 404 page not found on part 3 of the tutorial

2020-11-11 Thread George Olson
k and the whole system got messed up. I tried to reset everything back to the original but it is still not working. On Wednesday, November 11, 2020 at 7:47:58 PM UTC-6 Clive Bruton wrote: > > On 11 Nov 2020, at 23:37, George P. Olson wrote: > > > So when I go to this url: http://127.

Multiple Media_Root

2020-11-22 Thread tech george
Hello, I am developing an E-Commerce website and I wanted to have a separate upload folder for my slides and separate folders for other sections of my site. Is there a way i can go about it other than using the ascending and Descending order? Please advise. See section of my view.py page. [ima

Re: Multiple Media_Root

2020-11-23 Thread tech george
Thanks for the guide, Let me try this option then i'll let you know in case I get stuck. On Mon, Nov 23, 2020 at 4:41 PM Mbah Victor wrote: > Plz can u send me a review of what you what > > Victor > > On Sun, Nov 22, 2020, 8:05 PM tech george wrote: > >> Hell

RE: Page Resoltuon

2020-12-01 Thread tech george
Hello, I am working on this webapp using a pre designed template. But my project is too stretched out and can't seem to make it look like the actual template. Please advise. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Python Django Training

2020-12-07 Thread tech george
I want in too On Mon, 7 Dec 2020, 16:43 Hector Berrones, wrote: > I am interested. > > On Mon, Dec 7, 2020, 2:09 AM narendra thapa > wrote: > >> hello please add me also in training group? >> >> >> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam >> wrote: >> >>> Hi, >>> I also from Hyderabad and

DoesNotExist at /

2020-12-27 Thread tech george
Hello, I am getting the error as shown below when uploading my django project to share hosting. How can I resolve it? Please advise. DoesNotExist at / Currency matching query does not exist. Request Method: GET Request URL: http://fullcart.co.ke/ Django Version: 3.0.7 Exception Type: DoesNotEx

Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi, Yes I does. On Mon, 28 Dec 2020, 18:41 AMRIT SHAHI, wrote: > Is your hosting support python > > On Mon, Dec 28, 2020, 12:49 PM tech george wrote: > >> Hello, >> >> I am getting the error as shown below when uploading my django project to >>

Re: DoesNotExist at /

2020-12-28 Thread tech george
Hi, Let me go through the dock and see if I'll get a breakthrough. Thanks On Mon, 28 Dec 2020, 18:41 Prashanjeet Halder, wrote: > There's no built-in filter as currency in django template language you can > custom create one. > > *As Demonstrated Here: LINK >

Re: Product Categories

2021-05-23 Thread tech george
Thanks Work, Let me try that. Regards. On Sat, 22 May 2021, 21:48 N'BE SORO, wrote: > Ok use: > > # In Python > # print(category.get_ancestors()) > # In Jinja category.get_ancestors > > Le sam. 22 mai 2021 à 18:14, Patrick Café a > écrit : > >> OK than

Re: Project together

2023-12-12 Thread Muddu George
+256754605808 , Add me On Monday 11 December 2023 at 18:03:17 UTC+3 Akshat Shah wrote: > I am interested as well > > On Monday 11 December 2023 at 01:48:09 UTC+5:30 Williams wrote: > >> Add me 0037369134555 >> >> On Thu, Nov 23, 2023, 8:14 PM Youssef Bachraoui >> wrote: >> >>> Hi developer i se

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-18 Thread George Elechi
Hello, am interested. below are my details: Whatsapp: +2348172993983 Github: elechigeorgepro Look forward to our collaboration, Cheers, George. On Sunday, February 18, 2024 at 5:48:48 PM UTC+1 Jorge Bueno wrote: > The project: > > I am working on an exciting project that I think y

Re: Redesign of agricultural project with python django and next.js technologies.

2024-02-18 Thread George Elechi
Hello, am interested. below are my details: Whatsapp: +2348172993983 Github: elechigeorge Cheers On Sun, Feb 18, 2024 at 7:18 PM George Elechi wrote: > Hello, am interested. > > below are my details: > > Whatsapp: +2348172993983 > Github: elechigeorgepro > > Cheers,

Re: Multiple user roles with permissions

2019-09-25 Thread George Tantiras
I would recommend django-rules: https://github.com/dfunckt/django-rules -- 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...@googlegroups.

Re: Multiple user roles with permissions

2019-09-26 Thread George Tantiras
Repositories using django-rules: https://github.com/dfunckt/django-rules/network/dependents?dependent_type=REPOSITORY Packages using django-rules: https://github.com/dfunckt/django-rules/network/dependents?dependent_type=PACKAGE Search engine for python code examples: https://www.programcreek.com/p

Re: Help on Email Sending with the Gmail SMTP server.

2024-12-05 Thread George Joseph
Hi, Try by creating app password from your g-suite. Thanks and regards. On Thursday, October 31, 2024 at 6:48:46 PM UTC+5:30 ALINDA Fortunate wrote: > Hello Team, I am requesting for assistance on how to send email using > Django by the Gmail SMTP server, I have set up the app configured the

Re: Media Files - local network share

2022-02-07 Thread Jiffin George Kokkat
Hi, Mount shared network path to media folder of the Django. https://stackoverflow.com/questions/52825610/django-media-root-pointed-to-network-drive this may help Thanks, Jiffin George Kokkat On Mon, Feb 7, 2022 at 7:41 PM Litesh Garg wrote: > Hi, > > You can use django

Re: New Comer Alert !!!

2020-07-22 Thread george kwakye addo
ngo-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d98d3ef4-1859-4bb9-99eb-98591a1e61aeo%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/d98d3ef4-1859-4bb9-99eb-98591a1e61aeo%40googlegroups.

getting 404 page not found on part 3 of the tutorial

2020-11-11 Thread George P. Olson
Hi guys, New here to django. Going through the tutorial, on part 3, I set up the mysite/polls/urls.py file  like this according to the instructions: - from django.urls import path from . import views urlpatterns = [     # ex: /polls/     path('', views.index, name='index'),     # ex: /poll

Re: DJANGO AUTHENTICATION

2020-12-07 Thread george kwakye addo
t; To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/cda28a27-c14e-4065-becf-3ee64b2273c4n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/cda28a27-c14e-4065-becf-3ee64b2273c4n%40googlegroups.com?utm_medium=email&utm_source=footer>

using variable in django template

2021-02-16 Thread Jiffin George Kokkat
Hi guys, i want to declare a variable in django template and update value of variable inside a loop how to do Thanks, Jiffin George Kokkat -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

<    1   2   3   4