Re: Using generators in Django

2019-12-18 Thread Mohit Solanki
If you only need to access object once while iterating then using iterators is a better choice to reduce memory consumption, Generators won't help here as soon this expression

Using generators in Django

2019-12-18 Thread onlinejudge95
Hi Devs, A quick question. I am using Django to schedule some commands to populate my PostgreSQL(Apart from using it as a web framework). I am currently fetching records from a particular table and for each of those records doing some calculation and storing the processed data in some other

django.urls.exceptions.NoReverseMatch

2019-12-18 Thread Chetan Rokade
Hi Friends, getting below error : "django.urls.exceptions.NoReverseMatch: Reverse for 'EditChange' not found. 'EditChange' is not a valid view function or pattern name." I have removed EditChange tag/string from all files in my project. 1) app level urls.py , 2) views.py 3) base.html 4) app

Re: manage.py not able to run any commands

2019-12-18 Thread Ian Githungo
First you have to check if you have activated your Visual environment which you have installed Django On Tue, Dec 17, 2019, 2:36 PM Phil Yang wrote: > Hi, > All of a sudden, when I tried to run manage.py runserver, it didn't > produce any output, and it didn't do anything. In fact, the

Re: Necessary Precautions to be taken in Software to pass security Audit

2019-12-18 Thread Mike Dewhirst
On 19/12/2019 12:37 am, Balaji Shetty wrote: Good Evening  One query raised. My project is Government and it must pass through Security Audits. Company may be indian Government. It was built in Django with Sqlite backend. It is hosted on Pythonanywhere. 90% work is accomplished in backend

Re: TeenagerStartups looking for Project Interns for Django/React Project

2019-12-18 Thread Durai pandian
will people get paid? if not, you should hire a freelancer. Non-disclosure agreement and confidentiality with all these things, not mentioning intern stipend. It doesn't feel right. On Thu, Dec 19, 2019 at 4:52 AM Roshan Shah wrote: > > I am toying with idea of Teenager Startups and we just

TeenagerStartups looking for Project Interns for Django/React Project

2019-12-18 Thread Roshan Shah
I am toying with idea of Teenager Startups and we just started development in Django 3.0 this week. This is entrepreneurship education platform for teenagers and we have a 5 month MVP development roadmap. Anyone who wants to join this project as volunteer intern, please send request with the

Re: Can I perform calculations directly in django tags/filters?

2019-12-18 Thread Luqman Shofuleji
Try using django-mathfilters. https://pypi.org/project/django-mathfilters/ On Wed, Dec 18, 2019, 11:55 PM Adeotun Adegbaju wrote: > you should indicate which files codes should be added to > > On Tuesday, November 18, 2008 at 11:21:09 PM UTC+1, Daniel Roseman wrote: >> >> On Nov 18, 7:55 pm,

Re: Can I perform calculations directly in django tags/filters?

2019-12-18 Thread Adeotun Adegbaju
you should indicate which files codes should be added to On Tuesday, November 18, 2008 at 11:21:09 PM UTC+1, Daniel Roseman wrote: > > On Nov 18, 7:55 pm, jago wrote: > > I am thinking about something like {{ (width - 5) *12 }} ? > > No. You can add or subtract using the 'add' filter: > {{

Re: Renaming sequences

2019-12-18 Thread Mike Dewhirst
Thanks Michael. It has been interesting so far and I'm looking forward to understanding what I've done Original message From: Michael MacIntosh Date: 19/12/19 06:58 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Renaming sequences Hey Mike,I'm not sure about

Re: Renaming sequences

2019-12-18 Thread Mike Dewhirst
I haven't touched production yet. Things seem ok in dev but I'm still asking around due to under-confidence. And it will be fully tested in staging before deploying live. Original message From: DANIEL URBANO DE LA RUA Date: 19/12/19 07:07 (GMT+10:00) To: Django users

Re: Static files configuration

2019-12-18 Thread Kevin Dublin
Hey, try this: In settings: # If running collectstatic STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # make sure if you have multiple apps that you want to direct to specific location of static files STATIC_DIRS = ( os.path.join(BASE_DIR, '../apps/core/static'), ) Finally if you're

Re: Renaming sequences

2019-12-18 Thread DANIEL URBANO DE LA RUA
Why you did taht on production and not to try before recreate the db in other place On Wed, 18 Dec 2019, 20:59 Michael MacIntosh, wrote: > Hey Mike, > > I'm not sure about your specific setup, but I assume you are using the > django.contrib.auth user model and are moving it over to your own

Re: Renaming sequences

2019-12-18 Thread Michael MacIntosh
Hey Mike, I'm not sure about your specific setup, but I assume you are using the django.contrib.auth user model and are moving it over to your own app, and you have your own userprofile model that links to it.  The user model in django.contrib.auth is a swappable model.  Basically meaning as

Django formset, forms passing unique choices into a choicefield for each form

2019-12-18 Thread Brad Allgood
Initially posted on stack overflow: https://stackoverflow.com/questions/59395761/passing-dynamic-choices-into-a-formset-unique-for-each-form I am working on what I thought was a simple college football confidence pool. The concept is as follows: - Bowl Model: Model that stores information

Re: django orm filter queryset is returning empty

2019-12-18 Thread Dilraj sachdev
sounds like because some filters returning no results On Tuesday, 17 December 2019 11:36:29 UTC, vignesh s wrote: > > django orm filter queryset is returning empty queryset and also checked in > the db the data is available > -- You received this message because you are subscribed to the

Django 3 + MySQL + User privilages in DB server

2019-12-18 Thread Wojciech Jędrzejczyk
I am going to create in Django new fornt-end (HTML + JS + CSS) to old application based on big MySQL database (lots of tables, views, stored procedures, logs, triggers and so on). I need to force Django to respect database privilage for each user. I know I can give in django some rights e.g.

Re: how to display the number of views of an article with django

2019-12-18 Thread Awa M. Kinason
I have made some typo errors in typing: *view_count, *please just adjust that in the code. So it should be "*view_count*" anywhere i mistakenly wrote "*views_count*" On Wednesday, December 18, 2019 at 4:25:33 PM UTC+1, JEAN MARLON MBAN wrote: > > how to display the number of views of an article

Re: how to display the number of views of an article with django

2019-12-18 Thread Binoy U
Making the answer with the assumption that article is a modal. You can add a field named count(PostiveIntegerField) and increment the count every time an article is viewed. I hope you have implemented article view as a DetailView or similar function view. On Wednesday, December 18, 2019 at

Re: how to display the number of views of an article with django

2019-12-18 Thread Awa M. Kinason
First, add a column on the article Model named "views_count" Then on the DetailView of the article, and on the GET method. add this: article.view_count += 1 article.save() # or (asuuming you are using class based views) self.object.view_count += 1 self.object.save() The problem

how to display the number of views of an article with django

2019-12-18 Thread JEAN MARLON MBAN
how to display the number of views of an article with django -- 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 view

ImportError: DLL load failed: The specified module could not be found.

2019-12-18 Thread Mukesh Kalaga
Hello guys im a begginer in django. I think i have issues in my virtual environment. when i run the other django project it works fine but when i run this project im having the following error op File "manage.py", line 21, in main() File "manage.py", line 17, in main

Re: manage.py can't run any commands

2019-12-18 Thread Ian Githungo
have you checked the virtual environment which you have installed the version of Django you are currently using? On Tue, Dec 17, 2019 at 2:36 PM Phil Yang wrote: > Hi, > The manage.py script for all my projects has suddenly stopped working. It > can't run any commands, such as runserver or

Re: Django Error - 'staticfiles' is not a registered tag library. Must be one of: admin_list admin_modify admin_urls

2019-12-18 Thread Balaji Shetty
Thank you very much everyone for help.My problem is solved with version updates. On Tuesday, December 17, 2019, Bilim Tr wrote: > > > 10 Aralık 2019 Salı 19:00:32 UTC+3 tarihinde Balaji yazdı: >> >> Hi >> >> I am getting error for every Project. >> >> I created new environment and reinstalled

Re: seeking for explanations

2019-12-18 Thread Awa M. Kinason
I am a Django Developer, can work with you depending on the conditions of work. Checkout some of my works here: https://njanginetwork.com, https://billstack.net. On Wednesday, December 18, 2019 at 2:08:57 PM UTC+1, Moise Sacko wrote: > > Hi. I want to create an hotel management project in

Necessary Precautions to be taken in Software to pass security Audit

2019-12-18 Thread Balaji Shetty
Good Evening One query raised. My project is Government and it must pass through Security Audits. Company may be indian Government. It was built in Django with Sqlite backend. It is hosted on Pythonanywhere. 90% work is accomplished in backend only. Only report and graph display are in

Re: Django security releases issued: 3.0.1, 2.2.9, and 1.11.27

2019-12-18 Thread אורי
Django developers, We use Django 2.1 and anyway I saw that Django expects each user to have one email address, where on Speedy Net each user can have multiple email addresses. So I had to override *def save* in *class PasswordResetForm* on Speedy Net:

seeking for explanations

2019-12-18 Thread Moise Sacko
Hi. I want to create an hotel management project in django in which a customer could, throught his dashboard rent a room online. Is someone who could help me because I don't know how to start??? -- You received this message because you are subscribed to the Google Groups "Django users" group.

Static files configuration

2019-12-18 Thread Yash Garg
I have to display a HTML page with its supporting css, js and images. So i create a template folder to put HTML in it then i create a static folder in which i create css, js and img folder and put related files into these folders. then I configure the *Settings.py* BASE_DIR =

Django security releases issued: 3.0.1, 2.2.9, and 1.11.27

2019-12-18 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2019/dec/18/security-releases/ -- 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