Re: Exported filtered by date data in django

2021-11-19 Thread ramadhan ngallen
Depends on your query filter_val2 should lower than filter_val1 as the range start from val2 to val1. Otherwise change your parameter from val1 to val2 EXPENSES.objects.filter(Q(created_at__range=[filter_val2,filter_val1])) On 20 Nov 2021, 10:04 +0300, Eugene TUYIZERE , wrote: > Dear Team, > > I

Re: Exported filtered by date data in django

2021-11-19 Thread ramadhan ngallen
n Sat, 20 Nov 2021 at 09:18, ramadhan ngallen wrote: > > Depends on your query filter_val2 should lower than filter_val1 as the > > range start from val2 to val1. > > Otherwise change your parameter from val1 to val2 > > EXPENSES.objects.filter(Q(created_at__range=[filter_

Re: 'WSGIRequest' object has no attribute 'get'

2021-11-23 Thread ramadhan ngallen
Surely it has self.request.GET and not self.request.get On 23 Nov 2021, 09:11 +0300, Trippy Samurai , wrote: > Getting error while working with template view > > views.py > > > class DeveloperTicketView(TemplateView): > > def get_template_names(self): > if self.request.get('status') == 'Opened': >

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
On your app(blog) on the module(folder) migrations,   make sure there is a file named   __init__.py You can share app structure too On 9 Feb 2022, 06:26 +0300, 'Delvin Alexander' via Django users , wrote: > here is a list of my installed apps: > > i added the blog.apps but still nothing. > > >

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
variable DJANGO_SETTINGS_MODULE or call > settings.configure() before accessing settings. > On Tue, Feb 8, 2022 at 7:32 PM ramadhan ngallen wrote: > > On your app(blog) on the module(folder) migrations,   make sure there is a > > file named   __init__.py > > > > &

Re: migrations: "no changes detected"

2022-02-08 Thread ramadhan ngallen
the error is displaying this: > - Requested setting INSTALLED_APPS, but settings are not configured. You must > either define the environment variable DJANGO_SETTINGS_MODULE or call > settings.configure() before accessing settings. > On Tue, Feb 8, 2022 at 7:32 PM ramadhan ngallen w

Re: Need best tutorial

2022-06-12 Thread ramadhan ngallen
Use this from Telusko https://youtube.com/playlist?list=PLsyeobzWxl7poL9JTVyndKe62ieoN-MZ3 On 13 Jun 2022, 01:36 +0300, 'Kasper Laudrup' via Django users , wrote: > On 12/06/2022 07.54, Ghalib Raja wrote: > > hi there, i am beginner in python. can anyone share python best tutorial > > for web d

Re: What is this error mean and what can I do

2019-05-26 Thread ramadhan ngallen
ur models Best Regards Ramadhan Ngallen On 27 May 2019, 01:15 +0300, Saeed Pooladzadeh , wrote: > > Hi > > This is my model: > from django.db import models > from django.conf import settings > > > # Create your models here. > class Smodel(models.Model): >     eid=models.I

Re: AutoField

2019-05-27 Thread ramadhan ngallen
By Default each model in django has one primary key (id) which is also auto filled. If you don't want to use django's autofilled primary key, you suppose to make custom primary key  You may use the link below https://docs.djangoproject.com/en/2.2/topics/db/models/ Best Regards Ramadh

Wrong Redirect

2019-06-20 Thread ramadhan ngallen
Hello Team I created an app(called users) for user registration If user enter two mismatched password an app should redirect to the same page. otherwise it should redirect to the homepage Unfortunately when user enter two mismatched password it redirect to the wrong url http://127.0.0.1:8000/users/

Re: Wrong Redirect

2019-06-21 Thread ramadhan ngallen
). > > And also import django.http import HttpResponseRedirect > > Do the above & let me know. I hope it will work. > > On Thu, 20 Jun, 2019, 2:41 PM ramadhan ngallen, > wrote: > >> Hello Team >> I created an app(called users) for user registration >>

WORKFLOWS

2019-06-23 Thread ramadhan ngallen
Hello django users I want to ask if it's possible to develop web application with approval workflows in django.  Where  will be approval groups and user can be linked and unlinked to those approval groups. Approval policy can be either half of the members of the group to approval or anyone among

Re: WORKFLOWS

2019-06-24 Thread ramadhan ngallen
Thanks a lot On 24 Jun 2019, 17:37 +0300, Brandon Rosenbloom , wrote: > I know of developers which have used viewflow to accomplish this. Here’s a > link: > https://github.com/viewflow/viewflow > > -- > You received this message because you are subscribed to the Google Groups > "Django users" gr

Re: Django Login Problem

2020-03-29 Thread ramadhan ngallen
Why your templates shows some of the codes like {% csrf_token %}, for loops   and so on? Check your templates first are not okay. After signup log in to the admin panel as an admin and check if the user has been created on the database. You can also log in to your database to inspect this. Does

Re: OperationalError at /admin/login/attempt to write a readonly database

2020-05-03 Thread ramadhan ngallen
In short, it happens when the application which writes to the sqlite database does not have write permission. You have to add writing rights to the directory in which your sqlite database is stored. So running chmod 664 /srv/mysite should help. This is a security risk, so better solution is to c

Re: how to install pyenv-virtualenv on windows

2021-01-10 Thread ramadhan ngallen
Alternatively, You can use virtualenvwrapper-win On 10 Jan 2021, 18:00 +0300, Kunal Solanke , wrote: > I recently started using pipenv, but still I can say its best thing so far I > have used for storing env variables,creating venv and etc,with one simple > command your virtualenv will be activat

Re: Reports in Django

2021-01-17 Thread ramadhan ngallen
Use reportlab or weasyprint as alternative to crystal reports they both depends on css On 17 Jan 2021, 16:29 +0300, Ali Sufyan , wrote: > Hi All: > > Do we have report making library like crystal reports >  -- > You received this message because you are subscribed to the Google Groups > "Django u

How to Handle Media on Production

2021-02-21 Thread ramadhan ngallen
Hello Team. I have created an app that integrated with an Accounting system (sage evolution). Everything works fine on debug mode. But I face a challenge on media files on production. Django app deployed on appache with windows server. How can I handle media files on production. Currently when u

How to Handle Media on Production

2021-02-21 Thread ramadhan ngallen
Hello Team. I have created an app that integrated with an Accounting system (sage evolution). Everything works fine on debug mode. But I face a challenge on media files on production. Django app deployed on appache with windows server. How can I handle media files on production. Currently when u

Re: How to Handle Media on Production

2021-02-21 Thread ramadhan ngallen
I have managed to fix it by overding virtualhost file. On 21 Feb 2021, 21:58 +0300, Ryan Nowakowski , wrote: > > > On February 21, 2021 4:42:21 AM CST, ramadhan ngallen > wrote: > > Hello Team. I have created an app that integrated with an Accounting > > system (sage evol

Re: Django does't send email on the remote server

2021-02-23 Thread ramadhan ngallen
Change EMAIL_PORT = 465 EMAIL_USE_TLS=False EMAIL_USE_SSL=True On your sendmail function set sail_silently=False so that we can  see an error on terminal On 23 Feb 2021, 14:15 +0300, Sergei Sokov , wrote: > 'setting.py' > EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" > EMAIL_HOST_

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Show settings.py INSTALLED_APPS list. It seems you added an app named "documentation" . On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra , wrote: > sorry i am new to django and learning from youtube, > > i don't know what is happening while running "python manage.py runserver" > > On Sun, May 2

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Remove the app called documentation and replace it with foodcode. From directory you don't have an app called documentation On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra , wrote: > this screenshot of settings.py INSTALLED_APPS list > > > On Sun, May 2, 2021 at 3:00 PM

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Don't forget to add comma , at the end of each installed apps list. On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra , wrote: > this screenshot of settings.py INSTALLED_APPS list > > > On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen wrote: > > Show settings.py INSTAL

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
2021 at 3:10 PM Bheemanagowda S Gowdra > wrote: > > this screenshot of settings.py INSTALLED_APPS list > > > > > > On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen wrote: > > > Show settings.py INSTALLED_APPS list. It seems you added an app named >

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Save your project it's not using autosave. Add trailing comma at the end DIR list of template directories then run migrations and observe the error on Terminal On 2 May 2021, 12:52 +0300, Bheemanagowda S Gowdra , wrote: > > > On Sun, May 2, 2021 at 3:19 PM ramadhan ngallen wro

Re: please help me to solve this error

2021-05-02 Thread ramadhan ngallen
Did you include documentation.urls in your project urls instead of foodcode.urls? On 2 May 2021, 13:40 +0300, FIRDOUS BHAT , wrote: > replacing the documentation app with foodcode should resolve the issue > > On Sun, May 2, 2021 at 3:13 PM ramadhan ngallen wrote: > > Remove

Re: How to use correctly a FormSet in django administration

2021-05-05 Thread ramadhan ngallen
Cc cc cc cc On 5 May 2021, 17:36 +0300, Serge Alard , wrote: > Hello > > I should like to do personalised validation in Django administration but I > have always the same error : > type object 'MainForm' has no attribute '_meta' > > To do so, I use the following admin.py (attached file) > > Thanks

Re: Send login email notification

2021-06-08 Thread ramadhan ngallen
Create a function to send email to user then on your login view you can use threading module to send email by calling your send email function. Share ur login view and send email function I can show you how. On 8 Jun 2021, 21:41 +0300, Eugene TUYIZERE , wrote: > Team, I need to include email noti

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread ramadhan ngallen
For security purpose these settings should be on debug=True On production you should change those urls to have dedicated server for static files like   Nginx On 30 Jun 2021, 07:28 +0300, patel dhruvish , wrote: > Do you add static code in setting.py and urls.py? Code is here > > Setting.py:-

Re: Reg:- django application optimization

2021-07-14 Thread ramadhan ngallen
On development django handle media/static files usong staticfiles app but on production (debug=False) you have to use server like apache/nginx to handle static files (security reason) On logger file depends on the way you write you handle how to write log files On 14 Jul 2021, 16:34 +0300, Sent

Re: building mobile app

2021-07-17 Thread ramadhan ngallen
The easiest way is to create api endpoints for your django app using DRF or Django Ninja. Then use those api on your mobile app On 17 Jul 2021, 20:44 +0300, Peter Kirieny , wrote: > hello guys > i have a functioning django website > anyone with any easiest and cheapest idea on how to turn it into

Re: How do i add style to my django admin

2019-12-19 Thread ramadhan ngallen
Did you override settings.py Debug=False? Best Regards Ramadhan Ngallen Software Consultant Phone: +255 715 200 997 | ngall...@gmail.com On 19 Dec 2019, 21:16 +0300, amin ghaemi , wrote: > hi , first you need to reinstall django : > type this command in cmd: > > pip uninstall

Re: Django path, Learn Django, Django document

2019-12-21 Thread ramadhan ngallen
Hello You can use this link https://www.djangoproject.com On 21 Dec 2019, 19:04 +0300, Root Video Dạo , wrote: > Hello everyone! > I make this thread to find some advice to learn the Django framework. > I've learned about basic Python and want to learn about Web app using Python > but I couldn't

Re: Django path, Learn Django, Django document

2019-12-21 Thread ramadhan ngallen
des to be put in html(syntax), python control behide > (reference docs of expert propose previously), many great components > necessary as well. > > Happy code. > > > On Sat, Dec 21, 2019, 23:12 ramadhan ngallen wrote: > > > Hello > > > You can use this link &g

Re: Hi everyone I am new in django and postgresql. Actually I am getting following error when i run the project, Although I am putting right password and username. Please Help me....

2020-01-03 Thread ramadhan ngallen
Hello The reason was due to wrong password for the postgre. Kindly test the password via Pgadmin. Best Regards Ramadhan Ngallen Software Consultant Phone: +255 715 200 997 | ngall...@gmail.com On 3 Jan 2020, 12:27 +0300, shailendra singh , wrote: > The above exception was the direct cause

Re: TemplateDoesNotExist at /accounts/logout/ logout.html

2020-01-07 Thread ramadhan ngallen
Hello The template directory(name) is not correct. Kindly change template directory to "registration/logout.html" instead of "logout.html" Best Regards Ramadhan Ngallen Software Consultant Phone: +255 715 200 997 | ngall...@gmail.com On 7 Jan 2020, 12:24 +0300, Bruckner