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
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:/
OK thank you. Will you please tell me how to call shell in Pycharm on Mac.
I've been searching for it so long unfortunately couldn't make it yet.
On Wednesday, August 15, 2018 at 11:45:38 PM UTC+5:30, Julio Biason wrote:
>
> Hi Vikrant,
>
> Is that the code of your mode
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
.CharField('artist',max_length=50,primary_key=True)
year_formed=models.PositiveIntegerField()
class Album(models.Model):
name=models.CharField('album',max_length=50)
artist=models.ForeignKey(Artist,on_delete=models.PROTECT)
from polls.models import Artist
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
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
year_formed=models.PositiveIntegerField()
class Album(models.Model):
name=models.CharField('album',max_length=50)
artist=models.ForeignKey(Artist,on_delete=models.PROTECT)
from polls.models import Artist
newartist=Artist(name='Vikrant',year_formed=1985)
newartist.save()
artist=A
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
solve it?
Need Help,
Vikrant
--
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 post to this gr
psycopg2 source and install by command sudo python
setup.py install in pyscopg2 source directory.
If you have any questions let me know.
Vikrant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users&q
Recently stumbled across seaside and rails. This is very interesting 2
different paradigms of web programming. Although I like django more
then rails, I couldn't stop appreciating the work done on seaside. So
in my view django is very good for content kind of web application and
seaside is good fo
of it.
Thanks
with best regards,
Vikrant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this g
24 matches
Mail list logo