Re: hi, How can I deploy my first Django website ?

2019-01-15 Thread Thiago Brito
https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

Em ter, 15 de jan de 2019 às 13:00,  escreveu:

> what is the best web hosting provider for Django websites?
>
> What should I learn to deploy my first Django website?
>
> what is the process?
>
> --
> 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 group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c4d2241-5660-4ee7-9dd3-08401fa57099%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTtUiXBbTarbtTU4m-orZPtDnGHkXryxBD7ZqEM3P9wBBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


error with deploy django / digitalocean

2019-01-15 Thread Thiago Brito
Hi,

I'm trying to make deploy my first django website in digitalocean but
doesn't works.

I got this error

connect() to unix:/run/uwsgi/project.sock failed (2: No such file or
directory)

Anyone can help me?

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTsG928oYVFumn71VY_62dvFMwHb6CFd7T%3D19B8BqpFecw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


NoReverseMatch at / '' is not a registered namespace

2019-01-16 Thread Thiago Brito
Hi

I'm beginner in django and i got this error.

[image: image.png]

urls.py
[image: image.png]

my app.urls.py
[image: image.png]

and my html file
[image: image.png]

and views
[image: image.png]
How can i fix it?

any idea?

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTsP0BEPUUBruHucVLCvzskYn-JHqAyfd%3DX%2BtG%3DrOy3jXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


problem with a form

2019-01-22 Thread Thiago Brito
Hi

I'm trying to save a post in my blog project. No problem. Its working.
But, when I try to show that post, I have this situation:

O que é Phyton?https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTsb7X-O4uj7UCv%2BnJmfpywx1RFqBaeEOsdz54umz0bjww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem Basic

2018-12-05 Thread Thiago Brito
Fala David, conseguiu?

tenta mudar o caminho
url(r'^polls/', include('polls.urls')),
url(r'^admin/', admin.site.urls),

pra isso

from django.urls import path
path('polls/', include('polls.urls')),
path('admin/', admin.site.urls),




Em ter, 4 de dez de 2018 às 23:55, David Figueroa <
davidfigueroalaf...@gmail.com> escreveu:

>
>
> *Na criação de meu primeiro projeto django- estou tentando criar minha
> primeira aplicação (polls) através de uma  view como mostrado abaixo.estou
> encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
> Estou seguindo o passo a passo sugerido em. (
> https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
> polls/view.py
> Create your views here.
> from django.http import HttpResponse
>
>
> def index(request):
> return HttpResponse("Hello, world. You're at the polls index.")
> * pols/urls*
> from django.conf.urls import url
>
> from . import views
>
> urlpatterns = [
> url(r'^$', views.index, name='index'),
> ]
> *site1/urls*
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^polls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
>
> --
> 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 group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTuVT9CO6Z6HAThrfy30oBuxAW%2Borgp7YK%3DM%3Dd8MCDMzhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem Basic

2018-12-05 Thread Thiago Brito
Cara, tenta usar esta versão
https://docs.djangoproject.com/pt-br/2.1/intro/tutorial01/
A que você está utilizando é antiga

Em ter, 4 de dez de 2018 às 23:55, David Figueroa <
davidfigueroalaf...@gmail.com> escreveu:

>
>
> *Na criação de meu primeiro projeto django- estou tentando criar minha
> primeira aplicação (polls) através de uma  view como mostrado abaixo.estou
> encontrando o erro mostrado na imagem do Anexo. Alguém poderia me ajudar?*
> Estou seguindo o passo a passo sugerido em. (
> https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/)
> polls/view.py
> Create your views here.
> from django.http import HttpResponse
>
>
> def index(request):
> return HttpResponse("Hello, world. You're at the polls index.")
> * pols/urls*
> from django.conf.urls import url
>
> from . import views
>
> urlpatterns = [
> url(r'^$', views.index, name='index'),
> ]
> *site1/urls*
> from django.conf.urls import include, url
> from django.contrib import admin
>
> urlpatterns = [
> url(r'^polls/', include('polls.urls')),
> url(r'^admin/', admin.site.urls),
> ]
>
> --
> 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 group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/aeee4a25-8c43-41ce-8ed0-744107f61cdb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALvrLTvWLfr074PiinExC4knnDssUKeFSheKYupkzaU3b9a32Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.