I think you're the one who don't fully understand Amor's email.
On Fri, 24 Dec 2021 at 21:03, Sebastian Jung
wrote:
> Hello,
>
> Insectdb is not to generate/update database. Please make it with python
> manage.py makemigrations and after that python manage.py migrate
>
> Please read a tutorial
Have you checked the content of that table using dbshell?
I have suspicion that the ID in your table is not a mere bigint.
According to your error message, it is 'slice' (I don't know what it is),
so you need to investigate what kind of data stored before you can move
forward from this issue.
If you host and 'rent' it as SaaS, no one can access your sourcecode.
But anyone can use your SaaS and replicate the website.
On Thu, 23 Dec 2021 at 22:24, kavin kumar R wrote:
> Hi everyone,
>
>
> *I did a project in django for a business motive and I want to sold it
> with out sorce code any
TypeNone means there's no value has been key in into the form.
How do you want to convert an absent of value into integer/float?
On Thu, 23 Dec 2021 at 22:24, Ad Tariq wrote:
> hi! django users how i calculate input value from template to views where
> request fetched value is TypeNone how
You can handle using conditions in template.
Or search for library for role based permission.
On Tue, 4 Jan 2022 at 19:00, Eugene TUYIZERE
wrote:
> Derar Team,
>
> I have a django application and I want the admin to manage the permissions
> for different functions. This should be done in way
You can try this json api.
https://www.geoplugin.com/webservices/json
I believe there's a lot of services out there with this capability.
On Thu, 16 Dec 2021 at 10:13, Amor Zamora wrote:
>
> Can you help me?
> I need to obtain the country of where the users access from the IP and
> insert that
It seems that you don't have permission to execute your wsgi.py file or the
filepath is incorrect.
Suggestion: Why don't you use nginx + gunicorn?
On Wed, 15 Dec 2021 at 23:05, Kyle Paterson
wrote:
> I am using django 4.0 with Apache and mod_wsgi. Whenever I try request the
> site through
https://docs.tutor.overhang.io/index.html
Try checking this. Probably it fulfills all your requirements.
Installation-wise, tutor is much easier to install compared to edx.
On Thu, 13 Jan 2022 at 23:08, Bu Market wrote:
> who have built apps like this one? i need help guys!
>
> E-Learning
If the image data is huge, that could take a long time.
Maybe you can just compare the checksum?
On Sun, 27 Feb 2022 at 23:31, Azzam Codes wrote:
> one way that i know, not sure if best way to do it,
> but you could first extract the fields of your model as:
> `modelAFields =
Try `linebreaks` instead of `linebreaksbr`.
On Fri, 7 Jan 2022 at 21:52, ___Maxim.Nesterov___
wrote:
> Hi, why linebreaksbr might not work {{somevalue | linebreaksbr}}
>
> For example, somevalue = ‘Joel\nis a slug’, and linebreaksbr doesn’t
> change \n →
>
> --
>
> {% load
Use assertTemplateUsed.
https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertTemplateUsed
On Sun, 24 Sept 2023 at 22:37, 'Simon Connah' via Django users <
django-users@googlegroups.com> wrote:
> I can write a unit test which checks say the title on a page
Based on django documentation, your syntax is correct. Are you sure that
the field name is correct?
On Mon, 16 Oct 2023 at 19:13, Mansour Abdullahi Abdirahman <
mansuurtech...@gmail.com> wrote:
> We have a DatetimeField in our modal , when we want to filter the month (
> only the month ) we
Please delete this. You just exposed your DB host, name, and password.
On Wed, 23 Aug 2023 at 17:58, Kani Sbt wrote:
> HI sir ,
> Please Help me to how to solve this problem ,
>
>
> this is settings.py :
> import os
> from pathlib import Path
> from datetime import timedelta
>
> BASE_DIR =
You can add the following lines in your script:
`
import django
sys.path.append('')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', '')
django.setup()
`
On Tue, 7 Jun 2022 at 04:17, Jason wrote:
> Why? what's the purpose behind this?
>
> On Monday, June 6, 2022 at 12:27:58 PM UTC-4
I think what he meant is 'session' in django.
Probably can take a look at this:
https://docs.djangoproject.com/en/4.0/ref/request-response/
For example, django app wants to know who is the current user, can use
something like:
`request.user`
On Mon, 6 Jun 2022 at 22:45, 'Kasper Laudrup' via
Based on my experience, this is the easiest one to start with:
https://django-auditlog.readthedocs.io/
On Mon, 6 Jun 2022 at 12:58, Mukul Verma wrote:
> i also have the question regarding this, is that i have to create auditing
> log file for all the activities performing in the project
This could be helpful:
https://forum.djangoproject.com/t/use-an-array-of-fields-with-sqlite/2320
On Fri, 17 Jun 2022 at 15:00, Mukul Verma wrote:
> Hii Everyone,
> Thanks for all the advice and suggestions.
> currently i got stuck with a problem i have to store list of some data in
> a specific
Did you read the forum thread?
On Fri, 17 Jun 2022 at 20:21, Mukul Verma wrote:
> Thanks but it would not work for me if you have any example code please
> share i need to use that
>
>
> On Friday, 17 June 2022 at 14:30:00 UTC+5:30 juw...@gmail.com wrote:
>
>> This could be helpful:
>>
You can refer to this as guidance:
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-20-04
I never use Centos for production, (I use Ubuntu) but the steps in those
link are probably similar with minimal modifications.
On Fri, 15 Jul
Stop this spammy invitation.
On Sat, 16 Jul 2022 at 16:21, wrote:
> PYTHON SESSION
> Join with Google Meet – Python notes for beginners: Introduction Syntax
> Statement, Indentation, and Comments Variables and Datatypes Operators
> Numbers Strings List, Tuple, Set, Dictionary If Else Elif
*sigh* This guy keep spamming this group.
On Mon, 18 Jul 2022 at 15:41, Satyajit Barik
wrote:
> Join using the below link.
>
> https://classroom.google.com/c/NTUwOTUwNDUwOTha?cjc=433md5r
>
> Core Python Session Google Classroom Link
>
Can you share the link of the API?
On Fri, 6 May 2022 at 17:27, Heman Okumbo wrote:
> Thanks for the tip,i guess i have to dig deeper to get what exactly fits
> my model design.
>
> On Fri, May 6, 2022, 04:04 Muhammad Juwaini Abdul Rahman <
> juwa...@gmail.co
You need to consider a few things, for example: are you okay with the
trade-off that your app will be (much) slower?
Unlike passwords, all those data are used (get and set) frequently.
On Tue, 26 Apr 2022 at 08:45, Edchel Stephen Nini
wrote:
> Good day everyone, What's the best/most
I think it's better for you to inherit from 'User' model instead of
creating them one by one.
'User' model have column 'name', 'password', 'email' (among others) etc.
https://docs.djangoproject.com/en/4.0/ref/contrib/auth/
On Mon, 9 May 2022 at 21:18, 郑 玉婷 wrote:
> Dear django workers,
>
>
Try this:
https://simpleisbetterthancomplex.com/tutorial/2018/01/29/how-to-implement-dependent-or-chained-dropdown-list-with-django.html
On Thu, 5 May 2022 at 23:46, Heman Okumbo wrote:
> I need to have clients posting their products based on their
> countries,States and cities.I got this api
Add 'tutorial' to settings.py > INSTALLED_APPS
On Fri, 2 Sept 2022 at 15:21, Pooja Kumari wrote:
> Hello team,
> please help me with this error.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop
There's no 'index' in your urls.py.
On Tue, 20 Sept 2022 at 21:38, Nicodem Laurore
wrote:
> Hello guys,
> I no longer have access to my Django admin, this in all my projects, I
> know what I did to get there, but getting out would be fine in order to
> continue my projects, if you know any way
You can try ./manage.py shell
Then you can run:
from abcd.models import Person
On Mon, 17 Oct 2022 at 06:37, It's ShAdAn wrote:
>
>
> how i run model through manage.py
>
> On Saturday, 15 October 2022 at 16:48:23 UTC-7 Thomas wrote:
>
>> You don’t run model files directly, but rather through
https://docs.djangoproject.com/en/4.1/ref/django-admin/#running-management-commands-from-your-code
I think it's quite straightforward. Just add call_command(command) after
(or before the save() line) in your code.
Depending on whether you're using FBV or CBV, you need to pinpoint where
exactly
I never tried this, but maybe you can.
Inherit the User model, then add two new lines:
class DerivedUser(User):
.
sr_usuario = username
sr_password = password
On Tue, 25 Oct 2022 at 05:14, Rafael Noronha
wrote:
> Hello guys,
> I'm not advanced in Django and would like to know
People can't see it straight away.
However, let's say if you forgot to set debut = False, they can see it. Not
straight away, but very trivial.
It is advisable to put your secret keys in external file (.env for example)
and use library like django-environ to get the value.
On Wed, 26 Oct 2022
Is there another way i can filter the dates?
>
>
> On Sun, Sep 11, 2022 at 9:47 AM Muhammad Juwaini Abdul Rahman <
> juwa...@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
What's your value of 'fromdate' and '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__range=[fromdate,todate])
>
> Regards,
>
>
>
> I hope i have answered you right.
>
>
> On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
> juwa...@gmail.com> wrote:
>
>> What's your value of 'fromdate' and 'todate'?
>>
>> On Sat, 10 Sept 2022 at 13:27, tech george wrote:
>&
My pycharm shows DecimalField as type Any.
On Sat, 24 Sept 2022 at 07:09, Justin Black
wrote:
> Hello there,
>
> If I have a model:
>
> class Money(models.Model):
> price = models.DecimalField()
>
> m = Money(...)
> pycharm knows that m.price is of type Decimal but when I read through the
>
Check your timezone in settings.py.
On Tue, 20 Sep 2022 at 21:38, Kenn_ Kiragu wrote:
> django datetime field and timefield provide different times when set to
> auto_now. The datetime field is three hrs behind.. Anyone know what could
> be causing this?
>
> --
> You received this message
That was user, so probably you need request.user.id, not session.
On Mon, 19 Sept 2022 at 16:00, shiva singh wrote:
> hello everyone please help me how can solve this problem:-[image:
> image.jpeg]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django
Someone is not even doing basic django tutorial...
On Mon, 31 Oct 2022 at 18:04, Ammar Mohammed wrote:
> Hello
>
> Have you added your index page view to your project's urlpatterns ?
>
> Regards
>
> On Mon, 31 Oct 2022, 11:33 AM REMY TOUITOU, wrote:
>
>> Hello , thanks you , I try to connect ,
It's literally there.
Vpziew in your middleware settings.
On Sat, 5 Nov 2022 at 23:07, Balogun Awwal wrote:
> everything was working perfectly befor until i installed django debug
> toolbar
> Exception in thread django-main-thread:
> Traceback (most recent call last):
> File
>
I think you need to add the following in settings.py:
CSRF_TRUSTED_ORIGIN = ('')
On Sun, 12 Mar 2023 at 02:04, James Hunt wrote:
> Hi there. I am fairly new to Django but have had previous success with
> creating an app and being able to access the Admin page.
> Recently, if I attempt to
rnationalization
> # https://docs.djangoproject.com/en/4.1/topics/i18n/
>
> LANGUAGE_CODE = 'en-us'
>
> TIME_ZONE = 'UTC'
>
> USE_I18N = True
>
> USE_TZ = True
>
>
> # Static files (CSS, JavaScript, Images)
> # https://docs.djangoproject.com/en/4.1/howto/static-file
question_id=question.id
On Tue, 14 Mar 2023 at 21:22, Nithin Kumar wrote:
> Hi,
>
> Stuck with this problem
>
> https://docs.djangoproject.com/en/4.1/intro/tutorial04/
>
> NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not
> found. 1 pattern(s) tried: ['polls/
> My
In my previous case, I only use this:
CSRF_TRUSTED_ORIGINS = ['https://your site url',]
On Tue, 14 Mar 2023 at 04:33, Prosper Lekia wrote:
> This is how I deal with all csrf related issues.
>
> Make sure csrf MiddleWare is in your MiddleWare list
>
>
latest_action= [ActionGame.objects.filter (os='windows',
category='action').latest ('published_date')[:4]]
On Mon, 27 Feb 2023 at 16:52, Byansi Samuel
wrote:
> I got a problem with my queryset. Am trying to get 4 latest objects from
> my model but it returns 1 objects the top latest.
>
>
In your urls.py you use '/hello' but in your browser you type '/home'.
On Sat, 15 Apr 2023 at 06:07, lalit upadhyay
wrote:
> *I have copied my code here. Plz fix this error:*
>
>
> view.py
> from django.http import HttpResponse
>
>
> def hello_delhi_capitals(request):
> return
You need to have game_id in your url.
On Wed, 29 Mar 2023 at 07:56, Byansi Samuel
wrote:
> I got an error when trying to create a review form in Django and it
> returned to that title as the error in my browser.
>
> I have included a text file containing my codes and l would like to
> request
Try running:
```
./manage.py makemigrations
```
If there are no changes detected by makemigrations, something wrong with
your app. Check INSTALLED_APPS in settings.py for any error.
On Friday, 31 March 2023 at 22:17:06 UTC+8 Martin Heitmann wrote:
> Hello everyone
>
> I have a project with
If you're using nginx and gunicorn in Ubuntu 22.04, you can follow the
instructions in this article:
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-22-04
To add HTTPS, you can use let's encrypt:
Getting started by doing. Django official site have their own tutorial that
you can follow line by line.
On Tue, 30 May 2023 at 22:55, Veronica Ndemo
wrote:
> Hi guys I need help.I am just getting started in using Django and I would
> love to get guidance on how to go about the Django framework
I think Django 4 still have backward compatibility with `url`
although `path` is preferable.
You can try to `runserver` in your local, upgrade your django version in
your virtualenv to version 4 and troubleshoot the error messages (if any)
one by one.
On Sat, 3 Jun 2023 at 05:20, john fabiani
Do you realize what 'Count' do?
On Thu, 25 May 2023 at 09:20, 'Mohamed Yahiya Shajahan' via Django users <
django-users@googlegroups.com> wrote:
> def list(self, request, *args, **kwargs):
> project_id = self.request.query_params.get('project_id')
> if project_id:
>
Google search on the error message returned this:
https://stackoverflow.com/questions/48428415/importerror-libcublas-so-9-0-cannot-open-shared-object-file
On Thu, 25 May 2023 at 09:20, Mahmoud Aboelsoud <
mahmoudabooelso...@gmail.com> wrote:
> Hello, how are you?
>
> I'm trying to import and use
t;
> On Fri, 9 Jun 2023, 02:24 Muhammad Juwaini Abdul Rahman, <
> juwa...@gmail.com> wrote:
>
>> How big is the file?
>>
>> I don't think a mere 2K records can kill an 8GB RAM machine.
>>
>> Probably something to do with your workers' settings?
>>
&g
How big is the file?
I don't think a mere 2K records can kill an 8GB RAM machine.
Probably something to do with your workers' settings?
On Fri, 9 Jun 2023 at 03:02, Percy Masekwameng <
percymasekwameng...@gmail.com> wrote:
> Hi
>
> I have web app survey that collect data and generate a CSV
You might want to try pyscript for this.
Natively, there's no way you can run python on browser.
On Tue, 23 May 2023 at 07:52, Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:
> Hello all,
>
> I've created an accessibility app where the *speech_recognition* package
> is utilized and
Folder `projects` should be inside `templates`.
Right now the folder is named 'templates/projects`. Please fix that first.
On Friday, 2 June 2023 at 22:04:03 UTC+8 Safaet Jaman wrote:
>
> [image: Screenshot 2023-06-02 105157.png][image: Screenshot 2023-06-02
> 105348.png]
--
You received
Hi all,
I have two different databases as below:
DATABASES = {
'tvet': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
},
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'jpk',
'USER': 'jpkuser',
'PASSWORD': 'jpkpassword',
'HOST': 'localhost', # Or an IP
For simple cases, matplotlib should be enough.
For more advanced cases, probably you can explore thousands of js tools out
there.
On Wed, 21 Jun 2023 at 08:53, DieHardMan 300
wrote:
> Hello, I hope everyone have a good day. I want to start building dashboard
> with the plotting graph in my
What's your code in urls.py for `/auth/user`?
On Sunday, 2 July 2023 at 01:14:53 UTC+8 arun n wrote:
> Hello,
>
> I am new to Django. I am getting the below error. Can someone help.
>
> from django.db import models
> from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin,
>
Be careful folks. Seems like a scam.
On Sat, 17 Jun 2023 at 23:18, Mz Gz wrote:
> Dear Black,
>
> Kindly check you inbox or spam folder.
>
> Regards,
>
> On Sat, 17 Jun 2023, 5:59 pm John Ayodele,
> wrote:
>
>> Yes, I'm here!
>> Check out my Github profile
>> github.com/techie-john
>>
>> On
Can you show the screenshot of your terminal?
On Tue, 23 Jan 2024 at 23:34, Raymond Nsubuga
wrote:
> Am working on a django react project but everytime i run my django server
> at port 8000, it instead redirects to port 3000 belonging to react
> automatically, what is the issue that can be
You're looking for people's help but you use non universal language in your
project.
On Sun, 11 Feb 2024 at 00:54, Jorge Bueno
wrote:
> The project:
>
> I am working on an exciting project that I think you might be interested
> in. It's about an online marketplace similar to the US farmers and
How do you connect django to mongodb?
On Mon, 19 Feb 2024 at 17:29, Armaan Alam wrote:
> queryset = Notification.objects.filter(is_seen__in=[False]).count()
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this
I think the later. However, I'm not a lawyer so might want to appoint one.
A legit one.
On Thu, 1 Feb 2024 at 23:03, Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:
> Can one copyright an entire Django Project if it contains licensed code
> from APIs? Or, does the copyrightable code
Don't use a shared server.
A dedicated server is not that expensive anyway and 'cheaper' than having
to encrypt (and decrypt on the fly) your code.
On Mon, 13 Nov 2023 at 21:54, Om Khade wrote:
> I want to save my Django project on a shared server in encrypted format
> and build a script that
Most probably your nginx doesn't serve endpoint 'static'.
On Thu, 29 Feb 2024 at 14:24, Ram wrote:
> Hi,
>
> We are able to deploy our pre-production site successfully using jenkins
> deployment and as part of the deployment we do the following:
>
> 1. Django application with runserver
> 2.
It's part of LoginForm in django_allauth:
https://github.com/pennersr/django-allauth/blob/main/allauth/account/forms.py#L146
You can subclass LoginForm and omit that part.
On Fri, 8 Mar 2024 at 22:34, ALINDA Fortunate
wrote:
> Hello colleagues, I have the following code for my login page using
I always follow the following steps to deploy my site on DO.
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu
Countless attempts and 0 fail.
Maybe you can try this. If you want to keep trying with your way, also no
problem.
On Thu,
restarting the service. If it is still failing to start,
> you might have to troubleshoot further to check what is preventing the
> services from starting. If it shows any error please check the logs and
> proceed accordingly.
>
> Best Regards,
> ~Ram
>
> On Wednesday, Mar
Based on my experience, that's not a trivial task, technically.
First and foremost, can you create a website?
Secondly, do you have an engine for facial recognition?
On Sat, 9 Mar 2024 at 23:13, Iza kim wrote:
> does anyone knows how to create a website for facial recognition?
>
> --
> You
cognition will be shown for the students
>
> On Saturday 9 March 2024 at 23:17:13 UTC+8 Muhammad Juwaini Abdul Rahman
> wrote:
>
>> Based on my experience, that's not a trivial task, technically.
>>
>> First and foremost, can you create a website?
>>
>> Sec
In summary, you're looking for free labour?
On Sat, 16 Mar 2024 at 03:49, Jorge Bueno
wrote:
> Good evening everyone, I need help in my personal project to create an
> agricultural and livestock marketplace and an agricultural and livestock
> social network as a whole.Longer explanation:Farmers
It's not reverse('courses') alone. Probably reverse('courses-create') or
something like that.
On Tue, 26 Mar 2024 at 18:55, Filbert wrote:
> Consider this what seems to be a simple Django/DRF API which works:
>
> class CourseViewSet(viewsets.ModelViewSet):
> queryset = Course.objects.all()
>
everse for* 'courses-create' *not
> found. 'courses-create' is not a valid view function or pattern name.
>
> On Tuesday, March 26, 2024 at 7:28:45 AM UTC-4 Muhammad Juwaini Abdul
> Rahman wrote:
>
>> It's not reverse('courses') alone. Probably reverse('courses-create') or
>> some
You're looking for `product`, but the model that you queried is `Task`.
On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI
wrote:
> Hello,
> *I have 2 models :*
>
> class Product(models.Model):
> product_id = models.AutoField(primary_key=True)
> product_name =
75 matches
Mail list logo