Hi,
That is a bit outside of django.
1. First of all, you shouldn't run django with runserver on a production
system. runserver is just for development purposes, and doesn't do a lot of
optimization that you get when running it "correctly".
2. You need to be on a computer that is accessible from
thanks :)
On Wednesday, October 18, 2017 at 2:12:51 PM UTC+5:30, Andréas Kühne wrote:
>
> Hi,
>
> The __str__ function is described here:
> https://docs.djangoproject.com/en/1.11/ref/models/instances/#str
>
> It is mainly used in django in the admin interface when you haven't setup
> any rules fo
in your template folder -> account login.py to login .html .. if your html
file is login.py
and you have to specify full path like
render(request,"accounts/login.html",context)
On Saturday, October 14, 2017 at 3:19:53 PM UTC+5:30, utpalbr...@gmail.com
wrote:
>
> my code that caused an error
what are the use of these function in models.py
def __str__(self):
return self.title
and
def get_absolute_url(self):
return reverse('shop:product", agrs=[self.id,self,slug])
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubsc
Hi,
The __str__ function is described here:
https://docs.djangoproject.com/en/1.11/ref/models/instances/#str
It is mainly used in django in the admin interface when you haven't setup
any rules for the list layout. You can also see it when you look at an
object in the python shell (athough that te
hello everyone!
I'm working on Django Framework. but when I run the script
*$ ./manage.py runserver *
or
*ALLOWED_HOSTS = ['127.0.0.1'] # in settings.py*
*$./manage.py runserver 0.0.0.0:8000 *
it only works on my system.
how to make it public? so that I can access it from other sys
6 matches
Mail list logo