Re: formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
* Tim Johnson [190511 11:20]: > django 2.1.5 with python 3.7.2 > > I have a models.py class as follows: > class Article(models.Model): > title = models.CharField(max_length=255,) > > And I want to override the rendered default size attribute to 100 in > the input/text form field. >

formfield_overrides doesn't work

2019-05-11 Thread Tim Johnson
django 2.1.5 with python 3.7.2 I have a models.py class as follows: class Article(models.Model): title = models.CharField(max_length=255,) And I want to override the rendered default size attribute to 100 in the input/text form field. the template rendering is done as follows

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Jani Tiainen
Hi, After all it's just HTML and CSS you need and you can make responsive layouting. One quite common CSS library is Bootstrap that allows rather easily to build layouts that works across the various sized devices. Of course you can go with any JS framework if you're planning to build single

Re: problems with mysql client

2019-05-11 Thread Jorge Gimeno
Rob, On the off chance you haven't seen it, I found a Stack Overflow question on this: https://stackoverflow.com/questions/25459386/mac-os-x-environmenterror-mysql-config-not-found. Unfortunately, I don't know Mac OS all that well to offer more help than that. -Jorge On Sat, May 11, 2019 at

Re: problems with mysql client

2019-05-11 Thread Rob Gmail
Mac OS Rob 203-671-6514 Sent from my mobile device, please excuse the typos. > On May 11, 2019, at 11:42 AM, Jorge Gimeno wrote: > > > >> On Sat, May 11, 2019 at 8:16 AM Rob W wrote: >> for my django project, we are using mysql. >> >> no matter how i try to install it, python-mysqldb,

Re: problems with mysql client

2019-05-11 Thread Jorge Gimeno
On Sat, May 11, 2019 at 8:16 AM Rob W wrote: > for my django project, we are using mysql. > > no matter how i try to install it, python-mysqldb, or just pip install > mysqlclient, it fails. > > i've installed mysqlconnector, i've tried everything. > > any suggestions ? > > > Collecting

problems with mysql client

2019-05-11 Thread Rob W
for my django project, we are using mysql. no matter how i try to install it, python-mysqldb, or just pip install mysqlclient, it fails. i've installed mysqlconnector, i've tried everything. any suggestions ? Collecting mysqlclient Downloading

HOW TO INTEGRATE ITUNE MUSIC API ON MY WEBSITE

2019-05-11 Thread Edward Victorhez
HOW TO INTEGRATE ITUNE MUSIC API ON MY WEBSITE -- 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

Re: Can not render dynamic changing string from views.py to template form page

2019-05-11 Thread Ravi Kumar
Hai I think you have to return jsonresponse in views Inorder to do it turn it data into json using json package and it has a method like dumps or loads and return data On Sat 11 May, 2019, 7:58 AM Samaresh Singh, wrote: > I can print the prod_name inside the views.py but cannot pass that >

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Luqman Jr
Between Angular and React which one is the best to be used with Django? On 11 May 2019, 10:38 +0300, Balaji Shetty , wrote: > HiĀ  Nick Sarbicki > > Thank You very much for your reply. > May I know which framework is to be learned for necessary implementation?. > It should be easy to earn with help

{ "non_field_errors": [ "No data provided" ] } error during a post method.

2019-05-11 Thread Arun Kumar Singamasetty
##from file serilaizers.py### from rest_framework import serializers from .models import Article # class ArticleSerializer(serializers.Serializer): # title = serializers.CharField(max_length=120) # description = serializers.CharField() # body =

Re: Can not render dynamic changing string from views.py to template form page

2019-05-11 Thread Najmath Ummer
In views return as Jsonresponse return JsonResponse(context_dict,safe=False) And in template You can log into success of ajax. And if it is still not working I will show you an example code. On Sat, 11 May 2019 at 7:58 AM, Samaresh Singh wrote: > I can print the prod_name inside the views.py

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Balaji Shetty
Hi Nick Sarbicki Thank You very much for your reply. May I know which framework is to be learned for necessary implementation?. It should be easy to earn with help support. On Sat, May 11, 2019 at 12:40 PM Nick Sarbicki wrote: > Hi, > > Django is completely naive to whether a frontend is

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Nick Sarbicki
Hi, Django is completely naive to whether a frontend is mobile friendly or not. You can use react or angular, you can also use many other frontend frameworks. Django can work with all frontend frameworks. The choice is entirely up to you. On Sat, 11 May 2019, 08:04 Balaji Shetty, wrote: > Hi

How to make Django Project Mobile Compatible

2019-05-11 Thread Balaji Shetty
Hi How can i make my Django Project view Mobile Compatible. Should i use Angular JS / React . Please let me know. Thanks in Advance -- *Mr. Shetty Balaji S.Asst. ProfessorDepartment of Information Technology,* *SGGS Institute of Engineering & Technology, Vishnupuri, Nanded.MH.India*

Re: Static files won't match the path given

2019-05-11 Thread Rookies DJ
Dear Anirudh Jain Thank you for reply Really, apprentice it Yes we run collectstaitc command And we try within setting.py files Set path static_root/url as the same As for web server software we using apache not nigx. I apologize for not including this information Really appreciate if

Re: Static files won't match the path given

2019-05-11 Thread Mike Dewhirst
Have you used manage.py collectstatic? Connected by Motorola Rookies DJ wrote: >I apologise, I'm a hardware engineer, I'm not very familiar with coding; I'm >only on Django for the past 5 months. (under my boss order) > > >I had managed to develop and establish a Django App, and manage to