Re: How to link different apps into one main app

2023-03-24 Thread Chandresh . T
Thank you MAINSTREET STUDIO!

On Fri, 24 Mar 2023 at 22:16, MAINSTREET STUDIO 
wrote:

> My thoughts on this will be not to create 2 apps but have many Rooms in
> your app and if the user register as a backend dev then in the database
> they'll be queried to the specific room and also have a function that do
> redirection to a specific room
>
> On Fri, Mar 24, 2023, 3:28 PM Chandresh . T 
> wrote:
>
>> I'm a new learner of Django, and I want to do a project, In the main app
>> a form will be given and if the person tells that he belongs to the
>> frontend or backend developing group he will be moved to that room
>> respectively.
>>
>> So I thought that I can create 2 different apps one frontend and another
>> backend then once logged in to the main app the user will be sent to the
>> respective apps room.
>>
>> I searched for how to do this on google, but there was no solution. So if
>> you guys have any ideas please help me with this.
>>
>> Thank you in advance!
>>
>> --
>> 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/1a056e9a-82c7-4267-a070-eb1119e3eceen%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/1a056e9a-82c7-4267-a070-eb1119e3eceen%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/CAJyFwGnJCEOu5xXH0n958Yjg%2BgMh05xDBOp5ziVNxeJvdKdjSA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJyFwGnJCEOu5xXH0n958Yjg%2BgMh05xDBOp5ziVNxeJvdKdjSA%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/CA%2BPOfqOYs43E%2BGbuJjxBnxTnrZGOrt%3DNWHZ7pR-gm8SRoczubg%40mail.gmail.com.


How to link different apps into one main app

2023-03-24 Thread Chandresh . T
I'm a new learner of Django, and I want to do a project, In the main app a 
form will be given and if the person tells that he belongs to the frontend 
or backend developing group he will be moved to that room respectively.

So I thought that I can create 2 different apps one frontend and another 
backend then once logged in to the main app the user will be sent to the 
respective apps room.

I searched for how to do this on google, but there was no solution. So if 
you guys have any ideas please help me with this.

Thank you in advance! 

-- 
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/1a056e9a-82c7-4267-a070-eb1119e3eceen%40googlegroups.com.


Re: Django error while running

2023-03-22 Thread Chandresh . T
I just added apps and templates, static file locations.


On Wed, 22 Mar 2023 at 17:36, Ahmad Abdulnasir Shuaib <
ahmadabdulnas...@gmail.com> wrote:

> It looks like you mistakenly alter your settings, check your
> INSTALLED_APPS in settings.py
>
> ModuleNotFoundError: No module named 'rest_frameworkdjango'
>
> There should be a comma between rest_framework and django
>
> On Wed, Mar 22, 2023, 12:18 PM Chandresh . T 
> wrote:
>
>> Hello all! This is the setting file of the project and I actually
>> installed requirement.txt already. In that it said "already installed
>> rest_framework" but while running it shows an error that no module called
>> rest_framework is installed.
>>
>> On Wed, 22 Mar 2023 at 07:20, David Nugent  wrote:
>>
>>> Any traceback with this at the end:
>>>
>>>   _bootstrap._gcd_import(name[level..], package, level)
>>>
>>> Is almost always is due to a problem with your settings INSTALLED_APPS,
>>> particularly if django\apps\registry.py Is further up the trace.
>>>
>>> A missing comma between items, perhaps?
>>>
>>> It would indeed be nice if Django would output a more sensible error
>>> message for issues like this 
>>> Hmm, an idea for a useful PR right there. Seems to be common issue
>>> (since the very next message I read in this mail list is exactly the same
>>> thing).
>>>
>>> Regards,
>>> David
>>>
>>>
>>> "Chandresh . T"  writes
>>>
>>> Recently I was running a git clone (
>>> https://github.com/divanov11/StudyBud.git)
>>>
>>> after doing required steps like migrations, etc. I started to run it by
>>> (python manage.py runserver) but I got this error.
>>>
>>> can anyone help me with this, please?
>>>
>>>
>>>
>>> --
>>> 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/em0481748f-3902-4383-be37-4f591c38c5c5%4090728edb.com
>>> <https://groups.google.com/d/msgid/django-users/em0481748f-3902-4383-be37-4f591c38c5c5%4090728edb.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/CA%2BPOfqNs%2B9ih8ehTKq%2BoyG%3DZyK70WOWi4XJidGA9OY9rt2gqwQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BPOfqNs%2B9ih8ehTKq%2BoyG%3DZyK70WOWi4XJidGA9OY9rt2gqwQ%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/CAE9AdkY%2B6vKjY2b6Ag5Xr3pbHYWGZh8FT4_7P%2BYM_EiFzbcs-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE9AdkY%2B6vKjY2b6Ag5Xr3pbHYWGZh8FT4_7P%2BYM_EiFzbcs-g%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/CA%2BPOfqNNANuQUnb34gk8XF2Dx4vKLJ24LWsn_%3D97Hfh-duvrbQ%40mail.gmail.com.


Re: Django error while running

2023-03-22 Thread Chandresh . T
Hello all! This is the setting file of the project and I actually installed
requirement.txt already. In that it said "already installed rest_framework"
but while running it shows an error that no module called rest_framework is
installed.

On Wed, 22 Mar 2023 at 07:20, David Nugent  wrote:

> Any traceback with this at the end:
>
>   _bootstrap._gcd_import(name[level..], package, level)
>
> Is almost always is due to a problem with your settings INSTALLED_APPS,
> particularly if django\apps\registry.py Is further up the trace.
>
> A missing comma between items, perhaps?
>
> It would indeed be nice if Django would output a more sensible error
> message for issues like this 
> Hmm, an idea for a useful PR right there. Seems to be common issue (since
> the very next message I read in this mail list is exactly the same thing).
>
> Regards,
> David
>
>
> "Chandresh . T"  writes
>
> Recently I was running a git clone (
> https://github.com/divanov11/StudyBud.git)
>
> after doing required steps like migrations, etc. I started to run it by
> (python manage.py runserver) but I got this error.
>
> can anyone help me with this, please?
>
>
>
> --
> 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/em0481748f-3902-4383-be37-4f591c38c5c5%4090728edb.com
> <https://groups.google.com/d/msgid/django-users/em0481748f-3902-4383-be37-4f591c38c5c5%4090728edb.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/CA%2BPOfqNs%2B9ih8ehTKq%2BoyG%3DZyK70WOWi4XJidGA9OY9rt2gqwQ%40mail.gmail.com.
"""
Django settings for studybud project.

Generated by 'django-admin startproject' using Django 3.2.7.

For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-3#av2c6nptlbbb6^muqkchu$t2+g$v!ir-f5%doocb'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

'base.apps.BaseConfig',

'rest_framework',
"corsheaders",
]

AUTH_USER_MODEL = 'base.User'

MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',

"corsheaders.middleware.CorsMiddleware",

'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'studybud.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 = 'studybud.wsgi.application'


# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}


# Password validation
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
 

Django error while running

2023-03-21 Thread Chandresh . T
Recently I was running a git clone (
https://github.com/divanov11/StudyBud.git)

after doing required steps like migrations, etc. I started to run it by
(python manage.py runserver) but I got this error.

can anyone help me with this, please?

Thanks in advance!

PS C:\Users\chand\OneDrive\Desktop\StudyBud> python manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\threading.py",
line 1016, in _bootstrap_inner
self.run()
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\threading.py",
line 953, in run
self._target(*self._args, **self._kwargs)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 64, in wrapper
fn(*args, **kwargs)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\commands\runserver.py",
line 125, in inner_run
autoreload.raise_last_exception()
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 87, in raise_last_exception
raise _exception[1]
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\core\management\__init__.py",
line 398, in execute
autoreload.check_errors(django.setup)()
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\utils\autoreload.py",
line 64, in wrapper
fn(*args, **kwargs)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\__init__.py",
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\registry.py",
line 91, in populate
app_config = AppConfig.create(entry)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\site-packages\django\apps\config.py",
line 228, in create
import_module(entry)
  File
"C:\Users\chand\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 992, in _find_and_load_unlocked
  File "", line 241, in
_call_with_frames_removed
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 992, in _find_and_load_unlocked
  File "", line 241, in
_call_with_frames_removed
  File "", line 1050, in _gcd_import
  File "", line 1027, in _find_and_load
  File "", line 1004, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'rest_frameworkdjango'

-- 
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/CA%2BPOfqPK%3Ds66GNBJPF-pBLR3BvQiy1OnMjxNjQOmFo3OVu2%2B0w%40mail.gmail.com.


How to create an registration form and generate qr code for it

2023-01-12 Thread Chandresh . T
Hi friends myself chandresh I am new Django community I have a doubt to be 
cleared ,

So I wanted to create an platform where you can register  users name, 
state, city and photo 
which would also store in Mysql database. Can anyone help me in creating 
this platform.

-- 
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/08434ec2-f7af-4e79-80dc-9c95961082bdn%40googlegroups.com.