Re: Student Club Management Web App: Seeking Collaboration and Advice from Experts

2024-03-11 Thread Kani Sbt
+918072970517

On Mon, 11 Mar 2024 at 03:46, Galuh Akbar Putra 
wrote:

> Contact me
> 0881025905276
>
> Pada Sab, 2 Mar 2024 22.58, SOLTAN NOURELDIEN 
> menulis:
>
>>
>> Hello, I am currently working on my Django Project for a specific course
>> at my university. I have already finished reading "Django for Beginners" by
>> William S. Vincent. Now, I am eager to start this project, but I am still
>> in the learning and research phase. Therefore, I will provide the
>> requirements for the project and would appreciate feedback or any tips from
>> anyone with experience in such projects.
>>
>> For example, this will be my first time implementing a multi-user system.
>> After doing extensive research, I learned about Django's model group
>> concept managing this approach. Additionally, I discovered Django Channels
>> and signals, which I have never heard of before. I would appreciate any
>> advice or guidance on how to approach such a project.
>>
>> Furthermore, if anyone is interested in joining me on this journey, it
>> would be wonderful. We can learn a lot from this project together. The
>> deadline is less than two months, so please provide your Discord or
>> WhatsApp number, and we can create a group to collaborate on this project.
>>
>> *The requirements for the project are as follows:*
>>
>> An app for student clubs:
>> *SKS Admin:*
>>
>>-
>>   - Create Club Page
>>   - Delete Club Page
>>   - Assign Club Manager
>>   - Activity Form (Approve, Reject)
>>   - Receive notifications (Whenever a change occurs in the club
>>   page) (Approve Change, Reject Change)
>>   - Request for Publishing Activity Post (Approve, Reject)
>>   - Search Club Page
>>   - Announce All Activities (Will be displayed on the main page)
>>
>> *Club Manager:*
>>
>>-
>>   - Fill out the activity form
>>   - Request for publishing Activity Post (Sending it to admin, and
>>   after approval, the activity will appear on the club main page)
>>   - Receive Notification (The response to the Activity Form &
>>   Activity Post publishing request)
>>   - Edit Activity Post (Admin manager will receive a notification)
>>
>> *Student:*
>>
>>-
>>   - Display weekly Activity Table
>>   - Display Clubs Main Page
>>   - Search (by category, by date)
>>
>> I will only focus on the backend development and integrate it into the
>> template. I have other team members who will provide the Static HTML, CSS &
>> JS files. I will incorporate them into the Django templates and work on
>> making them interactive.
>>
>> Additionally, if time allows, I can implement additional features such as:
>>
>>- Manager:
>>   - Submit an application to SKS to assign a club
>>   - Initiate a chat conversation between the manager and the SKS
>>- Student:
>>   - Become a member of a club
>>   - Follow Clubs
>>   - Follow the club pages
>>   - Like and comment on a post
>>
>> If you have any ideas or know of existing projects that could serve as
>> inspiration, please feel free to comment. I would greatly appreciate it.
>>
>> Also, if you would like to collaborate with me for learning purposes and
>> to work as a team, please don't hesitate to provide your contact
>> information, and I will reach out to you. Thank you very much.
>>
>> --
>> 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 this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/19da6a17-4c28-41d5-acb1-171fb052c9a1n%40googlegroups.com
>> 
>> .
>>
> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADdZx%3DRPso%3Dv5eB9m0SvxCRCsd5hBvuAZu4ibXkMac6GFUWbGw%40mail.gmail.com
> 
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTQ%2B3AZ7jMtKK-PUoFUCWCzV9pvHYxC%3DduYFvrQZyfDU1g%40mail.gmail.com.


Launching Our Django Developers' Error Resolution Group 

2023-12-07 Thread Kani Sbt


Dear Django and RestFrameWork Community Members,

I hope this message finds you well! We're thrilled to announce the launch 
of a new initiative within our community — the Django Developers' Error 
Resolution Group.

In this group, we aim to foster collaboration and knowledge-sharing among 
our talented developers. If you encounter any challenges or errors while 
working on Django projects, this is the perfect space to seek assistance 
and share your expertise with others.

Whether you're a seasoned Django pro or just starting out, everyone is 
encouraged to participate. Together, we can build a supportive environment 
where we learn from each other's experiences and collectively overcome 
obstacles.

To get started, simply post your error or problem in the group, and let the 
community work its magic. Remember, there's no such thing as a "silly" 
question, and we're here to help each other grow.

Let's turn challenges into opportunities and make our Django projects even 
more successful!

Looking forward to seeing you in the group and fostering a collaborative 
and thriving community.


join this Group : 

https://chat.whatsapp.com/KrnYaahVEZ8JmNbx4YNqHm

Happy coding!

Best regards, B.KANITHKAR SOFTWARE ENGINERR ANJOK TECH 

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/51c53689-7b54-4bd1-8d29-9e15602ad09fn%40googlegroups.com.


Re: Project together

2023-11-23 Thread Kani Sbt
invitation is sended


On Fri, 24 Nov 2023 at 12:36, developer panther 
wrote:

> Add me to the group
>
> +917595914029
>
> On Thu, 23 Nov 2023, 23:44 Youssef Bachraoui, 
> wrote:
>
>> Hi developer i search to make a group on WhatsApp to begin a project
>> together anyone interested about that?
>>
>> --
>> 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 this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d5244e76-6bd3-4bde-bf31-a72720bee1acn%40googlegroups.com
>> 
>> .
>>
> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADtqY_B%3D76DA87mi%2Bq%3D%2BFagxR_m%3DbDqOfUsNkBP%2BDa2GCcn-Ng%40mail.gmail.com
> 
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTTRxt3XTh4vB0wsYWthxoHpMCfD4N3cUXPjpSo0S1zsmA%40mail.gmail.com.


This is the Comminunity Group for Us

2023-11-23 Thread Kani Sbt
this is the link if you interested connect here, we are discussing various 
problem and error solving and all  
https://chat.whatsapp.com/IbUFaVqvgx853JiJcAVKLL

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ce7bb22e-1849-421b-b0fd-e276c728b303n%40googlegroups.com.


Re: Project together

2023-11-23 Thread Kani Sbt
https://chat.whatsapp.com/IbUFaVqvgx853JiJcAVKLL  join this link Django

On Fri, 24 Nov 2023 at 12:32, Basith  wrote:

> Add me as well. +91 9544716586
>
> On Fri, Nov 24, 2023, 11:48 AM Ogunlade Stephen Olayide <
> ogunladestephe...@gmail.com> wrote:
>
>> What is the project Stack?
>>
>> On Thu, Nov 23, 2023 at 7:14 PM Youssef Bachraoui <
>> bachraouiyouss...@gmail.com> wrote:
>>
>>> Hi developer i search to make a group on WhatsApp to begin a project
>>> together anyone interested about that?
>>>
>>> --
>>> 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 this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/d5244e76-6bd3-4bde-bf31-a72720bee1acn%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CANyXpori%2B9nGkES8W%3D7ETgu7GX%2BQrjMW13i_LAW%3D8wSCkyu9ug%40mail.gmail.com
>> 
>> .
>>
> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAADw1syfrAbKnkRuFzZvcuef6KaC_8YfPy8Derm9mf3WHjGnSw%40mail.gmail.com
> 
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTRvBsoVhFmNehZjCUtVbsu91dFKvGS5J3UL4HHkUuWqeQ%40mail.gmail.com.


Re: Form does not import current data from data base

2023-10-26 Thread Kani Sbt
in django how to do phonepay integration any know or any blog or video
anything , could you tell me !!! , i need  to do that payment integration
in phonepay

On Thu, 26 Oct 2023 at 14:30, Stefan Kusmierz 
wrote:

> Hi Migui, thanks for your input. It didn't work.
>
>
> Migui Galan schrieb am Donnerstag, 26. Oktober 2023 um 09:27:48 UTC+2:
>
>> Hi Stefan, sorry i thought the process you are working is in POST
>> request. Try to place your func() after formchoices3.
>>
>> On Wed, Oct 25, 2023 at 4:10 PM Stefan Kusmierz 
>> wrote:
>>
>>> Hi Migui,
>>> I'm enchanted to receive such a quick answer.
>>> 1. It's MyForm1_2_3_4() because it's the answer to the first Get request
>>> while the page is opened
>>> 2. Why would I try to save the form to the data base?
>>> Best regards, Stefan
>>>
>>>
>>> Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC+2:
>>>
 Hi Stefan!
 it should be form = MyForm1_2_3_4(request.POST) where POST request will
 place/process the data to your form then after form.save()

 On Wed, Oct 25, 2023 at 12:29 AM Stefan Kusmierz 
 wrote:

> Dear community,
> this looks like a django bug to me:
> 1. (see first image)
> By api query I confirm that the last object of class List has the
> value "Startwert_neu2" in its field a, which was expected.
> 2. (see second image)
> The form "MyForm1_2_3_4" is instantiated using exactly the same
> command ("List.objects.last().a") to build formchoices3 which enter the
> corresponding choicefield furtherdown in "MyForm1_2_3_4" (not shown in the
> image)
> 3. While running the app my print out (to find the problem) states,
> that formchoices3 does not contain the expected data "Startwert_neu2" but
> "mCP purity", which is old data from older objects. So the rendered Form
> also contains the old data.
> To complete the information I also added snippets of views (fourth
> image) and models (fifth image).
> Is this a known issue?
> Thanks in advance,
> Stefan
>
> [image: DB-Query.jpg][image: Form.jpg][image: print out while
> running.jpg][image: snippet from views.jpg][image: snippet from
> models.jpg]
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/085fcd6d-13aa-422b-86f9-1e15c2549ac8n%40googlegroups.com
> 
> .
>
 --
>>> 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...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/43b913ef-c9a3-4705-9b58-a889f2667426n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6730a25f-6a75-42ea-bb69-6742dfed5bc8n%40googlegroups.com
> 
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTRYuvX3gm_jjdrtgHA%2BtX0EEfzSNQpQBPnOYx-iWVxODA%40mail.gmail.com.


Re: table bank_app_bank has no column named DOB

2023-08-23 Thread Kani Sbt
delete all the migrations without init.py , then delete SQLite file , then 
do makemigrations and migrate

On Tuesday, 22 August 2023 at 13:50:01 UTC+5:30 meenu loranz wrote:

>
> Yes i delete that 0001_initial.py page and rerun the migration codes and 
> run the server. But it dosen't work for me..
>
> On Tuesday, August 22, 2023 at 12:49:39 AM UTC+5:30 Mike Simkins wrote:
>
>> Did you regenerate and rerun the migrations ??
>>
>>
>> python manage.py makemigrations
>> python manage.py migrate
>>
>>
>>
>> On 21 Aug 2023, at 09:46, meenu loranz  wrote:
>>
>> Thank you for your response...i changed DOB to dob...but still showing me 
>> the error...
>> OperationalError at /add/ table bank_app_bank has no column named dob 
>> Request Method: 
>> POST 
>> Request URL: 
>> http://127.0.0.1:8000/add/ 
>> Django Version: 
>> 4.2 
>> Exception Type: 
>> OperationalError 
>> Exception Value: 
>> table bank_app_bank has no column named dob 
>> Exception Location: 
>> C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\sqlite3\base.py,
>>  
>> line 328, in execute 
>> Raised during: 
>> bank_app.views.add_form 
>> Python Executable: 
>> C:\Users\Admin\AppData\Local\Programs\Python\Python39\python.exe 
>> Python Version: 
>> 3.9.0 
>> Python Path: 
>> ['C:\\Users\\Admin\\myprojects\\banking_system\\bank_project', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\python39.zip',
>>  
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\DLLs', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\lib', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39', 
>> 'C:\\Users\\Admin\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages']
>>  
>>
>> Server time: 
>> Mon, 21 Aug 2023 08:44:34 +
>>
>> On Saturday, August 19, 2023 at 10:49:13 PM UTC+5:30 RANGA BHARATH JINKA 
>> wrote:
>>
>>> Hi,
>>>
>>> Try changing DOB to small letters dob and run the migrations again. 
>>>
>>> All the best 
>>>
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> Cell: 9110334114
>>> 
>>>
>>> On Sat, 19 Aug 2023, 9:18 pm ivan harold,  wrote:
>>>

 https://stackoverflow.com/questions/68269165/why-django-is-not-detecting-my-table-column

 Try reading this article, it may help you.

 On Saturday, August 19, 2023 at 3:05:57 AM UTC+8 meenu loranz wrote:

> from django.contrib.auth.models import User
> from django.db import models
> from django.urls import reverse
> # Create your models here.
>
> class bank(models.Model):
> name = models.CharField(max_length=255)
> DOB = models.DateField()
> age = models.IntegerField()
> gender = models.CharField(max_length=10)
> phone_no = models.CharField(max_length=10)
> mail_id = models.EmailField(max_length=25)
> address = models.CharField(max_length=255)
> district = models.CharField(max_length=100)
> branch = models.CharField(max_length=100)
> account_type = models.CharField(max_length=100)
> # materials_provided = models.CharField(max_length=100)
>
>
> def __str__(self):
> return self.name
>
> This is my model.py page. And i can see this table and all fields in 
> my database. But while running show me the operational error that no 
> column 
> named DOB. How can i fix this?
>
>
 -- 
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/1aaf9e41-e11c-43bb-bda9-17b609814059n%40googlegroups.com
  
 
 .

>>>
>> -- 
>> 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...@googlegroups.com.
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/3166bd2f-a556-49ce-9813-6794a3aac838n%40googlegroups.com
>>  
>> 
>> .
>>
>>
>>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/73b81116-7691-421e-b783-7be57b5e12ben%40googlegroups.com.


Re: Connect::: frontend react and backend django

2023-08-23 Thread Kani Sbt
sorry sir , the problem is i need to connect the font end to backend ,

On Wed, 23 Aug 2023 at 15:39, 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> wrote:

> On 23/08/2023 11.57, Kani Sbt wrote:
> > HI sir ,
> > Please Help me to how to solve this problem ,
> >
>
> You forgot to mention what the problem is. That makes it very hard for
> anyone to help you solve it.
>
> Kind regards,
> Kasper Laudrup
>
> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/09e8df4d-9d4a-dbf1-4574-47ec9ddfb08e%40stacktrace.dk
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTT_VjygH4xncGZDkYG7LqHR_aOQ8z%3DwcAkvm0S1S3xaRA%40mail.gmail.com.


Re: Connect::: frontend react and backend django

2023-08-23 Thread Kani Sbt
where i connect the domain front end and backend domain 


On Wednesday, 23 August 2023 at 15:27:59 UTC+5:30 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 = Path(__file__).resolve().parent.parent
>
>
> SECRET_KEY = 
> 'django-insecure-ihofv8tmht)!q**8efqqr1t+#(a$71s080zs^x*s#w5#sx!4'
>
> DEBUG = True
>
> ALLOWED_HOSTS = ['*']
>
>
> # Application definition
> THIRD_PARTY_APPS = (
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'rest_framework',
> 'corsheaders',
> 'rest_framework.authtoken',
> 'rest_framework_simplejwt.token_blacklist',
> 'drf_yasg',
> 'import_export', # import and export db data
>
> 'django_crontab', # periodical task trigger
> 'dbbackup',  # django-dbbackup
> 'django_celery_beat',
> 'django_extensions',
> # 'storages',
> # 'gdstorage'
> 
> 
> )
>
> OUR_APPS = (
> 'employee',
> 'configuration',
> 'attendance',
> 'audit',
> 'master',
> )
>
> INSTALLED_APPS = OUR_APPS + THIRD_PARTY_APPS
>
> MIDDLEWARE = [
> 'server.middleware.UserIpMiddleware',
> 'django.middleware.security.SecurityMiddleware',
> 'django.contrib.sessions.middleware.SessionMiddleware',
> "corsheaders.middleware.CorsMiddleware",
> 'django.middleware.common.CommonMiddleware',
> 'django.middleware.csrf.CsrfViewMiddleware',
> 'django.contrib.auth.middleware.AuthenticationMiddleware',
> 'django.contrib.messages.middleware.MessageMiddleware',
> 'django.middleware.clickjacking.XFrameOptionsMiddleware',
> ]
>
> ROOT_URLCONF = 'server.urls'
>
> TEMPLATES = [
> {
> 'BACKEND': 'django.template.backends.django.DjangoTemplates',
> 'DIRS': [BASE_DIR / 'templates'],
> 'APP_DIRS': True,
> 'OPTIONS': {
> 'context_processors': [
> 'django.template.context_processors.debug',
> 'django.template.context_processors.request',
> 'django.contrib.auth.context_processors.auth',
> 'django.contrib.messages.context_processors.messages',
> ],
> },
> },
> ]
>
> # WSGI_APPLICATION = 'server.wsgi.application'
> ASGI_APPLICATION = 'server.asgi.application'
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': 'sbthrmodule_y0ltln',
>  'USER': 'sbthrmodule_mmsv7',
> 'PASSWORD': '17mBxjt6sercIAyw',
> 'HOST': 'localhost',
> 'PORT': '3306',
> },
> 'attendance_db': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'skylab',
> 'USER': 'admin',
> 'PASSWORD': 'kJsgwek8488!ghf^$%',
> 'HOST': 'spt-hrm-db.cdhbi944avx7.ap-south-1.rds.amazonaws.com',
> 'PORT': '3306',
> },
> }
>
>
> AUTH_PASSWORD_VALIDATORS = [
> {
> 'NAME': 
> 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
> },
> {
> 'NAME': 
> 'django.contrib.auth.password_validation.MinimumLengthValidator',
> },
> {
> 'NAME': 
> 'django.contrib.auth.password_validation.CommonPasswordValidator',
> },
> {
> 'NAME': 
> 'django.contrib.auth.password_validation.NumericPasswordValidator',
> },
> ]
>
>
>
> LANGUAGE_CODE = 'en-us'
>
> TIME_ZONE =  'UTC'
>
> USE_I18N = True
>
> USE_TZ = True
>
>
>
> STATIC_URL = '/static/'
> MEDIA_URL = '/media/'
> # STATICFILES_DIRS = os.path.join(BASE_DIR, "static"),
>
> if DEBUG:
> STATIC_ROOT = os.path.join(BASE_DIR,'static')
> MEDIA_ROOT =  os.path.join(BASE_DIR, 'media') 
> else:
> STATIC_ROOT = '/var/www/server/static/'
> MEDIA_ROOT =  '/var/www/server/media/' 
>
> DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
> AUTH_USER_MODEL = 'configuration.User'
>
> CORS_ORIGIN_ALLOW_ALL = True
> CORS_ORIGIN_WHITELIST = (
> 'http://localhost:3000',
> 'http://127.0.0.1:3000',
> 'https://sbthrmodule.in',
> "https://sbthrmodule.in;,
> 'http://hrmodule.sbthrmodule.in:8084',
>'http://hrmodule.sbthrmodule.in:8084',
> 'http://127.0.0.1:8000',
> )
> # CORS_ALLOW_CREDENTIALS = True
>
> CSRF_TRUSTED_ORIGINS = ['http://127.0.0.1:8000',"http://localhost:3000;,'
> https://

Connect::: frontend react and backend django

2023-08-23 Thread Kani Sbt
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 = Path(__file__).resolve().parent.parent


SECRET_KEY = 
'django-insecure-ihofv8tmht)!q**8efqqr1t+#(a$71s080zs^x*s#w5#sx!4'

DEBUG = True

ALLOWED_HOSTS = ['*']


# Application definition
THIRD_PARTY_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'corsheaders',
'rest_framework.authtoken',
'rest_framework_simplejwt.token_blacklist',
'drf_yasg',
'import_export', # import and export db data

'django_crontab', # periodical task trigger
'dbbackup',  # django-dbbackup
'django_celery_beat',
'django_extensions',
# 'storages',
# 'gdstorage'


)

OUR_APPS = (
'employee',
'configuration',
'attendance',
'audit',
'master',
)

INSTALLED_APPS = OUR_APPS + THIRD_PARTY_APPS

MIDDLEWARE = [
'server.middleware.UserIpMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
"corsheaders.middleware.CorsMiddleware",
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'server.urls'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [BASE_DIR / 'templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]

# WSGI_APPLICATION = 'server.wsgi.application'
ASGI_APPLICATION = 'server.asgi.application'

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'sbthrmodule_y0ltln',
 'USER': 'sbthrmodule_mmsv7',
'PASSWORD': '17mBxjt6sercIAyw',
'HOST': 'localhost',
'PORT': '3306',
},
'attendance_db': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'skylab',
'USER': 'admin',
'PASSWORD': 'kJsgwek8488!ghf^$%',
'HOST': 'spt-hrm-db.cdhbi944avx7.ap-south-1.rds.amazonaws.com',
'PORT': '3306',
},
}


AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 
'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]



LANGUAGE_CODE = 'en-us'

TIME_ZONE =  'UTC'

USE_I18N = True

USE_TZ = True



STATIC_URL = '/static/'
MEDIA_URL = '/media/'
# STATICFILES_DIRS = os.path.join(BASE_DIR, "static"),

if DEBUG:
STATIC_ROOT = os.path.join(BASE_DIR,'static')
MEDIA_ROOT =  os.path.join(BASE_DIR, 'media') 
else:
STATIC_ROOT = '/var/www/server/static/'
MEDIA_ROOT =  '/var/www/server/media/' 

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
AUTH_USER_MODEL = 'configuration.User'

CORS_ORIGIN_ALLOW_ALL = True
CORS_ORIGIN_WHITELIST = (
'http://localhost:3000',
'http://127.0.0.1:3000',
'https://sbthrmodule.in',
"https://sbthrmodule.in;,
'http://hrmodule.sbthrmodule.in:8084',
   'http://hrmodule.sbthrmodule.in:8084',
'http://127.0.0.1:8000',
)
# CORS_ALLOW_CREDENTIALS = True

CSRF_TRUSTED_ORIGINS = 
['http://127.0.0.1:8000',"http://localhost:3000;,'https://sbthrmodule.in',
"https://sbthrmodule.in;,
'http://hrmodule.sbthrmodule.in/',
"http://hrmodule.sbthrmodule.in/","http://127.0.0.1:3000;]

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
],
'DEFAULT_RENDERER_CLASSES': [
"rest_framework.renderers.JSONRenderer",
"rest_framework.renderers.BrowsableAPIRenderer",
],
'DEFAULT_PAGINATION_CLASS': 
'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 10,
}


SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': timedelta(minutes=30),
'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
'ROTATE_REFRESH_TOKENS': True,
'BLACKLIST_AFTER_ROTATION': True,
'AUTH_HEADER_TYPES': ('Bearer','Token', ),
'AUTH_TOKEN_CLASSES': ('rest_framework_simplejwt.tokens.AccessToken', ),
}

EMAIL_ACTIVE = False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST_USER = ''

Re: how to solve please help me

2023-08-10 Thread Kani Sbt
i solved that , i deleted all the databases and makemigrations and migrate
and all was done good

On Thu, 10 Aug 2023 at 18:12, Mz Gz  wrote:

> Maybe you referenced another model in your model and the referenced model
> is no more there or its name changed
>
> On Thu, 10 Aug 2023, 2:10 pm Kani Sbt,  wrote:
>
>> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
>> admin.0001_initial is applied before its dependency lottyapp.0001_initial
>> on database 'default'.
>>
>> --
>> 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 this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> --
> 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 this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHV4E-cVm62sm_fjKMeLi0J-U9qaTyM6OSNA94%3D6TyqrppvWtw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTQY3Yy_h74_dJ54wHQtxtRRMksFM3VppaGY3SjxRrXdHQ%40mail.gmail.com.


how to solve please help me

2023-08-10 Thread Kani Sbt
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration 
admin.0001_initial is applied before its dependency lottyapp.0001_initial 
on database 'default'.

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a80ac299-116f-473d-905f-cbc7943513cen%40googlegroups.com.


When i Host i ger=t this error ,i couldn't solve it help me please

2023-08-01 Thread Kani Sbt
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/__init__.py",
 
line 121, in Connect
return Connection(*args, **kwargs)
   ^^^
  File 
"/home/sbthrmodule/public_html/venv/lib/python3.11/site-packages/MySQLdb/connections.py",
 
line 193, in __init__
super().__init__(*args, **kwargs2)
TypeError: 'driver' is an invalid keyword argument for connect()

-- 
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 this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0e4c935b-7246-45c9-8596-2730e4bf39een%40googlegroups.com.