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: 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: 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: 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

Export filtered data

2023-01-19 Thread tech george
Hello, I have been trying to export filtered table data to excel but was unlucky. I can filter the table by date range successfully but can export the filtered data. Below is my view.py. Please help def export_sickoff_export(request): if request.method=="POST": start_date = requ

Re: group

2022-09-28 Thread tech george
Please add me: +254724164862 On Wed, Sep 28, 2022 at 7:13 PM Prince Adedotun wrote: > Add me also... > > 08167422287 > > On Mon, 26 Sept 2022, 18:49 yassin kamanyile, > wrote: > >> Add me +255763023477 >> >> On Mon, 26 Sept 2022, 15:53 Abdulfarid Olakunle, >> wrote: >> >>> Hello fellow develo

Re: Filter by date range

2022-09-11 Thread tech george
I managed to solve the issue. I was using the wrong keyword to fetch the dates. Thanks for the support. On Mon, Sep 12, 2022 at 9:03 AM tech george wrote: > Hello, > > I have tried debugging as below and it returned data; > > search_results = > Prescript

Re: Filter by date range

2022-09-11 Thread tech george
.@gmail.com> wrote: > Either there's no data for that month or your query is wrongly formatted. > Probably you can try your query in the shell first. > > On Sun, 11 Sept 2022 at 02:12, tech george wrote: > >> Hello Muhammad, >> >> I'm choosing dates b

Re: Filter by date range

2022-09-10 Thread tech george
'todate'? > > On Sat, 10 Sept 2022 at 13:27, tech george wrote: > >> Hello Carlos, >> >> I have used the code below as you advised by when I filter the table >> comes blank: >> >> query_results = Prescription.objects.filter(date__rang >>

Re: Filter by date range

2022-09-09 Thread tech george
filter(date__range=[fromdate,todate]) > if you have any problem with performance hit database use select_related > or used m2m field use prefect_related > https://docs.djangoproject.com/en/4.1/ref/models/querysets/ > > best! > > On Fri, Sep 9, 2022 at 7:48 AM tech george

Filter by date range

2022-09-09 Thread tech george
Hello friends! I am trying to give users an easier way to filter data by date range. My views.py code is as below, but unfortunately, it is hiding data without applying the filter whenever I try to use if, else statements. Please advise what I might be doing wrong. views.py ef referralsReports

Re: Negative Stock Prevention

2022-08-31 Thread tech george
ep 2022, 02:45 Ryan Nowakowski, wrote: > >> I don't see any error. Did you forget to post it? >> >> On August 31, 2022 5:57:32 AM CDT, tech george >> wrote: >>> >>> Hello, >>> >>> Sorry for the late reply. >>> >>>

Re: Negative Stock Prevention

2022-08-31 Thread tech george
Hello, Sorry the error is: django.db.utils.IntegrityError: CHECK constraint failed: quantity On Thu, Sep 1, 2022 at 3:45 AM Ryan Nowakowski wrote: > I don't see any error. Did you forget to post it? > > On August 31, 2022 5:57:32 AM CDT, tech george > wrote: >> &g

Re: Negative Stock Prevention

2022-08-31 Thread tech george
> instance.quantity? Also, presumably you want to check if quantity is > greater than or equal to qu rather than 0. > Try changing `if quantity > 0` to `if instance.quantity >= qu` > > > On Tuesday, August 30, 2022 at 3:44:51 PM UTC+1 Ryan Nowakowski wrote: > >> O

Negative Stock Prevention

2022-08-29 Thread tech george
Hello, Please help crack the below code, I want to prevent negative stock, and if the stock is == 0, deduct it from reorder_level instead. Currently, the stock goes negative. models.py class Stock(models.Model): quantity = models.IntegerField(default='0', blank=True, null=True) reorder_l

Models Culculations

2022-08-03 Thread tech george
Hello, Please help with the below, I am trying to get dispense_quantity from Dispense Model and subtract it from the quantity on Stock Model. Then after that get something like this; @property def closing_stock(self): return (self.quantity - self. quantity_issued ) class Stock(models.Mod

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
I cannot but agree with Kasper, but here is a naive example: @login_requireddef create_sale_view(request):   if request.user.has_perm("sell.add_product"):       # The user can add new product for sale   else:       # The user cannot add new product for salehttps://docs.djangoproject.com/en/4.0/topi

Re: Single user as a seller and buyer at the same time.

2022-05-10 Thread George Tantiras
What about Django permissions? https://docs.djangoproject.com/en/4.0/topics/auth/default/A user can be related to many groups.20:23, 9 May 2022, DJANGO DEVELOPER :https://stackoverflow.com/questions/72161764/how-to-make-a-user-act-as-a-seller-and-as-a-buyer-at-the-same-time-in-djangoI have posted m

Fetching Data Between Models

2022-04-20 Thread tech george
I have a model Staff and LeaveReportStaff, I wanted to get leave_balance between Total_Leave_Days and leave_days. I already used Foreignkey for staff but I'm not sure if it is right to use Foreignkey again. Please advise the best way forward. class Staff(models.Model): Total_Leave_Days = mode

Calculations Between Models

2022-04-19 Thread tech george
Hello, I have a model Staff and LeaveReportStaff, I wanted to get leave_balance between Total_Leave_Days and leave_days. Please advise the best way forward. class Staff(models.Model): Total_Leave_Days = models.PositiveIntegerField(default=0) course = models.ForeignKey(Course, on_delete=m

Re: Calculated Fields

2022-04-11 Thread tech george
def total_price(self): > return (self.quantity + self.reorder_level) * self.unit_price > > > > On 10/04/2022 20.49, tech george wrote: > > Hello, > > I am trying to calculate fields directly from a model but no luck. I want > to get total_price fr

Re: Calculated Fields

2022-04-10 Thread tech george
t; -- > (Unsigned mail from my phone) > > > > ---- Original message > From: tech george > Date: 11/4/22 03:50 (GMT+10:00) > To: django-users@googlegroups.com > Subject: Calculated Fields > > Hello, > > I am trying to calculate fields directl

Calculated Fields

2022-04-10 Thread tech george
Hello, I am trying to calculate fields directly from a model but no luck. I want to get total_price from quantity, reoder_level and unit price. My code is abelow, Please advise. class Stock(models.Model): unit_price = models.DecimalField(max_digits=10, decimal_places=2, default='0', blank=Tru

Re: NameError:

2022-04-09 Thread tech george
tients model. > > Regards, > > Antonis > > On 08/04/2022 20.49, tech george wrote: > > Hello, > > I've been struggling with the below error, what might be the problem? > > I have used the same ForeignKey in other models.. all works ok, except > thi

NameError:

2022-04-08 Thread tech george
Hello, I've been struggling with the below error, what might be the problem? I have used the same ForeignKey in other models.. all works ok, except this. Please advise. *Models:* class CustomUser(AbstractUser): user_type_data = ((1, "AdminHOD"), (2, "Pharmacist"), (3, "Doctor"), (4, "Pharm

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: Django sever for andriod

2022-01-17 Thread Chukwu George
Please help! I am trying to access django login page but it keep tell me "A server error occurred. Please contact the administrator" what do I do? Please help. On Wednesday, January 28, 2015 at 3:35:54 AM UTC-10 Andreas Kuhne wrote: > 2015-01-28 6:45 GMT+01:00 suhail areekkan : > >> I am new in

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

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

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: 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 >>

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: 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>

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

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: 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

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: 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.

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

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

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.

How to access siblings of a page in an efficient manner.

2020-07-20 Thread George
I am using using Django to create custom CMS, where pages are stored in a hierarchy (implemented using django-mptt). On a given child page, I want to show the links to all its siblings. Currently, I am doing this with the help of a template tag which looks like this: @register.inclusion_tag(

Re: My first question

2020-07-20 Thread George
Consider reading this article on how to read csv files in Python . On Saturday, July 18, 2020 at 11:55:57 AM UTC+5:30, Sead Sejo Gicić wrote: > > What is the difference between ordinary txt file and csv file for using in > Python

Re: Using primary key to update via POST request.

2020-07-20 Thread George
You use request.GET['choice_filed'] On Monday, July 20, 2020 at 9:14:48 AM UTC+5:30, Arpana Mehta wrote: > > Hi, > I have a class with a GET and a POST request. I am sending the data ( with > pk of the object ) in my GET request and I want the frontend to use that pk > to refer to the exact inst

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

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

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: 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: [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:/

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

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: 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

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: 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: 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: 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

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: 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`)

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-

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: 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://

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: 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

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: 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: 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: 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

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: 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
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-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

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: 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

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.

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

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

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

Re: django beginner

2015-03-13 Thread george . varaboutis
ok i put the folder that the django-admin file is in at the variables path of windows i hope that deals with later problems with files -- 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: django beginner

2015-03-13 Thread george . varaboutis
i have django installed correctly i checked witht he version test my python folder is on c:\ #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line() this is what is in

Re: django beginner

2015-03-13 Thread george . varaboutis
Τη Παρασκευή, 13 Μαρτίου 2015 - 6:58:55 μ.μ. UTC+2, ο χρήστης george.v...@gmail.com έγραψε: > > i am at the start > i use windows7, python 2.7.6 and django 1.7.6 > > after installation i tried to run "django-admin startproject mysite" > and it only opened notepad++ the file django-admin.py > >

django beginner

2015-03-13 Thread george . varaboutis
i am at the start i use windows7, python 2.7.6 and django 1.7.6 after installation i tried to run "django-admin startproject mysite" and it only opened notepad++ the file django-admin.py i then went in the directory that it was found and coppied the three files in the folder i want my project t

Django beggining problems

2015-03-13 Thread george . varaboutis
i am following the tutorial right now... I use windows 7 python 2.7.6 and django 1.7.6 when i run "django-admin startproject mysite" it opens a file on notepad++ called django-admin with some code in it #!c:\users\radcliff\appdata\local\enthought\canopy32\user\scripts\python.exe f

Re: django deployment in a virtual machine.

2015-02-24 Thread George Silva
not production i hope. in prod use nginx. if not on prod use runserver 0.0.0.0:8000 Em 24/02/2015 18:37, "dk" escreveu: > I got a virtual machine with Linux centos that we are going to use for our > django webpage. > that machine will have the html service on. so when people go to the > computer

Django sometimes shows partial (incomplete) json data in production env

2015-02-24 Thread George Mejia
I request some json data by some url, sometimes it works fine and *sometimes doesn't* ... I looked another related cuestion here , but it seems to recommend not change content-length by middleware ... my json data incomplete is as i

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread George Silva
logic to hang it in > e.g. before 0028 with already a 0027 existing. > > What's best practice here? > > Am Freitag, 20. Februar 2015 18:16:48 UTC+1 schrieb george: >> >> The deal here is that the model Currency has an ID, which is well, >> integer. >> >&g

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread George Silva
8-a81a-4228-bb68-cbebb675d729%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/bdde39c8-a81a-4228-bb68-cbebb675d729%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C.

Re: Seems like a geodjango bug with multiple databases

2015-02-19 Thread George Silva
t;> line 357, in get >> self.model._meta.object_name) >> multi.models.DoesNotExist: Hotel matching query does not exist. >> >> The thing is, if I create a hotel record on database issue1 with id of 9 >> then the last command works, so I guess it tried to loo

Re: Is this good django practice?

2015-02-09 Thread George Silva
e04%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3e4f9e4f-3a7a-447a-bf29-7547d049ae04%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria -

Re: django doubt

2015-01-27 Thread George Silva
what? english, please. Em 27/01/2015 12:13, "termopro" escreveu: > > Purpose well, libs clean, u happy. > If don't use, don't use - problem no. > The diff is some syntx sugr/ abilty do thngs ezly. > > On Tuesday, January 27, 2015 at 9:15:19 AM UTC+2, Kadhir Mani wrote: >> >> what pupose using vir

Re: django doubt

2015-01-27 Thread George Silva
egroups.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 message because you are subscribed

Re: Disorientated by too many google-maps django packages

2015-01-26 Thread George Silva
users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/12E97993-5E82-48EF-AE5C-443F51F79C32%40gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- George R. C. Silva SIGMA Consultoria

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

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: 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

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

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: 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

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: 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

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

  1   2   3   4   >