Re: Git Hub Project

2021-08-10 Thread Rana Zain
Thank you very much for your kind words. I am facing this errors :

> ',' or ')' expected
> Unexpected indent
> Statement expected, found Py:DEDENT

for the last 2,3 days. Kindly help me out.


On Monday, August 9, 2021 at 5:43:06 PM UTC+5 Kasper Laudrup wrote:

> On 09/08/2021 14.24, Rana Zain wrote:
> > 
> > Thank you so much everyone. It's work.
> > 
> > I have another problem. I am facing this issue in Pycharm .  I tried
> > spaces & tabs.
> > 
> > Error is :"Unindent does not match any outer indentation level""
>
> Python uses indentation for scoping unlike most other programming
> languages. That is very important and basic knowledge and doesn't have
> anything to do with Pycharm.
>
> I would suggest you start by finding a tutorial, book or similar on
> Python for absolute beginners and then take it slowly from there.
>
> A quick search showed this:
>
> https://python.land/python-tutorial
>
> But others might have some better suggestions.
>
> Good luck on learning Python. It's a nice and very forgiving language so
> you'll make progress very quickly, but like with most other things, you
> do need some amount of patience to get started.
>
> 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/94bde1d2-ba4e-480e-8ef6-f71f1626a88en%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Benjamin Schollnick
> Thank you very much for your kind words. I am facing this errors :
> 
> > ',' or ')' expected
> > Unexpected indent
> > Statement expected, found Py:DEDENT
> 
> for the last 2,3 days. Kindly help me out.

You need to share your code.

Pycharm should be dropping you exactly on the line that is resulting in this 
error.

Without it, we are guessing.

- Benjamin

> On Aug 10, 2021, at 8:03 AM, Rana Zain  wrote:
> 
> 
> 
> On Monday, August 9, 2021 at 5:43:06 PM UTC+5 Kasper Laudrup wrote:
> On 09/08/2021 14.24, Rana Zain wrote: 
> > 
> > Thank you so much everyone. It's work. 
> > 
> > I have another problem. I am facing this issue in Pycharm .  I tried 
> > spaces & tabs. 
> > 
> > Error is :"Unindent does not match any outer indentation level"" 
> 
> Python uses indentation for scoping unlike most other programming 
> languages. That is very important and basic knowledge and doesn't have 
> anything to do with Pycharm. 
> 
> I would suggest you start by finding a tutorial, book or similar on 
> Python for absolute beginners and then take it slowly from there. 
> 
> A quick search showed this: 
> 
> https://python.land/python-tutorial  
> 
> But others might have some better suggestions. 
> 
> Good luck on learning Python. It's a nice and very forgiving language so 
> you'll make progress very quickly, but like with most other things, you 
> do need some amount of patience to get started. 
> 
> 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/94bde1d2-ba4e-480e-8ef6-f71f1626a88en%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/28357425-0375-41AC-96C4-B033508132DD%40schollnick.net.


Each user will have a subdomaine (username.domaine.com) + the possibility to add a custom domaine (ustomUserDomaine.com) ??

2021-08-10 Thread Pro Boy


Hey everybody, I have a question and I need your help.

Basically what am creating is a platform which is simillar to Shopify, it's 
simillar because each user will have his own profile at a subdomaine: 
user.domaine .com, also I want to give the user the possibility to link his 
own custom domain userDomaine .com, so instead of the subdomaine, he will 
have a custom domain linking to his profile, of couse by adding the CNAMS.

How can I achieve all this ?? any infos ? any tutorials ? any packages that 
will help ??

thank you in advance.

---

Some one commented on Reddit:

Similar to what I did in GoNevis.com .

Something like https://pypi.org/project/django-hosts/ should help.

Basically:

   1. 
   
   DNS record to *.domain.com to domain.com
   2. 
   
   Middleware to catch the HOSTNAME and lookup your db to get the right 
   user/domain.
   
That's mostly the idea.

But I didnt get it, any explanations please of what he said ? if you share 
a link to titorials that would would be awesome.

-- 
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/00e84baa-052a-4173-87c0-365879e13485n%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Ryan Nowakowski
You might have mixed tabs and spaces. PEP8 standard is 4 spaces per level of 
indentation, IIRC.

On August 9, 2021 7:24:56 AM CDT, Rana Zain  wrote:
>
>Thank you so much everyone. It's work.
>
>I have another problem. I am facing this issue in Pycharm .  I tried
>spaces 
>& tabs.
>
>Error is :"Unindent does not match any outer indentation level""
>On Thursday, August 5, 2021 at 11:15:27 AM UTC+5 satyajit...@gmail.com 
>wrote:
>
>> what exactly you're trying to do?
>>
>> On Wed, Aug 4, 2021 at 6:41 PM Rana Zain 
>wrote:
>>
>>> Hi,
>>> Can anybody help me in running git clone django Project?
>>>
>>> -- 
>>>
>> 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/425c8297-2097-4952-b2ac-3fa299ff6011n%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/d99ee9ab-38f4-4ca7-9d9c-2a2301916b2fn%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/73A00DD0-2C21-49B4-B854-281153AD3CCC%40fattuba.com.


python manage.py magrate gives the below error with SQL SERVER (Please help)

2021-08-10 Thread Vikram Gajjala
SQL Server 2019
Python 3.9.6
pip 21.2.3
python -m django --version 3.2.6

asgiref  3.4.1
astroid  2.6.6
colorama 0.4.4
Django   3.2.6
django-mssql-backend 2.8.1
django-pyodbc1.1.3
django-tastypie  0.14.3
isort5.9.3
lazy-object-proxy1.6.0
mccabe   0.6.1
pip  21.2.3
pylint   2.9.6
pyodbc   4.0.31
python-dateutil  2.8.2
python-mimeparse 1.6.0
pytz 2021.1
setuptools   56.0.0
six  1.16.0
sqlparse 0.4.1
toml 0.10.2
wrapt1.12.1


(mysite) C:\Python_Vik\mysite\myfirstsite>*python manage.py migrate*
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, polls, sessions
Running migrations:
  Applying polls.0004_choice_question...Traceback (most recent call last):
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
82, in _execute
return self.cursor.execute(sql)
  File "C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\base.py", 
line 553, in execute
return self.cursor.execute(sql, params)
pyodbc.ProgrammingError: ('42S01', "[42S01] [Microsoft][ODBC Driver 17 for 
SQL Server][SQL Server]There is already an object named 'polls_question' in 
the database. (2714) (SQLExecDirectW)")

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Python_Vik\mysite\myfirstsite\manage.py", line 22, in 
main()
  File "C:\Python_Vik\mysite\myfirstsite\manage.py", line 18, in main
execute_from_command_line(sys.argv)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\__init__.py", 
line 419, in execute_from_command_line
utility.execute()
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\__init__.py", 
line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", 
line 354, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", 
line 398, in execute
output = self.handle(*args, **options)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", 
line 89, in wrapped
res = handle_func(*args, **kwargs)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\commands\migrate.py",
 
line 244, in handle
post_migrate_state = executor.migrate(
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", 
line 117, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, 
fake_initial=fake_initial)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", 
line 147, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, 
fake_initial=fake_initial)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", 
line 227, in apply_migration
state = migration.apply(state, schema_editor)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\migration.py", 
line 126, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, 
project_state)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\operations\models.py",
 
line 92, in database_forwards
schema_editor.create_model(model)
  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\schema.py", line 
809, in create_model
self.execute(sql, params or None)
  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\schema.py", line 
872, in execute
cursor.execute(sql, params)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
98, in execute
return super().execute(sql, params)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
66, in execute
return self._execute_with_wrappers(sql, params, many=False, 
executor=self._execute)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
75, in _execute_with_wrappers
return executor(sql, params, many, context)
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
84, in _execute
return self.cursor.execute(sql, params)
  File "C:\Python_Vik\mysite\lib\site-packages\django\db\utils.py", line 
90, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 
82, in _execute
return self.cursor.execute(sql)
  File "C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\base.py", 
line 553, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: ('42S01', "[42S01] [Microsoft][ODBC 
Driver 17 for SQL Server][SQL Server]There is already an object named 
'polls_q

Re: Git Hub Project

2021-08-10 Thread Rana Zain
"""
Settings and configuration for Django.

Read values from the module specified by the DJANGO_SETTINGS_MODULE 
environment
variable, and then from django.conf.global_settings; see the 
global_settings.py
for a list of all possible variables.
"""

import importlib
import os
import time
import traceback
import warnings
from pathlib import Path

import django
from django.conf import global_settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.deprecation import RemovedInDjango40Warning
from django.utils.functional import LazyObject, empty

ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE"

PASSWORD_RESET_TIMEOUT_DAYS_DEPRECATED_MSG = (
'The PASSWORD_RESET_TIMEOUT_DAYS setting is deprecated. Use '
'PASSWORD_RESET_TIMEOUT instead.'
)

DEFAULT_HASHING_ALGORITHM_DEPRECATED_MSG = (
'The DEFAULT_HASHING_ALGORITHM transitional setting is deprecated. '
'Support for it and tokens, cookies, sessions, and signatures that use '
'SHA-1 hashing algorithm will be removed in Django 4.0.'
)


class SettingsReference(str):
"""
String subclass which references a current settings value. It's treated as
the value in memory but serializes to a settings.NAME attribute reference.
"""
def __new__(self, value, setting_name):
return str.__new__(self, value)

def __init__(self, value, setting_name):
self.setting_name = setting_name


class LazySettings(LazyObject):
"""
A lazy proxy for either global Django settings or a custom settings object.
The user can manually configure settings prior to using them. Otherwise,
Django uses the settings module pointed to by DJANGO_SETTINGS_MODULE.
"""
def _setup(self, name=None):
"""
Load the settings module pointed to by the environment variable. This
is used the first time settings are needed, if the user hasn't
configured settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
desc = ("setting %s" % name) if name else "settings"
raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
"You must either define the environment variable %s "
"or call settings.configure() before accessing settings."
%(desc, ENVIRONMENT_VARIABLE_django)

self._wrapped = Settings(settings_module)
def __repr__(self):
# Hardcode the class name as otherwise it yields 'Settings'.
if self._wrapped is empty:
return ''
return '' %{
'settings_module': self._wrapped.SETTINGS_MODULE
}
def __getattr__(self, name):
"""Return the value of a setting and cache it in self.__dict__."""
if self._wrapped is empty:
self._setup(name)
val = getattr(self._wrapped, name)
self.__dict__[name] = val
returnvalue
def __setattr__(self, name, value):
"""
Set the value of setting. Clear all cached values if _wrapped changes
(@override_settings does this) or clear single values when set.
"""
if name == '_wrapped':
self.__dict__.clear()
else:
self.__dict__.pop(name, None)
super().__setattr__ (name, value)


def __delattr__(self, name):
"""Delete a setting and clear it from cache if needed."""
super().__delattr__(name)

self.__dict__.pop(name, None)

def configure(self, default_settings=global_settings, **options):
"""
Called to manually configure the settings. The 'default_settings'
parameter sets where to retrieve any unspecified values from (its
argument must support attribute access (__getattr__)).
"""
if self._wrapped is not empty:
raise RuntimeError('Settings already configured.')
holder = UserSettingsHolder(default_settings)
for name, value in options.items():
if not name.isupper():
raise TypeError\
('Setting %r must be uppercase.' % name)
setattr(holder, name, value)
self._wrapped = holder

@staticmethod
def _add_script_prefix(value):
"""
Add SCRIPT_NAME prefix to relative paths.

Useful when the app is being served at a subpath and manually prefixing
subpath to STATIC_URL and MEDIA_URL in settings is inconvenient.
"""
# Don't apply prefix to absolute paths and URLs.
if value.startswith(('http://', 'https://', '/')):
return value
from django.urls import get_script_prefix
return '%s%s' % (get_script_prefix(), value)

@property
def configured(self):
"""Return True if the settings have already been configured."""
return self._wrapped is not empty

@property
def PASSWORD_RESET_TIMEOUT_DAYS(self):
stack = traceback.extract_stack()
# Show a warning if the setting is used outside of Django.
# Stack index: -1 this line, -2 the caller.
filename, _, _, _ = stack[-2]
if not filename.startswith(os.path.dirname(django.__file__)):
warnings.warn(
PASSWORD_RESET_TIMEOUT_DAYS_DEPRECATED_MSG,
RemovedInDjango40Warning,
stacklevel=2,
)
return self.__getattr__('PASSWORD_RESET_TIMEOUT_DAYS')

@property
def static_url (self):
return self._add_script_prefix(self.__getattr__('STATIC_URL'))

@property
def media_url (self):
return self._add_script_prefix\
(self.__getattr__('MEDIA_URL'))

class Settings:
def __init__(self, settings_module):
# update this dict from global settings (but only for ALL_CAPS settings)
for setting in dir(global_settings):
if setting.isupper():
setattr(se

Re: Git Hub Project

2021-08-10 Thread Rana Zain
@Ryan i tired many times tabs and spaces. But not work.

On Tuesday, August 10, 2021 at 6:50:41 PM UTC+5 Ryan Nowakowski wrote:

> You might have mixed tabs and spaces. PEP8 standard is 4 spaces per level 
> of indentation, IIRC.
>
>
> On August 9, 2021 7:24:56 AM CDT, Rana Zain  wrote:
>>
>>
>> Thank you so much everyone. It's work.
>>
>> I have another problem. I am facing this issue in Pycharm .  I tried 
>> spaces & tabs.
>>
>> Error is :"Unindent does not match any outer indentation level""
>> On Thursday, August 5, 2021 at 11:15:27 AM UTC+5 satyajit...@gmail.com 
>> wrote:
>>
>>> what exactly you're trying to do?
>>>
>>> On Wed, Aug 4, 2021 at 6:41 PM Rana Zain  wrote:
>>>
 Hi,
 Can anybody help me in running git clone django Project?

 -- 

>>> 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/425c8297-2097-4952-b2ac-3fa299ff6011n%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/580eb0db-31b7-4fab-b887-db69ed47e0ban%40googlegroups.com.


Re: Git Hub Project

2021-08-10 Thread Kasper Laudrup
On 10/08/2021 14.03, Rana Zain wrote:
> Thank you very much for your kind words. I am facing this errors :
>

You are more than welcome, but it seems like you didn't really read what
I wrote.

>From your last question and your follow up question here, it seems like
you should really learn the basics of programming in Python before
trying to create a Django project.

There are many things to learn and you have to start somewhere.

Did you find any useful Python tutorials for beginners?

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/d5508180-15c0-4b08-4f89-a83e14d44ae7%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Git Hub Project

2021-08-10 Thread Kasper Laudrup
On 10/08/2021 16.10, Rana Zain wrote:
> @Ryan i tired many times tabs and spaces. But not work.
>

And it never will. Don't just try. Start slowly with something simple
and everything will slowly start to make sense.

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/d58f5e38-9541-c92b-405e-ec4f78982ccf%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Git Hub Project

2021-08-10 Thread Rana Zain
I take trainings for python and work on it. Now I am a beginner on Django 
want to run Git Hub Clone this proejct. 

On Tuesday, August 10, 2021 at 7:41:13 PM UTC+5 Kasper Laudrup wrote:

> On 10/08/2021 14.03, Rana Zain wrote:
> > Thank you very much for your kind words. I am facing this errors :
> >
>
> You are more than welcome, but it seems like you didn't really read what
> I wrote.
>
> From your last question and your follow up question here, it seems like
> you should really learn the basics of programming in Python before
> trying to create a Django project.
>
> There are many things to learn and you have to start somewhere.
>
> Did you find any useful Python tutorials for beginners?
>
> 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/1dcbc906-2c8c-490c-b7a5-5318f8713f2dn%40googlegroups.com.


Re: python manage.py magrate gives the below error with SQL SERVER (Please help)

2021-08-10 Thread 'Amitesh Sahay' via Django users
check your database table though some UI. make sure that the " polls_question" 
is not there  

On Tuesday, 10 August, 2021, 07:20:42 pm IST, Vikram Gajjala 
 wrote:  
 
 SQL Server 2019Python  3.9.6pip  21.2.3python -m django --version 3.2.6
asgiref              3.4.1astroid              2.6.6colorama             
0.4.4Django               3.2.6django-mssql-backend 2.8.1django-pyodbc        
1.1.3django-tastypie      0.14.3isort                5.9.3lazy-object-proxy    
1.6.0mccabe               0.6.1pip                  21.2.3pylint               
2.9.6pyodbc               4.0.31python-dateutil      2.8.2python-mimeparse     
1.6.0pytz                 2021.1setuptools           56.0.0six                  
1.16.0sqlparse             0.4.1toml                 0.10.2wrapt                
1.12.1

(mysite) C:\Python_Vik\mysite\myfirstsite>python manage.py migrateOperations to 
perform:  Apply all migrations: admin, auth, contenttypes, polls, 
sessionsRunning migrations:  Applying polls.0004_choice_question...Traceback 
(most recent call last):  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 82, 
in _execute    return self.cursor.execute(sql)  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\base.py", line 553, 
in execute    return self.cursor.execute(sql, params)pyodbc.ProgrammingError: 
('42S01', "[42S01] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]There 
is already an object named 'polls_question' in the database. (2714) 
(SQLExecDirectW)")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):  File 
"C:\Python_Vik\mysite\myfirstsite\manage.py", line 22, in     main()  
File "C:\Python_Vik\mysite\myfirstsite\manage.py", line 18, in main    
execute_from_command_line(sys.argv)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\__init__.py", 
line 419, in execute_from_command_line    utility.execute()  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\__init__.py", 
line 413, in execute    self.fetch_command(subcommand).run_from_argv(self.argv) 
 File "C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", 
line 354, in run_from_argv    self.execute(*args, **cmd_options)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", line 
398, in execute    output = self.handle(*args, **options)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\base.py", line 
89, in wrapped    res = handle_func(*args, **kwargs)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\core\management\commands\migrate.py",
 line 244, in handle    post_migrate_state = executor.migrate(  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", line 
117, in migrate    state = self._migrate_all_forwards(state, plan, full_plan, 
fake=fake, fake_initial=fake_initial)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", line 
147, in _migrate_all_forwards    state = self.apply_migration(state, migration, 
fake=fake, fake_initial=fake_initial)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\executor.py", line 
227, in apply_migration    state = migration.apply(state, schema_editor)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\migration.py", 
line 126, in apply    operation.database_forwards(self.app_label, 
schema_editor, old_state, project_state)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\migrations\operations\models.py",
 line 92, in database_forwards    schema_editor.create_model(model)  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\schema.py", line 809, 
in create_model    self.execute(sql, params or None)  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\schema.py", line 872, 
in execute    cursor.execute(sql, params)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 98, 
in execute    return super().execute(sql, params)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 66, 
in execute    return self._execute_with_wrappers(sql, params, many=False, 
executor=self._execute)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 75, 
in _execute_with_wrappers    return executor(sql, params, many, context)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 84, 
in _execute    return self.cursor.execute(sql, params)  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\utils.py", line 90, in 
__exit__    raise dj_exc_value.with_traceback(traceback) from exc_value  File 
"C:\Python_Vik\mysite\lib\site-packages\django\db\backends\utils.py", line 82, 
in _execute    return self.cursor.execute(sql)  File 
"C:\Python_Vik\mysite\lib\site-packages\sql_server\pyodbc\base.py", line 553, 
in execute    return self.cursor.execute(sql, 
params)django.db.utils.ProgrammingError: ('42S0

Re: Git Hub Project

2021-08-10 Thread Kasper Laudrup
On 10/08/2021 16.50, Rana Zain wrote:
> I take trainings for python and work on it.

Great. Best of luck.

> Now I am a beginner on Django want to run Git Hub Clone this proejct. 
> 

I have no idea what you mean by "run Git Hub Clone this proejct" and to
be honest I'm not really sure you do either.

While the Django code is without doubt very well written, it is also far
too complex for a beginner to understand.

Once again, start with something simple and move on from there.

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/74c17158-b24a-8bff-cb95-11e9fd3a9456%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: Git Hub Project

2021-08-10 Thread Benjamin Schollnick
What editor are you using?

And it’s not spaces & Tabs, it’s one or the other.  

It has to be uniform.  

And have you looked at all at the Python Tutorial? The Python Tutorial — Python 
3.9.6 documentationhttps://docs.python.org › tutorial 


That message means that your code blocks aren’t lined up.  Usually that’s 
because you have an unseen tab, or you are off with your spacing.  But if 
everything looks fine, then it probably means you have an embedded “invisible” 
tab.

Show the code, or at least the rest of the error block.  It should show the 
line number that you need to examine.

- Benjamin



> On Aug 10, 2021, at 10:10 AM, Rana Zain  wrote:
> 
> @Ryan i tired many times tabs and spaces. But not work.
> 
> On Tuesday, August 10, 2021 at 6:50:41 PM UTC+5 Ryan Nowakowski wrote:
> You might have mixed tabs and spaces. PEP8 standard is 4 spaces per level of 
> indentation, IIRC.
> 
> 
> On August 9, 2021 7:24:56 AM CDT, Rana Zain  > wrote:
> 
> Thank you so much everyone. It's work.
> 
> I have another problem. I am facing this issue in Pycharm .  I tried spaces & 
> tabs.
> 
> Error is :"Unindent does not match any outer indentation level""
> On Thursday, August 5, 2021 at 11:15:27 AM UTC+5 satyajit...@gmail.com 
>  wrote:
> what exactly you're trying to do?
> 
> On Wed, Aug 4, 2021 at 6:41 PM Rana Zain > wrote:
> Hi,
> Can anybody help me in running git clone django Project?
> 
> -- 
> 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/425c8297-2097-4952-b2ac-3fa299ff6011n%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/580eb0db-31b7-4fab-b887-db69ed47e0ban%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/9E59954B-FAC1-49DE-83F3-57250DBA010B%40schollnick.net.


Re: Git Hub Project

2021-08-10 Thread pediah wanmi
Well truth is, django is beginner friend, I love and live python, but
django is a one step at a time programming platform. No need to hurry. Just
like u never can know when exactly u grow to become a big man so is
learning django, u never can tell when u get it all

On Tuesday, August 10, 2021, Kasper Laudrup  wrote:

> On 10/08/2021 16.50, Rana Zain wrote:
> > I take trainings for python and work on it.
>
> Great. Best of luck.
>
> > Now I am a beginner on Django want to run Git Hub Clone this proejct.
> >
>
> I have no idea what you mean by "run Git Hub Clone this proejct" and to
> be honest I'm not really sure you do either.
>
> While the Django code is without doubt very well written, it is also far
> too complex for a beginner to understand.
>
> Once again, start with something simple and move on from there.
>
> 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/74c17158-b24a-8bff-cb95-11e9fd3a9456%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/CABd3QaufVmir-FineU7xLxj2fJ6X9%2BRYgdNME7FGVOSi%3DueSAA%40mail.gmail.com.


An app that provides Django model comment migration

2021-08-10 Thread 'starryrbs' via Django users
Feature

   - Automatic migration model help_text to comment [Support customization]
   - Automatically migrate the verbose_name of the model to the table 
   comment [Support customization]
   - Provide a command to migrate the comment of the specified app

Github repo  


*pip install django-comment-migrate*

-- 
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/d2f602db-b7d2-428e-931c-0ab014cd419cn%40googlegroups.com.


Django Discord

2021-08-10 Thread Lloyd Dube
Hi everyone,

Where can I find Django on Discord?

TIA.


Regards,
~ Lloyd

-- 
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/CAH-SnCDRnmTA%3DhekzHY54wapyXrV-KhYHgxnSoKz47_HCr3n7A%40mail.gmail.com.


Re: Django Discord

2021-08-10 Thread Sebastian Jung
Hey,

This is the same question as where i can find django on telephone...

Regards

Lloyd Dube  schrieb am Di., 10. Aug. 2021, 21:34:

> Hi everyone,
>
> Where can I find Django on Discord?
>
> TIA.
>
>
> Regards,
> ~ Lloyd
>
> --
> 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/CAH-SnCDRnmTA%3DhekzHY54wapyXrV-KhYHgxnSoKz47_HCr3n7A%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/CAKGT9mzvLyJV9g1zJWzKSQkXPbva_DNQmaQGbtb2H8hCbz0uYA%40mail.gmail.com.


Re: Git Hub Project

2021-08-10 Thread Kasper Laudrup
On 10/08/2021 17.53, pediah wanmi wrote:
> Well truth is, django is beginner friend, I love and live python, but
> django is a one step at a time programming platform. No need to hurry.
> Just like u never can know when exactly u grow to become a big man so is
> learning django, u never can tell when u get it all
>

Indeed.

Django is very easy to get started with and has some of the best
documentation of any project I've seen.

That being said, I personally think it might be a good idea to at least
get some basics of Python before starting your first Django project.

It seems like Rana Zain is trying to modify the Django sources without
even knowing the basics of Python which is probably not going to get him
very far.

Then again, only he knows what he's doing and he hasn't really revealed
that, so we can only guess.

In short, it sounds like we agree :-)

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/bac6caa6-3bb2-e363-026a-c0f167101a6b%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature