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
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_
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':
>
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.
>
>
>
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
> >
> >
&
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
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
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
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
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/
).
>
> 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
>>
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
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
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
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
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
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
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
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
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
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_
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
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
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
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
>
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
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
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
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
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:-
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
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
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
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
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
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
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
37 matches
Mail list logo