Re: On django model.

2021-12-24 Thread Muhammad Juwaini Abdul Rahman
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

Re: On django model.

2021-12-24 Thread Muhammad Juwaini Abdul Rahman
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.

Re: Django build file reg.

2021-12-23 Thread Muhammad Juwaini Abdul Rahman
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

Re: how to calculate input form value in django

2021-12-23 Thread Muhammad Juwaini Abdul Rahman
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

Re: Permissions front end management in Django

2022-01-04 Thread Muhammad Juwaini Abdul Rahman
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

Re: I need orientation on what to do and how to do it (procedure)

2021-12-15 Thread Muhammad Juwaini Abdul Rahman
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

Re: ModuleNotFoundError: No module named [project_name]

2021-12-15 Thread Muhammad Juwaini Abdul Rahman
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

Re: Complete E-learning apps

2022-01-13 Thread Muhammad Juwaini Abdul Rahman
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

Re: How to compare two image field properly

2022-02-28 Thread Muhammad Juwaini Abdul Rahman
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 =

Re: linebreaksbr doesn't work

2022-01-07 Thread Muhammad Juwaini Abdul Rahman
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

Re: Unit test to make sure correct template is returned from a specific URL?

2023-09-25 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django hosting

2023-10-16 Thread Muhammad Juwaini Abdul Rahman
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

Re: Connect::: frontend react and backend django

2023-08-23 Thread Muhammad Juwaini Abdul Rahman
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 =

Re: How replace "./manage.py < some_code.py" with "./some_code.py" for website scripts?

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
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

Re: Session in Python for Login and Logout

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
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

Re: Best approach for audit logging in Django.

2022-06-06 Thread Muhammad Juwaini Abdul Rahman
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

Re: List Field in Django Model while using SQLite

2022-06-17 Thread Muhammad Juwaini Abdul Rahman
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

Re: List Field in Django Model while using SQLite

2022-06-17 Thread Muhammad Juwaini Abdul Rahman
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: >>

Re: How to Deploy Django App on Centos server having domain secured With SSL?

2022-07-16 Thread Muhammad Juwaini Abdul Rahman
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

Re: Updated invitation with note: PYTHON SESSION @ Sat Jul 16, 2022 8pm - 8:30pm (IST) (Django users)

2022-07-16 Thread Muhammad Juwaini Abdul Rahman
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

Re: Core Python Session - Google Classroom

2022-07-18 Thread Muhammad Juwaini Abdul Rahman
*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 >

Re: Chaining county/cites api to models

2022-05-06 Thread Muhammad Juwaini Abdul Rahman
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

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

2022-04-27 Thread Muhammad Juwaini Abdul Rahman
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

Re:

2022-05-09 Thread Muhammad Juwaini Abdul Rahman
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, > >

Re: Chaining county/cites api to models

2022-05-05 Thread Muhammad Juwaini Abdul Rahman
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

Re: ModuleNotFoundError: No module named 'tutorial.quickstart'

2022-09-03 Thread Muhammad Juwaini Abdul Rahman
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

Re: my admin django not correct: NoReverseMatch à /admin/login/

2022-09-29 Thread Muhammad Juwaini Abdul Rahman
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

Re: Anyone help?

2022-10-16 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django call_command from Admin

2022-10-20 Thread Muhammad Juwaini Abdul Rahman
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

Re: User model override and authentication

2022-10-24 Thread Muhammad Juwaini Abdul Rahman
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

Re: secret api keys

2022-10-26 Thread Muhammad Juwaini Abdul Rahman
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

Re: Filter by date range

2022-09-12 Thread Muhammad Juwaini Abdul Rahman
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

Re: Filter by date range

2022-09-09 Thread Muhammad Juwaini Abdul Rahman
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, > >

Re: Filter by date range

2022-09-11 Thread Muhammad Juwaini Abdul Rahman
> > 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: >&

Re: How do django Field type hints work?

2022-09-25 Thread Muhammad Juwaini Abdul Rahman
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 >

Re: django datetime field and timefield provide different times....

2022-09-20 Thread Muhammad Juwaini Abdul Rahman
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

Re: session id attribute error

2022-09-19 Thread Muhammad Juwaini Abdul Rahman
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

Re: page html

2022-10-31 Thread Muhammad Juwaini Abdul Rahman
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 ,

Re: error

2022-11-05 Thread Muhammad Juwaini Abdul Rahman
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 >

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django Admin

2023-03-12 Thread Muhammad Juwaini Abdul Rahman
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

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django Admin

2023-03-13 Thread Muhammad Juwaini Abdul Rahman
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 > >

Re: Getting 4 four latest objects from django model

2023-02-27 Thread Muhammad Juwaini Abdul Rahman
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. > >

Re: Django urls error

2023-04-14 Thread Muhammad Juwaini Abdul Rahman
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

Re: Reverse for 'submit_review' with no arguments not found. 1 pattern(s) tried: ['submit_review/(?P[0-9]+)/\\Z']

2023-03-28 Thread Muhammad Juwaini Abdul Rahman
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

Re: Migration running in shell, but no change in DB

2023-04-01 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django Hosting on HTTPS with nginix AWS

2023-03-28 Thread Muhammad Juwaini Abdul Rahman
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:

Re: Finding Help in getting started in Django

2023-05-30 Thread Muhammad Juwaini Abdul Rahman
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

Re: how to convert to Django 3 or 4

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
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

Re: group by "project"

2023-05-24 Thread Muhammad Juwaini Abdul Rahman
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: >

Re: importing ultralytics in Django rest framework

2023-05-24 Thread Muhammad Juwaini Abdul Rahman
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

Re: CSV file

2023-06-09 Thread Muhammad Juwaini Abdul Rahman
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

Re: CSV file

2023-06-08 Thread Muhammad Juwaini Abdul Rahman
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

Re: Run Python Code on Front-End

2023-05-22 Thread Muhammad Juwaini Abdul Rahman
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

Re: Template doesn't run in browser

2023-06-02 Thread Muhammad Juwaini Abdul Rahman
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

CreateView for non default database

2023-07-25 Thread Muhammad Juwaini Abdul Rahman
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

Re: Dashboard with plotting graph

2023-06-20 Thread Muhammad Juwaini Abdul Rahman
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

Re: AttributeError at /auth/users/

2023-07-01 Thread Muhammad Juwaini Abdul Rahman
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, >

Re: associate Developers for Google

2023-06-17 Thread Muhammad Juwaini Abdul Rahman
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

Re: Web redirection

2024-01-23 Thread Muhammad Juwaini Abdul Rahman
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

Re: Looking for collaborators for an online marketplace project with Python, Django, React.js and Next.js

2024-02-10 Thread Muhammad Juwaini Abdul Rahman
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

Re: counting issue i use mongodb why show always 0

2024-02-19 Thread Muhammad Juwaini Abdul Rahman
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

Re: URGENT: DJANGO & COPYRIGHT

2024-02-01 Thread Muhammad Juwaini Abdul Rahman
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

Re: Encrypt entire Django project and decrypt in ram to start server.

2023-11-13 Thread Muhammad Juwaini Abdul Rahman
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

Re: Why would a deployed site shows up with distorted layout

2024-02-29 Thread Muhammad Juwaini Abdul Rahman
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.

Re: Help on Django_allauth Login Page

2024-03-08 Thread Muhammad Juwaini Abdul Rahman
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

Re: Django web site is not opened though runserver us running

2024-03-06 Thread Muhammad Juwaini Abdul Rahman
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,

Re: Django web site is not opened though runserver us running

2024-03-06 Thread Muhammad Juwaini Abdul Rahman
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

Re: facial recognition

2024-03-09 Thread Muhammad Juwaini Abdul Rahman
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

Re: facial recognition

2024-03-09 Thread Muhammad Juwaini Abdul Rahman
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

Re: Agricultural and livestock marketplace plus social network as a whole

2024-03-15 Thread Muhammad Juwaini Abdul Rahman
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

Re: Creating my first test case, failing.

2024-03-26 Thread Muhammad Juwaini Abdul Rahman
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() >

Re: Creating my first test case, failing.

2024-03-27 Thread Muhammad Juwaini Abdul Rahman
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

Re: Displaying contrast of a queryset

2024-04-26 Thread Muhammad Juwaini Abdul Rahman
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 =