12:32 PM, mazz ahmed wrote:
>
>
> On Fri, Aug 17, 2018 at 11:30 AM, mazz ahmed <mailto:mazzahm...@gmail.com>> wrote:
> it is related to your database configure in the setting.py
>
> On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta <mailto:wikigupt...@gmail.c
;STRICT_TRANS_TABLES'",
> },
> 'TEST': {
> 'CHARSET': 'utf8',
> }
> },
> }
>
>
> On Fri, Aug 17, 2018 at 11:33 AM, Vikrant Gupta <mailto:wikigupt...@gmail.com>> wrote:
>
x27;USER': CONFIG.DB_USER_NAME,
> 'PASSWORD': CONFIG.DB_PASSWORD,
> 'HOST': CONFIG.DB_HOST,
> 'PORT': CONFIG.DB_PORT,
> 'OPTIONS': {
> 'init_command': "SET sql_mode='STRICT_TRANS_TABL
2018 at 11:30 AM, mazz ahmed <mailto:mazzahm...@gmail.com>> wrote:
> it is related to your database configure in the setting.py
>
> On Fri, Aug 17, 2018 at 11:28 AM, Vikrant Gupta <mailto:wikigupt...@gmail.com>> wrote:
> I tried it. Showing following error…
>
For example ?
> On Aug 17, 2018, at 11:57 AM, mazz ahmed wrote:
>
> this is an error in your install apps
> naming the app should be unique
>
> On Fri, Aug 17, 2018 at 11:25 AM, Vikrant Gupta <mailto:vikrantgupta.v...@gmail.com>> wrote:
> I tried it too… But
ibrary/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/protocol.py",
line 220, in check_error
err.raise_mysql_exception(self._data)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pymysql/err.p
sick of this error... what to do?
antuptasMBP:New_Django vikrantgupta$ python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 15, in
execute_from_command_line(sys.argv)
File
"/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/
I'm trying to migrate two Classes in Django using Pycharm. The error is as
follow
python manage.py makemigrations --name initial polls
File "manage.py", line 16
)from exc
^
SyntaxError: invalid syntax
How to solve this error?
and classes created are...
class student(models.Model)
Hello Ruban,
Your code may be something like this
var=‘d’ #input from HTML
Ans=models.objects.get(name=var)
Print(Ans.batch)
By,
Vikrant
> On Aug 16, 2018, at 4:30 PM, ruban bharath wrote:
>
> Name batch
> a one
> b two
> c
What’s the code for importing pymysql database in Django manage.py ?
> On Aug 15, 2018, at 6:28 PM, Shashank Parekh
> wrote:
>
> Can you post your apps.py file?
>
> On Wednesday, August 15, 2018 at 6:22:34 PM UTC+5:30, Vikrant Gupta wrote:
> I'm trying to get
I did according to documentation. but couldn't able to do it? It'll be
better for me if you just give me an example of my uploaded code. Thank you!
On Wednesday, August 15, 2018 at 11:40:46 PM UTC+5:30, Mikhailo Keda wrote:
>
> Are you sure it has id = 1?
>
> check the documentation -
> https:/
> database yet.
>
> If that's the case, you need to mode the `newartist` and everything else
> to a view to actually do that or call it in the shell.
>
> On Wed, Aug 15, 2018 at 9:48 AM, Vikrant Gupta > wrote:
>
>> I'm trying to get a name from a column. th
Thank you so much for patiently explanation on my question. I’ll try to do it.
With thanks,
Vikrant
> On Aug 15, 2018, at 10:16 PM, Kasper Laudrup wrote:
>
> Hi Vikrant,
>
> On 15/08/2018 15.11, Vikrant Gupta wrote:
>> Sure. May I know what’s the reason not to use in mod
Yeah... Here it's
from django.apps import AppConfig
class PollsConfig(AppConfig):
name = 'polls'
On Wednesday, August 15, 2018 at 7:12:50 PM UTC+5:30, Shashank Parekh wrote:
>
> Can you post your apps.py file?
>
> On Wednesday, August 15, 2018 at 6:22:34 PM UT
I'm trying to get a name from a column. the code is as following...
but got an error by using get(id=1) as shown in screenshot.
I'm using Django 2.1 and Python version 3.7 on Pycharm.
from django.db import models
# Create your models here.
class Artist(models.Model):
name=models.CharField('a
Sure. May I know what’s the reason not to use in model code?
So How can I develop my project?
With thanks ,
Vikrant
> On Aug 15, 2018, at 6:38 PM, Jason wrote:
>
> I suggest you do that in the django shell in the terminal, not in the model
> code.
>
> --
> You received this message becaus
Try the following steps, hope it will workout...
1. Right click on Project folder
2. Open Command Prompt here.
3. and Type 'python manage.py makemigrations --name initial polls' (in
place of polls , you can put your application name)
But remember before step 3. 'polls' should be added in INSTALLE
I'm trying to get a name from a column named Artist. But got an error in
using get().
The code is as follows...
from django.db import models
# Create your models here.
class Artist(models.Model):
name=models.CharField('artist',max_length=50,primary_key=True)
year_formed=models.Positive
Thank you so much ! I got it.
On Wednesday, August 15, 2018 at 4:55:00 PM UTC+5:30, Jason wrote:
>
> that error means you haven't added your django application name to the
> INSTALLED_APPS dict in your project settings.
>
--
You received this message because you are subscribed to the Google Gro
How to add the application name to Installed apps dict?
On Wednesday, August 15, 2018 at 4:55:00 PM UTC+5:30, Jason wrote:
>
> that error means you haven't added your django application name to the
> INSTALLED_APPS dict in your project settings.
>
--
You received this message because you are su
I'm using Django with pymysql. Having troubles in makemigrations in
terminal. I did right_click on the project name-> open in Terminal-> Type
"python manage.py makemigrations --name initial app". Then it showed me the
error. I attached the screenshot of the error. How can I solve it?
Need Help,
21 matches
Mail list logo