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
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
[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/
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.
--
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
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
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:
>
&
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
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
>
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
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
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
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
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:
>
>
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
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
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
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=
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
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
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:
&
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
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:
>
>>
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',
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
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*
>>
>
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
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
>
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
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
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
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
>
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
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
>
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
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
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"
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
>
>
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
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
, 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
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.
>>
>>
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.
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
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
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:
>
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
47 matches
Mail list logo