Re: Project together

2023-11-23 Thread Ogunlade Stephen Olayide
What is the project Stack? On Thu, Nov 23, 2023 at 7:14 PM Youssef Bachraoui < bachraouiyouss...@gmail.com> wrote: > Hi developer i search to make a group on WhatsApp to begin a project > together anyone interested about that? > > -- > You received this message because you are subscribed to the G

Re:

2023-07-31 Thread Ogunlade Stephen Olayide
I will prefer you make the About page the home/landing page On Mon, Jul 31, 2023 at 2:00 PM marvelous wrote: > > > Hello guys I just finished building out my portfolio and I would > appreciate if you give me your honest reviews heres the link > > > > https://marvel-9gdg.onrender.com/ > > > > --

Re: Django error while running

2023-03-21 Thread oba stephen
Can you share the content of your settings file? The installed apps in particular... On Tue, 21 Mar 2023, 16:05 Chandresh . T, wrote: > Recently I was running a git clone ( > https://github.com/divanov11/StudyBud.git) > > after doing required steps like migrations, etc. I started to run it by >

i want to use .db file in django application

2023-01-03 Thread Sam Stephen
How can i connect employee.db file to django? can any1 please help or share any tutorial -- 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...

How to Configure Celery and Celery Beat with Django deployed on Elastic Beanstalk Amazon Linux 2 with Elasticache as Redis server?

2022-09-23 Thread Edchel Stephen Nini
*Overview:* In our Django web app, there are some background tasks that we want to run every midnight. With this, I tried celery with celery beat. I was able to successfully implement background task scheduler with celery beat and worker with Redis as Celery broker following the tutorial on: 1

What's the best, most recommended way for handling model field encryption and decryption? Any python or django specific libraries?

2022-04-25 Thread Edchel Stephen Nini
Good day everyone, What's the best/most recommended way to handle encryption in Model fields, like email, credit card number, etc? Also decrypting the said encrypted fields and presenting data back in views, templates, etc? What is the recommended workflow? Do you know of any python or django speci

Re: Celery & Docker Setup

2021-11-10 Thread Edchel Stephen Nini
Yes you can add celery anywhere. Check out the full tutorial on how he did it. You're welcome. Keep safe, Ed On Thu, 11 Nov 2021 at 00:17, Trippy Samurai wrote: > Thanks edchels for the link considering the views is it possible to add? > > > On Wednesday, 10 November 2021 at 15:52:14 UTC+5:30

Re: Celery & Docker Setup

2021-11-10 Thread Edchel Stephen Nini
Checkout this tutorial https://realpython.com/asynchronous-tasks-with-django-and-celery/ On Wed, 10 Nov 2021 at 17:12, Trippy Samurai wrote: > Hello, > I have around 18 views in my views.py file how do i integrate with > celery,Please help me if anyone's aware > > *Views*.*py:* > > from django

Re: Celery & Docker Setup

2021-11-10 Thread Edchel Stephen Nini
Checkout this tutorial https://realpython.com/asynchronous-tasks-with-django-and-celery/ On Wed, 10 Nov 2021 at 17:12, Trippy Samurai wrote: > Hello, > I have around 18 views in my views.py file how do i integrate with > celery,Please help me if anyone's aware > > *Views*.*py:* > > from django

Re: Hi, How can I implement Microservices and Serverless with Django on AWS?

2021-10-31 Thread Edchel Stephen Nini
Thank you for your reply. Will check this links out! Thanks a lot 😀 On Sat, Oct 30, 2021, 9:29 PM MR INDIA, wrote: > Microservices can be implemented via APIs Rest Or Graphql it is your > choice and as a matter of fact Django can run server less infrastructures. > See this talk about server les

Hi, How can I implement Microservices and Serverless with Django on AWS?

2021-10-29 Thread Edchel Stephen Nini
Just attended yesterday the AWS Innovate Modern Applications in this link: https://innovate-modernapps-apj.virtual.awsevents.com/ I'm really interested on the Microservices and Serverless approach. How can I implement this with django? Thanks in advance! Sincerely, Ed -- You received this me

Re: Basic questions about scaling a Django web app. (e.g. AppEngine solves all problems?)

2021-08-24 Thread Stephen Loughin
I have this question too, but I'm running on an intranet on a self-hosted box under docker. My docker-compose.yml file is structured to have the following services: redis-db web-api rq-worker (scalable, typically with 4 workers) nginx I don't have the luxury of putting this in the cloud. The

Re: DRF | Django | Up votes | Down Votes

2021-06-24 Thread oba stephen
ote'}).order_by('diff') Best regards Stephen Oba On Fri, Jun 25, 2021, 6:03 AM DJANGO DEVELOPER wrote: > Is there anyone who can help me here? > > On Thu, Jun 24, 2021 at 7:15 PM DJANGO DEVELOPER > wrote: > >> Hi Django experts. >> I am b

Re: Retreive User IP Address and other details through HTML Form

2021-06-03 Thread Stephen olumide
Wow...thanks for the response. Yes we are all on same network in an organization. I will send view.py and index.html code later, it's 9:46pm here. Regards On Thu, Jun 3, 2021, 6:54 PM Kasper Laudrup wrote: > On 03/06/2021 12.04, Stephen olumide wrote: > > Hello Everyone, > >

Retreive User IP Address and other details through HTML Form

2021-06-03 Thread Stephen olumide
Hello Everyone, I need help with my Django web app, see link below https://caryang.pythonanywhere.com I need the form to display/populate the following: - Username - System Name - IP Address - MAC Address The user can fill remaining fields manually: - System Brand - System Type - Model - Location

Re: Hiring react developers

2021-05-13 Thread Akinfolarin Stephen
@John McCain sent you an email On Thu, May 13, 2021, 15:01 John McClain wrote: > because the issue I am having is directly related to React developers! So, > in the post I thought I was simply speaking directly to developers who were > in fact, React developers! And in kind, was hoping that some

Re: Am I being hacked?

2021-05-07 Thread Stephen J. Butler
Unlikely. The local connection is in a high port range and the remote connection's port is 443, which indicates your machine made an outbound HTTPS connection to that IP. Does your code make any HTTP requests? Does it use anything like OpenID Connect for auth? Do you have SSL certs it is checking t

Re: Hiring react developers

2021-05-02 Thread Akinfolarin Stephen
Am a react developer .Am interested On Mon, May 3, 2021 at 6:11 AM vineet daniel wrote: > Hi Group, > > Any one interested in Frontend development role using react? > > Please let me know. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

Re: Chaining filter is not working

2021-03-30 Thread oba stephen
Also you need to assign a related name to the foreign key for that filter to work. Best regards Stephen Oba On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire wrote: > Please check the model class also , if there are any mistakes point them > out > > -- > You received this message

Re: Chaining filter is not working

2021-03-30 Thread oba stephen
You didn't equate to anything. You have to specify what quality you are filtering by. Best regards Stephen Oba On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire wrote: > Please check the model class also , if there are any mistakes point them > out > > -- > You received this

Re: Python libraries for visualisations

2021-03-17 Thread Stephen Lalor
I do a tonne of data visualization and would recommend checking out Plotly . Looks really good and easy to create fairly complex graphics with. On Monday, March 15, 2021 at 4:50:18 AM UTC geethanj...@gmail.com wrote: > Hi..How to build a dashboard using django and py

Sending Websocket Data in View Not Working (Django Channels)

2021-03-17 Thread Stephen Lalor
I'd love to know what I'm doing wrong. Hopefully I'm not doing something completely senseless! Cheers, Stephen. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Hi

2021-01-31 Thread Ogunlade Stephen Olayide
What's the project all about? On Thu, Jan 28, 2021, 5:46 PM Sunday Iyanu Ajayi wrote: > Hi Florin, > > What support do you need? You can reach out via my email. > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Tue, Jan 26, 2021 at 3:10 PM Florin Ngabire > wrote: >

Re: Apple M1 Silicon + Django = weird results

2020-12-21 Thread Stephen J. Butler
Looking at that code for RangedFileResponse, I'm kind of skeptical that it properly implements the Range header. Try removing that bit and see if it works. Have you tried the download with various browsers? I wonder if Safari or Chrome released at the same time as the M1 chips is causing different

Re: Django has Future?

2020-12-13 Thread Stephen L
What? How can you look in your local area and determine the future of a framework? Here's how to tell a future of a framework: - Stars on GitHub - Tickets / issues being taken care of - Job search boards (globally) If you search python + web development you'll get requirements for django and flas

Re: Restarting servers in development

2020-10-26 Thread Akinfolarin Stephen
The reason why it is so is because of the browser caching capabilities when the browser see that you are trying to visit a page you visited previously it will load it from the cache if you want it to display the current content press CTRL F5 and you will your newly added content On Mon, Oct 26, 20

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-16 Thread Akinfolarin Stephen
;>> wsgi.py >>> pages >>> .cache >>> migrations >>> static >>> templates >>> tests >>> test_views.py >>>

Re: ImportError: cannot import name 'ProductDetails' from 'pages.views'

2020-10-15 Thread Akinfolarin Stephen
First I will like you to tell me the folder where test.py is and views.py On Fri, Oct 16, 2020, 06:27 Salima Begum wrote: > Hi all, > > I have written test case for views for details page. Here is below code I > have written > > ``` > from django.test import RequestFactory > from django.urls imp

Re: need assistant

2020-10-15 Thread Akinfolarin Stephen
Hi will be willing to colaborate On Thu, Oct 15, 2020, 16:38 Noel Simela wrote: > Hi, what is the nature of your projects? > > On Thu, 15 Oct 2020, 17:01 ericki...@gmail.com > wrote: > >> hello guys am new at Django , i have couple of projects for Django and >> pyside2 if anyone is willing to a

Re: could you help me to solve this problem? ☹☹

2020-09-29 Thread Akinfolarin Stephen
word validation > > # > https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators > > > > AUTH_PASSWORD_VALIDATORS = [ > > { > > 'NAME': > 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'

Re: Checkout my new Project CryptographicFields

2020-09-18 Thread oba stephen
Nice On Fri, Sep 18, 2020 at 2:32 PM Shahprogrammer wrote: > Hi guys, I have build an open source project for using cryptography in > Django Models . It allows by-directional encryption. > Here is the link :- Django-CryptographicFields >

Re:

2020-08-19 Thread Akinfolarin Stephen
Yes you have to understand some basic things in other to work with it effectivelg On Wed, Aug 19, 2020, 15:05 tejas padghan wrote: > Only basic .go ahead > > On Wed, 19 Aug 2020, 7:01 pm Suraj Kumar, > wrote: > >> Hello Django Users, >> >> >> I want to know there is any need of knowledge in

Re: ERROR

2020-08-14 Thread Akinfolarin Stephen
can you send the code on github so i can help you debug properly On Fri, Aug 14, 2020 at 11:42 PM Kasper Laudrup wrote: > On 14/08/2020 00.29, traore arouna wrote: > > how define it > > > > https://www.wikihow.com/Declare-a-Variable-in-Javascript > > -- > You received this message because you ar

Re: ERROR

2020-08-13 Thread Akinfolarin Stephen
your user variable is not define try to define it like is not referencing anything On Fri, Aug 14, 2020 at 11:07 AM traore arouna wrote: > ok my js file is > > > var updateBtns = document.getElementsByClassName('update-cart') > > for(var i = 0; i < updateBtns.length; i++) > { > updateBtns[i].add

Re: Security issue in django.db.models

2020-08-08 Thread Stephen J. Butler
If you look at the documentation for 'blank' it says: """ Note that this is different than null. null is purely database-related, whereas blank is validation-related. If a field has blank=True, *form validation* will allow entry of an empty value. If a field has blank=False, the field will be requ

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread oba stephen
Alright, Nice to know. Cheers. On Mon, Aug 3, 2020 at 7:12 PM Christian Seberino wrote: > I figured out the problem...If you only want the "global" errors to show > up at the top of the form > then you need to use {{form.non_field_errors}} instead of {{form.errors}}. > > > -- > You received thi

Re: How remove "__all__" from the beginnings of form error messages?

2020-08-03 Thread oba stephen
Hi, could you share your forms.py, your views.py and the template. On Mon, Aug 3, 2020 at 2:22 PM Christian Seberino wrote: > I created a custom form error messag like so... > > raise django.forms.ValidationError("Invalid date") > > However, when I do {{form.errors}} in a template I see thi

Re: file format changer

2020-08-01 Thread Akinfolarin Stephen
thanks for your reply On Sun, Aug 2, 2020 at 7:35 AM John McClain wrote: > Might make sense to convert images to different formats if you have tons > of them, so not exactly a bad question! > > Before crushing the guy maybe you could ask what the use case is! > > > Sent from my iPhone > > > On 1

file format changer

2020-08-01 Thread Akinfolarin Stephen
hello guys i want to build a software that enables me to chnage file from one format to another please do you know any package i can use or any online or any material that can help me achieve this -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-30 Thread oba stephen
Good to know.. Cheers! On Fri, Jul 31, 2020 at 7:21 AM Dinolin yp job wrote: > Thanks a lot @obastephen it worked. > > On Friday, July 31, 2020 at 12:32:47 AM UTC+5:30 obast...@gmail.com wrote: > >> irst in your UploadSerializer fields use fields = "__all__" >> >> Then you can use this in your

Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-30 Thread oba stephen
irst in your UploadSerializer fields use fields = "__all__" Then you can use this in your views: *def post(self, **request, format=None**):* *upload_file = request.data.get("upload_file"**)* *upload_date = **request.data.get("upload_date"**)* *user = request.user

Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-30 Thread oba stephen
first in your UploadSerializer fields use fields = "__all__" Then you can use this in your views: *def post(self, **request, format=None**):* *upload_file = request.data.get("upload_file"**)* *upload_date = **request.data.get("upload_date"**)* *user = request.user

Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-30 Thread oba stephen
You can create an upload form with an Image field, then when saving the for set the User field to request.user. Do you have an UploadForm already in your forms.py? if yes, show me with the view that handles. On Thu, Jul 30, 2020 at 11:59 AM Dinolin yp job wrote: > > > It worked but user_id colu

Re: Django3 runserver error

2020-07-30 Thread oba stephen
Also try using a virtual environment. On Thu, Jul 30, 2020 at 10:52 AM Haris Ahmad wrote: > Hi there, > Resolved_path =pathlib.path.resolve(strict=True) > > Use this, might work.. > > On Thu, 30 Jul 2020, 2:25 PM Mira, wrote: > >> Hi All, >> I recently upgraded Django from 2.2 to 3 on my MacOS1

Re: IntegrityError: null value in column "user_id" violates not-null constraint

2020-07-30 Thread oba stephen
>From the error, it states that you are trying to add an upload object to the database without a user. And from your model.py, the User foreign key does not have a null=True, and blank=True. So you can't save a null value for that user field. On Thu, Jul 30, 2020 at 10:52 AM Dinolin yp job wrote:

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread oba stephen
parate temple for that view? >> >> >> On Sat, Jul 11, 2020, 10:41 PM oba stephen wrote: >> >>> You can consider redirecting to a URL that handles the request. >>> >>> That is a View function that checks if the user is a student or teacher, >>&

Re: HOW TO REDIRECT DIFFERENT CATEGORY OF USERS THROUGH LOGIN REDIRECT (two login redirects instead of one)

2020-07-11 Thread oba stephen
You can consider redirecting to a URL that handles the request. That is a View function that checks if the user is a student or teacher, then renders the respective profiles. Regards On Sat, Jul 11, 2020 at 5:58 PM Kuntal Paul wrote: > The *LOGIN_REDIRECT_URL* only allowing to redirect to a p

Re: how to change the format of datetimefield model

2020-07-08 Thread oba stephen
See if this might help https://blog.ipswitch.com/date-formatting-in-python#:~:text=To%20do%20that%2C%20I'd,day%2C%20month%20and%20year%20is. see full documentation here https://docs.python.org/3.4/library/datetime.html#strftime-and-strptime-behavior On Wed, Jul 8, 2020 at 5:01 PM Chander shekhar

Re: Trouble getting kwargs into filter

2020-07-05 Thread Stephen J. Butler
get_queryset() isn't documented as taking any args at all, let alone the kwargs of the request. You sometimes see people do "def get_queryset(self, **kwargs)" to future-proof themselves in case get_queryset does, one day, accept args. But it doesn't right now. To get the kwargs for the request loo

Re: Unable to import HTML code

2020-07-05 Thread Akinfolarin Stephen
i guess the problem is syntax error in your load static at the top of the page put a spce between the percentage sign and the load below is a clearer explanation: your load static looks like this {%load static %} then change it to this {% load static %} the difference is that there is space between

Re: How to get names of columns from QuerySet without executing it

2020-07-04 Thread Akinfolarin Stephen
you can filter out the column you want by using [name of model].objects.get(filter=[name of the column you want]) On Sun, Jul 5, 2020 at 10:12 AM Eugene Kulak wrote: > How to get names of columns from QuerySet without executing it? > If it is not possible what would be the most easier way to exe

Re: Can someone help me??

2020-07-01 Thread oba stephen
#x27;blog:detail', kwargs={'pk':self.id}) >>> >>> def body_to_markdown(self): >>> return markdown.markdown(self.content.replace("\r\n", ' >>> \n'),extensions=[ >>> 'markdown.extensions.extra

Re: Can someone help me??

2020-07-01 Thread oba stephen
Can you share your models.py? Like Sencer said you have to check data types where the "+" operator is used. On Thu, Jul 2, 2020 at 3:55 AM Hella Nick wrote: > Dear Mir oba stephen: > > I deleted "volume" function,But The result is the same. > >

Re: Can someone help me??

2020-07-01 Thread oba stephen
The Error is straight forward, you are using an operand "+" for two two data types that it can't be used on. This might be from your "volume" function. On Wed, Jul 1, 2020 at 9:30 AM Hella Nick wrote: > Can someone help me?? > > > My project catalogue: > > > My setttings: > > TEMPLATES = [ >

Re: How to add domain from GoDaddy to Heroku

2020-06-30 Thread Akinfolarin Stephen
at what point where you stuck can you share may be i can be of help On Tue, Jun 30, 2020 at 12:16 PM John McClain wrote: > I was able to do so Micah > > it took almost a day to propagate though. How long has it been since you > did the redirects > > > On Mon, 29 Jun 2020 at 22:39, Micah Beckman

Re: union in get_initial_queryset in datatable

2020-06-29 Thread Akinfolarin Stephen
sorry don't get you can you be more clear with your error On Tue, Jun 30, 2020 at 4:12 AM Rajshree Some wrote: > list=Model1.objects.filter( > > reservation__in=Model.objects.filter(resource__in=resources).union( > Model2.objects.filter( > > reservation__in=Model.

Re: django.db.utils.ProgrammingError: relation "ops_sightseeing" already exists

2020-06-29 Thread Akinfolarin Stephen
hmm however will might not be able to really understand your problem but what me i feel could help is just search for this keyword [how to delete a model in django] google will always give you an edge On Tue, Jun 30, 2020 at 10:07 AM Arpana Mehta wrote: > You are right sir. Perhaps, if we could

Re: CSRF verification failed, 'CSRF token missing or incorrect'

2020-06-28 Thread Akinfolarin Stephen
can i see the error log On Mon, Jun 29, 2020 at 7:06 AM Shinster wrote: > When I try to submit a Django form with username and password, I get this > error message: > 'CSRF token missing or incorrect'. > > The CSRF token is not missing at least. > Here is where I included it in my form in my .h

Re: Required Django programmers for HR Portal project

2020-06-27 Thread oba stephen
Would be interestef On Sat, Jun 27, 2020 at 8:57 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > Dear group subscribers, > > I require Django programmers for an HR Job portal. It is an intern > project. > > regards willy > >

Re: django debug settings

2020-06-01 Thread Akinfolarin Stephen
On Tuesday, June 2, 2020 at 6:51:33 AM UTC+14, Alba wrote: > > I need to change the settings to debug = false but when I enter > *server_name* > . > webfaction.com, I get an error "server IP address could not be found." > How ca

Re: django debug settings

2020-06-01 Thread Akinfolarin Stephen
can i see your settings.py On Tue, Jun 2, 2020 at 6:51 AM Alba wrote: > I need to change the settings to debug = false but when I enter > *server_name* > . > webfaction.com, I get an error "server IP address could not be found."

Re: Ajax and Django and jQuery - .attr()

2020-05-31 Thread Stephen J. Butler
This isn't a jQuery issue, it's a JavaScript/ECMAScript issue. When you use the "arrow function" style like "() => { ...code... }" then certain variables are not bound into the function contact, including "this". https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_func

Re: function model which generate a code for model field

2020-05-27 Thread Akinfolarin Stephen
i feel in your last session you are trying to concatenate a string and an integer use the int function to convert it to string then the number will show On Monday, May 25, 2020 at 5:48:29 AM UTC+14, Anselme SERI wrote: > > from django.db import models >> >> >> def codeid(): >> lastid = MyMod

Re: Deploy on heroku with Geodjango/ postgis

2020-05-27 Thread Akinfolarin Stephen
On Thursday, May 28, 2020 at 2:45:30 AM UTC+14, Samuel Nogueira wrote: > > Hi guys. Does anyone have/know a walkthrough for deploying my django > application using geodjango and postgres with postgis on heroku? I was > struggling with that yesterday until I've given up. > I was developing my dj

Re: Help in designing excel like sheet in Django/python

2020-04-10 Thread Stephen L
Hello, Django is a web framework that uses python in the backend. You will need JS to build the spreadsheets in the browser. You can use a library like handsontable. On Fri, Apr 10, 2020, 8:32 PM s.patel wrote: > Hi All: > I need advice on how to design spreadsheet like screen using > pytho

Re: Forienkey to same table

2020-03-29 Thread Stephen J. Butler
Instead of using the model class, or string name of the model class, use the string value 'self'. https://docs.djangoproject.com/en/3.0/ref/models/fields/#foreignkey On Sun, Mar 29, 2020 at 9:44 PM Mohsen Pahlevanzadeh < m.pahlevanza...@gmail.com> wrote: > I have table A with my following fields

Re: keep getting the Fatal Python error with mod_wsgi and apache

2020-03-26 Thread Stephen J. Butler
Did you recreate the virtualenv on the server, or did you copy it from your development machine? You should recreate virtualenv's when deploying to a different server. On Thu, Mar 26, 2020 at 8:53 AM Fateh Budwal wrote: > Yes python 3.8.2 is installed > > On Wednesday, March 25, 2020 at 8:30:35

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Akinfolarin Stephen
to create your first django project first install python on your sysytem after that you check if you have pip on your sysytem of course it will be there to check use ths command: pip --version after that install a virtual environment in case you don't know what virtual environment is it help you

Re: Problem with migrations order

2020-03-24 Thread Akinfolarin Stephen
make sure you tell django that you have make changes the by running this python manage.py makemigrations after that enter python manage.py migrate it will automatically update your database On Tuesday, March 24, 2020 at 7:36:31 PM UTC+14, Yves de Champlain wrote: > > Hi > > I added a new app 'po

Re: Running django admin separately

2020-02-29 Thread Stephen J. Butler
I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this: # main site settings from .settings import * ROOT_URLCONF = 'myproject.urls_main' #

'ssl_disabled' is an invalid keyword argument for connect()

2020-02-25 Thread Stephen Loughin
The django doc s say I can pass OPTIONS for the db connection here: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { 'ssl_disabled': 'True', }, 'NAME': 's

RE: Django mysql db issue

2020-02-22 Thread stephen mwangi
Sent from Mail for Windows 10 From: Integr@te System Sent: Saturday, February 22, 2020 4:12 PM To: django-users@googlegroups.com Subject: Re: Django mysql db issue Hi Maturure, Plz look at limitation of char field and option in dj doc: https://docs.djangoproject.com/en/dev/ref/databases/#char

Re: Why can't Nginx find Django's static files?

2020-02-21 Thread Stephen J. Butler
d of going through the nginx proxy like you should have. On Fri, Feb 21, 2020 at 11:49 AM Robert F. wrote: > > > On Thursday, February 20, 2020 at 8:52:31 AM UTC-8, Stephen J. Butler > wrote: >> >> Django only serves up static files itself when run using runserver. Thi

Re: Why can't Nginx find Django's static files?

2020-02-20 Thread Stephen J. Butler
Django only serves up static files itself when run using runserver. This is meant for development and not production use. When you run it through gunicorn the Django framework won't serve up static files. That's why you connections to :8000 (gunicorn directly, bypassing nginx) don't work right. Fo

Re: Django query with few data(1,000-3,000) takes too long(1min) to load

2020-02-07 Thread Stephen J. Butler
You've got a lot of foreign key fields where the fetch is being deferred until template render time, and it being done individually for each row instead of in bulk. I think if you added this attribute to your ListView subclass you'd see better performance: queryset = Outgoing.objects.select_relate

Re: How to express `foo = (bar < quox)` as a constraint

2020-01-27 Thread Stephen J. Butler
Frankly, if is_on_sale has such a tight constraint I wouldn't have it as its own column. Why not just make it an annotated field with an F expression? https://docs.djangoproject.com/en/3.0/ref/models/expressions/#using-f-with-annotations Item.objects.annotate(is_on_sale=(F('price') < F('full_pric

Re: Can't connect databases together

2020-01-17 Thread Stephen
sqlite3 On Friday, 17 January 2020 16:53:01 UTC+1, Jonathan Villavicencio wrote: > > Hello Stephen, > > What is the database you are using? > > El vie., 17 de ene. de 2020 a la(s) 10:25, Stephen (steph...@gmail.com > ) escribió: > >> How can I connect 2 database

Re: A little help here please

2020-01-17 Thread Stephen
Thank You On Friday, 17 January 2020 16:36:41 UTC+1, Suraj Thapa FC wrote: > > Use django orm > > On Fri, 17 Jan 2020, 8:48 pm Stephen, > > wrote: > >> How can I join two database tables together please?. I'm trying to >> display every object in a table

Can't connect databases together

2020-01-17 Thread Stephen
How can I connect 2 database tables together please?. I am trying to display some objects in a table by selecting an object that is in another table. How do I connect them please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

A little help here please

2020-01-17 Thread Stephen
How can I join two database tables together please?. I'm trying to display every object in a table that is linked to an object in another table. I can't seem to get it to work -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Error: Key 'groups' not found in 'UserForm'

2020-01-05 Thread Stephen J. Butler
Take another look at the doc's example on formfield_for_manytomany: https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany You need to call super() and this isn't the right way to override the widget. def formfield_for_manytomany(self, d

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
My guess is that you have an unbalanced '(' on a previous line and the error doesn't get thrown until here (when it thinks maybe SECRET_KEY is a kwarg to the function call). What does the previous setting or two look like? On Sun, Jan 5, 2020 at 3:06 PM 'Dash LaLonde' via Django users < django-use

Re: SyntaxError SECRET_KEY

2020-01-05 Thread Stephen J. Butler
On Sun, Jan 5, 2020 at 3:13 PM Mohamed A wrote: > Be careful your secret key contains a # > > Which comment everything after > > Not when it's quoted as part of a string. It should be fine in this case. -- You received this message because you are subscribed to the Google Groups "Django users"

Aggregating distinct across OneToMany relationships using ORM

2020-01-05 Thread &#x27;Stephen' via Django users
Hi all, I have two Django models; MonitoringPeriod and AssignmentPeriod. Both models have start_date and end_date fields. A MonitoringPeriod can be covered by one or more AssignmentPeriod instances, which may or may not cover the entire range defined by the start and end of the MonitoringPeriod

Re: get user that is member of two different group

2020-01-02 Thread Stephen J. Butler
I don't think that's what the he asked for. It will return users who are members of either test1 OR test2, but I read the question as returning users who are members of both test1 AND test2. I think the proper query would be: User.objects.filter(groups__name='test1').filter(groups__name='test2')

Re: TemplateDoesNotExist

2019-09-23 Thread oba stephen
Try using "./base.html" I believe this should do it. On Mon, Sep 23, 2019, 1:40 PM yerri swamy wrote: > Hi guys, > > By using templates folder i am not getting what i am expecting and > i am getting error 'Template Does Not Exist' ,and also defaulty it's not > coming templates variable

Re: manage.py runserver error

2019-09-22 Thread oba stephen
Did you use "python manage.py runserver" or just "manage.py runserver"? On Sun, Sep 22, 2019, 5:09 AM Pawan Jha wrote: > When I run the Command "manage.py runserver" on the command > prompt(WINDOWS), I get the following error: > Traceback (most recent call last): > File "C:\Documents and Setti

Re: Local django server - login fails with new safari version

2019-08-08 Thread Stephen McGonigal
Thanks Balu. I tried that but I still have the same error. On Thursday, 8 August 2019 17:54:00 UTC+1, Stephen McGonigal wrote: > > I've updated my MacBook to the latest Mojave 10.14.6 version. Since that > update I'm not able to login into my locally installed django webser

Local django server - login fails with new safari version

2019-08-08 Thread Stephen McGonigal
I've updated my MacBook to the latest Mojave 10.14.6 version. Since that update I'm not able to login into my locally installed django webserver using Safari anymore. I always get the error message "Invalid CSRF token". With Chrome it's working. -- You received this message because you are sub

Latest Safari update prevents login

2019-08-08 Thread Stephen McGonigal
Login to locally run webserver no longer working. I've updated my MacBook to the latest Mojave 10.14.6 (18G87) version. Since that update I'm not able to login into local django webserver using Safari anymore. I always get the error message "Invalid CSRF token". With Chrome it's working. I also

Re: deploy to Heroku " collectstatic --noinput "

2019-05-27 Thread Stephen L
This is a migration problem https://groups.google.com/forum/#!topic/django-users/M-C6cZ8S4r4 https://stackoverflow.com/questions/42613536/django-programming-error-column-does-not-exist-even-after-running-migrations always run migrations before committing to heroku, but you can also run it on her

Unwelcome error!

2019-05-20 Thread &#x27;Stephen Owen' via Django users
Hi, all, I am creating a blog in Django, following lectures on You Tube. Everything was working fine and then an error occurred that I could fathom. So I have now just started a new project. One accessing localhost, I got the expected page but when I tried localhost I got this (attached.) Any

Re: Changing Admin Interface in Django

2019-04-11 Thread Stephen L
You can look at JET. It's not like that, but it does look much better than Django's out of box admin interface. https://github.com/geex-arts/django-jet On Thu, Apr 11, 2019 at 11:58 AM Aayush Bhattarai wrote: > *Hey Buddy, Can I change my Django Interface. I don't like such interface > and I w

Re: Error in function to return permissions

2018-10-31 Thread Stephen J. Butler
@login_required needs "request" as the first parameter. On Wed, Oct 31, 2018 at 11:58 AM Joel Mathew wrote: > I have a custom function to check if a user is authorized to do > certain functions: > > @login_required > def checkpermission(request, permiss): > username = request.user.username >

SQL MIGRATION

2018-09-25 Thread Afoakwa Stephen
Am getting this error when moving from mysqli to mysql databases django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gro

Re: __init__.py Won't Upload To Github Respository

2018-09-01 Thread Stephen J. Butler
GitHub has an excellent set of gitignore files. My first commit to a project is always one of these: https://github.com/github/gitignore In particular: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore On Sat, Sep 1, 2018 at 10:52 AM Kasper Laudrup wrote: > Hi Sandy,

Re: Error at login page of Django Admin

2018-05-16 Thread Stephen Farry
ut I could easily be wrong about that! Cheers, Stephen On 16 May 2018 at 18:09, Julio Biason wrote: > Hi Stephen, > > How are you deploying? Are you using uwsgi and nginx? 'Cause there is an > option on the nginx document configuration that you an point to drop a > prefix -- in t

Re: Error at login page of Django Admin

2018-05-16 Thread Stephen Farry
Hi James, Thanks for the reply. Yes, I did both of these (a few times to be sure!), but unfortunately it still doesn't seem to work. Actually the database itself seems to be working fine, it's just the admin that's the problem. Cheers, Stephen On Wednesday, 16 May 2018 17:00:

Error at login page of Django Admin

2018-05-16 Thread Stephen Farry
spect is a server side problem, but I'm not sure where to look. Let me know any further information would help. Thanks for any help you can provide. Cheers, Stephen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Decorator function argument woes

2018-04-29 Thread Stephen J. Butler
Apr 30, 2018 at 1:24 AM, Mike Dewhirst wrote: > On 30/04/2018 3:35 PM, Stephen J. Butler wrote: > >> @login_required doesn't take a test function. You need to use >> @user_passes_test directly. >> > > Thank you Stephen. > > I thought I'd start another t

  1   2   3   4   >