Re: TextField

2020-01-05 Thread Abu Yusuf
No, there is no limit for textfield. But you can do the hack using this: from django.core.validators import MaxLengthValidator class Comment(models.Model): comment = models.TextField(validators=[MaxLengthValidator(200)]) -- You received this message because you are subscribed to the Google

Re: TextField

2020-01-05 Thread Abu Yusuf
No, there is no limit for textfield. But you can do the hack using this: from django.core.validators import MaxLengthValidator class Comment(models.Model): comment = models.TextField(validators=[MaxLengthValidator(200)]) On Mon, Jan 6, 2020 at 10:11 AM Mike Dewhirst wrote: > On 6/01/2020

Re: pip install Django==3.0

2019-12-02 Thread Abu Yusuf
[image: django-3.png] *They clearly mentioned here.* [image: photo] Abu Yusuf Jr. Software Engineer at Binate Solutions Ltd. A Dhaka, Bangladesh M 01828689381 <01828689381> E revelyusuf...@gmail.com W https://yusuff.dev <https://yusuff.dev> Linkedin https://www.linkedin.com/

Deploy your django app in the heroku sky

2019-11-03 Thread Abu Yusuf
Some of us are always facing issues while trying to deploy django apps to the heroku. I have a number of apps on the heroku server. Here i have written the simplest way to deploy your apps: https://yusuff.dev/blog/4/ If you find something helpful please hit a star on the git repo. Thanks. --

Re: Django Register form

2019-09-30 Thread Abu Yusuf
Share me more about your project. Can you share with me the project? [image: photo] Abu Yusuf Jr. Software Engineer at Binate Solutions Ltd. A Dhaka, Bangladesh M 01828689381 <01828689381> E revelyusuf...@gmail.com W https://yusuff.dev <https://yusuff.dev> Li

Re: Django Register form

2019-09-29 Thread Abu Yusuf
What's the Issue? [image: photo] Abu Yusuf Jr. Software Engineer at Binate Solutions Ltd. A Dhaka, Bangladesh M 01828689381 <01828689381> E revelyusuf...@gmail.com W https://yusuff.dev <https://yusuff.dev> Linkedin https://www.linkedin.com/in/yusuf-dev/ live:9151

Re: ModuleNotFoundError: No module named :

2019-09-24 Thread Abu Yusuf
share your full project here. On Tue, Sep 24, 2019 at 10:43 PM MEGA NATHAN wrote: > > > Hi. > again i change and run but same problem coming > > > > *Regards* > Meganathan G > > > > On Tue, Sep 24, 2019 at 10:32 AM Abu Yusuf > wrote: > &

Re: ModuleNotFoundError: No module named :

2019-09-23 Thread Abu Yusuf
Error in admin.py. So same here in admin.py. Before starting a django project, try to understand the architecture of it and the working flow of it. Otherwise, you can't go long away. Best Wishes, On Tue, Sep 24, 2019 at 10:32 AM Abu Yusuf wrote: > In your views.py: > from .models import

Re: ModuleNotFoundError: No module named :

2019-09-23 Thread Abu Yusuf
In your views.py: from .models import users That's it. On Tue, Sep 24, 2019 at 10:13 AM Deep Sukhwani wrote: > Are you supposed to be using a virtualenv and you don't have that > activated? > > Can you run *pip freeze | grep -i django* and share the output? > > -- > Regards > Deep L Sukhwani >

Re: TemplateDoesNotExist

2019-09-23 Thread Abu Yusuf
1. ensure you have a folder templates inside static folder 2. ensure you filled up templates_dir: 'templates' 3. ensure 'base.html' exists inside templates folder On Mon, Sep 23, 2019 at 6:40 PM yerri swamy wrote: > Hi guys, > > By using templates folder i am not getting what i am

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Most Welcome On Mon, Sep 23, 2019 at 4:03 PM Shakil Ahmmed wrote: > Thank You Bhaia <3 > > On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf > wrote: > >> yes, of course. see here: >> https://www.django-rest-framework.org/topics/html-and-forms/ >> >> >&g

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
yes, of course. see here: https://www.django-rest-framework.org/topics/html-and-forms/ On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed wrote: > Can I Return Html Template From APIView ? > > On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote: >> >> How Can i Use Those Methods

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
wrote: > Please Can You Give me some Exapmle? > > On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf > wrote: > >> Check this: >> https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview >> >> On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed

Re: Class Based View All Methods

2019-09-23 Thread Abu Yusuf
Check this: https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed wrote: > How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', > 'patch', 'delete', 'head', 'options', 'trace'] > > Example: > >

Django Multiple File Uploads for latest versions

2019-09-23 Thread Abu Yusuf
Here i have created a repo Django Multiple File Uploads for latest versions(>1.9) Check this and let me know if there have any issues. Hit star if this helps you. https://github.com/Revel109/django-multiupload-lts -- You received this message because you are subscribed to the Google Groups

Re: manage.py runserver error

2019-09-22 Thread Abu Yusuf
It's a shame to use python2 still now. Try to start your django project with virtualenvironment with python-3 version. Try to follow the standard way to get start. Everything will be fine. On Sun, Sep 22, 2019 at 10:09 AM Pawan Jha wrote: > When I run the Command "manage.py runserver" on the

Re: Showing proper data in django template

2019-09-16 Thread Abu Yusuf
On Monday, September 16, 2019 at 3:14:43 PM UTC+6, Abu Yusuf wrote: > > Hello, I have two models here: > > class Tender(models.Model): > project = models.ForeignKey(Project, verbose_name=_("Select project"), > on_delete=models.CASCADE) > name = models.CharFie

Showing proper data in django template

2019-09-16 Thread Abu Yusuf
Hello, I have two models here: class Tender(models.Model): project = models.ForeignKey(Project, verbose_name=_("Select project"), on_delete=models.CASCADE) name = models.CharField(_("Tender name"), max_length=250) value = models.FloatField(_("Tender value"), default=0, null=True, blank=

Re: Django "GET / HTTP/1.1" 200 16348" Error

2019-09-15 Thread Abu Yusuf
first, try to run makemigrations before migrate. On Fri, Sep 13, 2019 at 7:53 AM johnsi rani wrote: > while i run its shows migration error > > On Fri, Sep 13, 2019 at 1:54 AM khadim husen > wrote: > >> Run this command in terminal >> >> python manage.py migrate >> >> Then >> >> python

Re: django ecommerce multivendor

2019-09-15 Thread Abu Yusuf
You can use django-oscar. It's supporting multivendor for your e-commerce. On Sat, Sep 14, 2019 at 7:46 PM Shashank Srivastava < srishashank1...@gmail.com> wrote: > want to develop django multivendor e commerce . can anyone help me out > with models . > > -- > You received this message because

Re: Django Multiple File Upload for latest versions

2019-08-28 Thread Abu Yusuf
Thanks for your valuable feedback. I will try to fix all those. On Tue, Aug 27, 2019 at 4:46 PM Sim wrote: > here is my newbie opinion : > https://github.com/Revel109/django-multiupload-lts/issues/1 > > good luck > > On Tue, Aug 27, 2019 at 9:30 AM Abu Yusuf > wrote: &

Django Multiple File Upload for latest versions

2019-08-27 Thread Abu Yusuf
Hey there, I have checked a lot of git projects for django latest versions 'multiple file upload' but couldn't find a great one. Here i have created a repo for this: https://github.com/Revel109/django-multiupload-lts Please check this out and create issues if you have any :) This project is

Re: How can I host my application in web hosting?

2019-08-25 Thread Abu Yusuf
hoose AWS or DO. I am > from Bangladesh and suffering to choose a hosting provider in Bangladesh > where Django and Postgresql are well supported. > Would you please suggest me any company? > > Thanks. > > On Sun, Aug 25, 2019 at 11:26 AM Abu Yusuf > wrote: > >>

Re: Rest API

2019-08-25 Thread Abu Yusuf
Follow this for sorting queryset: https://stackoverflow.com/questions/2412770/good-ways-to-sort-a-queryset-django On Sun, Aug 25, 2019 at 1:51 PM Abu Yusuf wrote: > just sort it like this: > > li = ['the', 'thea', 'thecba', 'thecab', 'thebca', 'theabc'] > li.sort() > ['the',

Re: Rest API

2019-08-25 Thread Abu Yusuf
just sort it like this: li = ['the', 'thea', 'thecba', 'thecab', 'thebca', 'theabc'] li.sort() ['the', 'thea', 'theabc', 'thebca', 'thecab', 'thecba'] On Sun, Aug 25, 2019 at 12:57 PM Soumen Khatua wrote: > Hi Folks, > > I already implemented serach query parameter in my Django Rest API

Re: How can I host my application in web hosting?

2019-08-24 Thread Abu Yusuf
You people are working on django projects? Is that a startup? On Sun, Aug 25, 2019 at 11:25 AM Abu Yusuf wrote: > You are most welcome! > > On Thu, Aug 22, 2019 at 11:49 PM Wasim Rana wrote: > >> Thank you so much for your response. >> *Wasim Rana* >> >

Re: How can I host my application in web hosting?

2019-08-24 Thread Abu Yusuf
You are most welcome! On Thu, Aug 22, 2019 at 11:49 PM Wasim Rana wrote: > Thank you so much for your response. > *Wasim Rana* > > CEO and Director > *SiteFor99* > www.sitefor99.com > Cell: +880 173 406 4296 > Ring Road, Shyamoli, > Dhaka - 1207 > > > On Th

Re: User Register form not validating or returning errors.

2019-08-24 Thread Abu Yusuf
Wher is the form action? If you don't provide the form action then how can it recognize which views should be called? Set the action here: Like this. On Sat, Aug 24, 2019 at 10:34 PM Kean wrote: > Hi, > > New to Django. > I've created a user registration form, the issue is it does not run >

Re: Regarding to getting error registration page

2019-08-24 Thread Abu Yusuf
Just hit: localhost:8000/register On Sun, Aug 25, 2019 at 1:01 AM mohammad mehrani wrote: > hello > can u get github link project and i star and fork for u > > > On Tue, Aug 20, 2019 at 11:56 PM RONAK JAIN > wrote: > >> Hello Django Users >> >> >> I am trying to redirect my registration page

Re: form.is_valid() is always return false please help

2019-08-24 Thread Abu Yusuf
Some of the input fields aren't valid. We need to show the forms.py and the template code. Then it will be more clear. On Sun, Aug 25, 2019 at 1:02 AM vineeth sagar wrote: > What does form.errors show. Just see what print(form.errors) tells you. It > should be pretty obvious. > > On Sun, 25

Re: How can I host my application in web hosting?

2019-08-22 Thread Abu Yusuf
Is it a django application? Not every hosting provider provide django deployments. You can use amazon aws and digital ocean. You can do also in heroku and pythonanywhere, they are totally free. On Thu, Aug 22, 2019 at 5:47 PM Wasim Rana wrote: > Hello, I am building a web application locally in

Re: Installation of django

2019-08-22 Thread Abu Yusuf
o1bigtenor wrote: > On Thu, Aug 22, 2019 at 3:35 AM Abu Yusuf > wrote: > > > > First of all: don't use python2. It will be dead after 4 months. > > create a virtual environment: virtualenv -p /usr/bin/python3.5 venv > > then activate it: source venv/bin/activate >

Re: Installation of django

2019-08-22 Thread Abu Yusuf
First of all: don't use python2. It will be dead after 4 months. create a virtual environment: virtualenv -p /usr/bin/python3.5 venv then activate it: source venv/bin/activate Then run pip install django. That's it. On Wed, Aug 21, 2019 at 2:38 AM herve bineli wrote: > Please, provide the

Re: Django Template url mapping

2019-08-22 Thread Abu Yusuf
Your template name should be: template_name = "index.html" That's all. On Thu, Aug 22, 2019 at 12:55 PM RONAK JAIN wrote: > Hi > > I am new in Django I am doing struggle with add Django templates using by > inheritance. > > > so when I am trying within *Example:: index.html add inside the >

Re: restfamework

2019-08-19 Thread Abu Yusuf
Follow custom user model: https://dev.to/callmetarush/the-django-rest-custom-user-model-and-authentication-5go9 On Mon, Aug 19, 2019 at 5:23 PM Mohammad Kokhaee wrote: > > .Hello guys > > > .I want to create alot users with some informations like phone number and > etc with api Restframework

Re: Rest framework autocomplete

2019-08-19 Thread Abu Yusuf
You need to use these both: 1.Filter: https://www.django-rest-framework.org/api-guide/filtering/ 2.Pagination: https://www.django-rest-framework.org/api-guide/pagination/ On Tue, Aug 20, 2019 at 9:45 AM Soumen Khatua wrote: > Hi guys, > I want to implement autocomplete options like if someone

Re:

2019-07-30 Thread Abu Yusuf
Do you try this: https://github.com/Chive/django-multiupload On Mon, Jul 29, 2019 at 6:48 PM Suraj Thapa FC wrote: > How can I create a file field which one can upload Multiple files in it... > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: python manage.py makemirations

2019-05-29 Thread Abu Yusuf
You didn't add your app name in 'Installed_Apps'. Add this first and then run again. On Thu, May 30, 2019 at 12:17 AM sagar ninave wrote: > i have created new project and i am defining model and doing makemigratins > but it is showing no changes detected what is problem i don't understand > >

Re: 'WSGIRequest' object has no attribute '

2019-05-22 Thread Abu Yusuf
Which error? On Wed, May 22, 2019 at 12:15 PM sagar ninave wrote: > after doing this i am getting another error > > On Wed, May 22, 2019 at 11:44 AM Abu Yusuf > wrote: > >> It's middleware. Not middleware_classes: >> >> MIDDLEWARE = [ >> 'django

Re: 'WSGIRequest' object has no attribute '

2019-05-22 Thread Abu Yusuf
ninave wrote: > i am also using same url.py > > > On Wed, May 22, 2019 at 11:33 AM Abu Yusuf > wrote: > >> I did use this urls.py: >> >> from django.conf.urls import url >> from django.contrib import admin >> from django.urls import path >&g

Re: 'WSGIRequest' object has no attribute '

2019-05-22 Thread Abu Yusuf
, 2019 at 12:00 PM Abu Yusuf wrote: > It's working fine. > [image: wsgi.png] > > On Wed, May 22, 2019 at 11:57 AM sagar ninave > wrote: > >> when i am opening admin panel then it is getting error >> >> On Wed, May 22, 2019 at 11:19 AM Abu Yusuf >> wro

Re: 'WSGIRequest' object has no attribute '

2019-05-22 Thread Abu Yusuf
It's working fine. [image: wsgi.png] On Wed, May 22, 2019 at 11:57 AM sagar ninave wrote: > when i am opening admin panel then it is getting error > > On Wed, May 22, 2019 at 11:19 AM Abu Yusuf > wrote: > >> I did run your project and it's working fine. >> >>

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
I did run your project and it's working fine. On Wed, May 22, 2019 at 11:43 AM sagar ninave wrote: > no i am getting this error again > > > On Wed, May 22, 2019 at 10:25 AM Abu Yusuf > wrote: > >> >> Comment out the >> >> #'django.contrib.auth.

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
Comment out the #'django.contrib.auth.middleware.SessionAuthenticationMiddleware', in your settings.py file in Middleware or remove. Then run again. It will work. On Wed, May 22, 2019 at 10:36 AM Abu Yusuf wrote: > This issue has been resolved yet? > > On Tue, May 21, 2019 at 4:55

Re: 'WSGIRequest' object has no attribute '

2019-05-21 Thread Abu Yusuf
This issue has been resolved yet? On Tue, May 21, 2019 at 4:55 PM sagar ninave wrote: > my manage.py is in project folder you can check attachment > > On Mon, May 20, 2019 at 5:42 PM Abu Yusuf > wrote: > >> Where is your manage.py file? >> >> On Mon, May

Re: Unwelcome error!

2019-05-20 Thread Abu Yusuf
delete your existing db and try to create makemigrations and migrate again. delete all the files in migrations folder also. You saw this error because your migrations weren't done properly. On Tue, May 21, 2019 at 4:21 AM 'Stephen Owen' via Django users < django-users@googlegroups.com> wrote: >

Re: 'WSGIRequest' object has no attribute '

2019-05-20 Thread Abu Yusuf
Where is your manage.py file? On Mon, May 20, 2019 at 11:57 AM sagar ninave wrote: > AttributeError at /admin/ 'WSGIRequest' object has no attribute 'user' > Request Method: GET Request URL: http://127.0.0.1:8000/admin/ > Django Version: 2.2 Exception Type: AttributeError