Write raise Exception ("New Error") im your views.py
Then you have a exception
oduwole samuel schrieb am Sa., 14. Okt. 2023,
15:12:
> How can I become an execpt in Django
>
>
> On Sat, Oct 14, 2023, 2:05 PM Adesewa Lola
> wrote:
>
>> i have an issues with my django site
>>
>> All i want to do i
How can I become an execpt in Django
On Sat, Oct 14, 2023, 2:05 PM Adesewa Lola
wrote:
> i have an issues with my django site
>
> All i want to do is to add a mail so whenever the user click the sign up
> button the user should receive a mail like thanks for signing up
>
> but mine is not worki
i have an issues with my django site
All i want to do is to add a mail so whenever the user click the sign up
button the user should receive a mail like thanks for signing up
but mine is not working
On Fri, Oct 13, 2023 at 3:14 PM Mithilesh Rawani
wrote:
> 404 screenshot share this group
>
> O
404 screenshot share this group
On Fri, 13 Oct 2023, 7:26 pm Onjomba Felix, wrote:
>
> Look at how you configure your static files and also the deburg mode of
> your system
>
> Settings.py
>
> DEBUG = True
> STATIC_URL = '/static/'
> STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
>
> main
Look at how you configure your static files and also the deburg mode of
your system
Settings.py
DEBUG = True
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
main urls.py
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
Hey Alvaro, If you're encountering 404 errors for static files in your
Django development environment but not in production, start by reviewing
your project's settings in settings.py to ensure proper static file
configurations. Run the *python manage.py collectstatic* command in your
development en
Hi Alvaro, try to check your STATICFILES_DIR, STATIC_ROOT and STATIC_MEDIA
path. maybe they are not pointing to the correct path
On Fri, Oct 13, 2023 at 9:14 PM Alvaro Nascimento
wrote:
> i have an issue with my Django site,
>
> on loading staticfiles, it does 404 error.
>
> but in production ev
i have an issue with my Django site,
on loading staticfiles, it does 404 error.
but in production everything works fine.
--
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
t;
> When I load the app in my browser, I get either "Hello, World!" (the
> expected result) or the Django welcome page ("The install worked
> successfully! Congratulations! You are seeing this page because DEBUG=True
> is in your settings file and you have not configur
production application.
When I load the app in my browser, I get either "Hello, World!" (the
expected result) or the Django welcome page ("The install worked
successfully! Congratulations! You are seeing this page because DEBUG=True
is in your settings file and you have not conf
I try djangoproject.com,
On Fri, Mar 27, 2020, 03:22 surendra bhaskar <
surendra.bhaska...@siesgst.ac.in> wrote:
> Follow official documentation it's best
>
> On Thu, 26 Mar, 2020, 6:25 PM victor awakan,
> wrote:
>
>>
>> Have you try to follow the official documentation tutorial ?
>>
>> On Thu 2
Follow official documentation it's best
On Thu, 26 Mar, 2020, 6:25 PM victor awakan, wrote:
>
> Have you try to follow the official documentation tutorial ?
>
> On Thu 26. Mar 2020 at 14.48, Mr Black Hat
> wrote:
>
>> hello i am beginner in django, guys can you help me from where should i
>> le
Have you try to follow the official documentation tutorial ?
On Thu 26. Mar 2020 at 14.48, Mr Black Hat
wrote:
> hello i am beginner in django, guys can you help me from where should i
> learn django
> i know how to create projects in django and also multiple apps, but i dont
> know how to templ
hello i am beginner in django, guys can you help me from where should i
learn django
i know how to create projects in django and also multiple apps, but i dont
know how to templating in django
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
sos hasta donde en el archivo
> polls/views.py se incrusta el siguiente codigo
>
>
> polls/views.py
> from django.http import HttpResponse
>
>
> def index(request):
> return HttpResponse("Hello, world. You're at the polls index.")
>
> lu
e codigo
>>
>>
>> polls/views.py
>> from django.http import HttpResponse
>>
>>
>> def index(request):
>> return HttpResponse("Hello, world. You're at the polls index.")
>>
>> luego sigue
>> crear un archivo urls.py en
dichos archivos sigo los pasos hasta donde en el archivo
> polls/views.py se incrusta el siguiente codigo
>
>
> polls/views.py
> from django.http import HttpResponse
>
>
> def index(request):
> return HttpResponse("Hello, world. You're at the polls index
cuando configuro las urls al crear con el $python manage.py
startapp polls dichos archivos sigo los pasos hasta donde en el archivo
polls/views.py se incrusta el siguiente codigo
polls/views.py
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello,
I am using this site to learn Django, and at this link
https://docs.djangoproject.com/en/1.7/intro/tutorial03/
I created the polls/urls.py, polls/views.py, and mysite/urls.py files as
followed in the site, but when I run the site, the site is running OK, but
I do not see the "Hello,
Thanks for all your help guys. I got it to work by changing the ip address
to:
python manage.py runserver 0.0.0.0:8000
Not terribly sure why.
On Tuesday, August 19, 2014 6:39:37 PM UTC-7, Camilo Torres wrote:
>
>
>
> On Tuesday, August 19, 2014 11:59:31 AM UTC-4:30, Andrew Koller wrote:
>>
>
On Tuesday, August 19, 2014 11:59:31 AM UTC-4:30, Andrew Koller wrote:
>
> curl: (52) Empty reply from server
>
> On Tuesday, August 19, 2014 9:21:34 AM UTC-7, Tom Evans wrote:
>>
>> On Tue, Aug 19, 2014 at 5:07 PM, Andrew Koller
>> wrote:
>> > Yes they are on the same computer and no, I don't
On Tue, Aug 19, 2014 at 5:29 PM, Andrew Koller wrote:
> curl: (52) Empty reply from server
>
You have a firewall or some other security mechanism stopping communication?
Please verify that the django server is running and listening on the
port we assume it to be:
netstat -lpn | grep 8000
Cheer
curl: (52) Empty reply from server
On Tuesday, August 19, 2014 9:21:34 AM UTC-7, Tom Evans wrote:
>
> On Tue, Aug 19, 2014 at 5:07 PM, Andrew Koller > wrote:
> > Yes they are on the same computer and no, I don't get any additional
> output
> > to the console. I know that something is sort o
On Tue, Aug 19, 2014 at 5:07 PM, Andrew Koller wrote:
> Yes they are on the same computer and no, I don't get any additional output
> to the console. I know that something is sort of working because the chrome
> error message changes from "This webpage is not available" to "No data
> received" on
Thanks for your help, but I get the same result.
On Monday, August 18, 2014 11:37:25 PM UTC-7, Sergiy Khohlov wrote:
>
> also try
> python manage.py runserver 127.0.0.1:8000
>
> Many thanks,
>
> Serge
>
>
> +380 636150445
> skype: skhohlov
>
>
> On Tue, Aug 19, 2014 at 8:46 AM, Aaron C. de Bruy
Yes they are on the same computer and no, I don't get any additional output
to the console. I know that something is sort of working because the chrome
error message changes from "This webpage is not available" to "No data
received" on 127.0.0.1:8000
On Monday, August 18, 2014 7:28:12 PM UTC-7,
Yes they are.
On Tuesday, August 19, 2014 2:13:18 AM UTC-7, Tom Evans wrote:
>
> On Tue, Aug 19, 2014 at 3:28 AM, Andrew Koller > wrote:
> > I'm having issues getting the dev server to work. After I installed
> Django,
> > and
> >
> > $ python -c "import django; prindjango.get_version())"
On Tue, Aug 19, 2014 at 3:28 AM, Andrew Koller wrote:
> I'm having issues getting the dev server to work. After I installed Django,
> and
>
> $ python -c "import django; prindjango.get_version())"
>>
>> returns 1.6.5
>
> Then:
>
> $ python manage.py runserver
>
> returns:
>
> Validating models...
also try
python manage.py runserver 127.0.0.1:8000
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Tue, Aug 19, 2014 at 8:46 AM, Aaron C. de Bruyn
wrote:
> After trying to load the page in Chrome, do you see any output in the
> 'runserver' window?
>
>
> On Mon, Aug 18, 2014 at 7:28 P
After trying to load the page in Chrome, do you see any output in the
'runserver' window?
On Mon, Aug 18, 2014 at 7:28 PM, Andrew Koller wrote:
> I'm having issues getting the dev server to work. After I installed
> Django, and
>
> $ python -c "import django; prindjango.get_version())"
>
>> ret
I'm having issues getting the dev server to work. After I installed Django,
and
$ python -c "import django; prindjango.get_version())"
> returns 1.6.5
Then:
$ python manage.py runserver
returns:
Validating models...
0 errors found
August 19, 2014 - 02:19:03
Django version 1.6.5, using sett
pment experience so apologies if
> this comes across as a stupid question.
> >
> > I'm trying to get "Hello World" to work and am receiving an import
> error. I get the following traceback:
> >
> > Traceback:
> > File "
Hi,
On Jun 12, 2013 6:53 AM, wrote:
>
> Hi everyone! I'm currently a noob learning Django and Python for the
first time and I have almost no web-development experience so apologies if
this comes across as a stupid question.
>
> I'm trying to get "Hello World" to
Hi everyone! I'm currently a noob learning Django and Python for the first
time and I have almost no web-development experience so apologies if this
comes across as a stupid question.
I'm trying to get "Hello World" to work and am receiving an import error. I
get the
he closet for a while.
>
> My problem is concerning the url patterns. I´ve pasted the example "Hello
> world" code directly from the django book to urls.py and views.py so I´ll
> leave out all extra code since it has something to do with my configuration.
>
>
> ht
Hi. Can you please post your full urls.py?
2013/4/30
> what´s up everyone. I just installed Django for the first time, leaving
> php in the closet for a while.
>
> My problem is concerning the url patterns. I´ve pasted the example "Hello
> world" code directly from t
what´s up everyone. I just installed Django for the first time, leaving php
in the closet for a while.
My problem is concerning the url patterns. I´ve pasted the example "Hello
world" code directly from the django book to urls.py and views.py so I´ll
leave out all extra code si
ow.com/**questions/12399318/why-do-i-**
>> need-django-for-a-simple-**hello-world<http://stackoverflow.com/questions/12399318/why-do-i-need-django-for-a-simple-hello-world>
>>
>> As you can see, the Flask solution is only "half answer" and the Django
>> soluti
Hi,
There are only 7 steps ahead to say 'Hello World' via Django project.
Visit http://www.f2finterview.com/web/Django/17/ its tells how to make
simple django project with seven steps. Thank you for
visiting<http://www.f2finterview.com>
On Thu, Sep 13, 2012 at 2:55 PM, DJ-Tom
I have now found extensive documentation as to why and how Apache has to be
configured with Django and mod_wsgi here
http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this disc
ckoverflow.com/questions/12399318/why-do-i-need-django-for-a-simple-hello-world
>
> As you can see, the Flask solution is only "half answer" and the Django
> solution in my web hosting service
> doesn't work and, as you can imagine, I don't have access to
>
Hi,
It is very simple to say hello world through Django projects, Only 7 steps
ahead to say... <http://www.f2finterview.com/web/Django/17/>
Pls visit http://www.f2finterview.com/web/Django/17/ its clearly guide you
step by step to say hello world via django.
Thank you for visiting
Hi,
Can someone help me in this question?
http://stackoverflow.com/questions/12399318/why-do-i-need-django-for-a-simple-hello-world
As you can see, the Flask solution is only "half answer" and the Django
solution in my web hosting service
doesn't work and, as you can imagin
On Thu, Sep 13, 2012 at 4:25 AM, DJ-Tom wrote:
> Basically I always try to have the same environment for development as I
> also use for actual production - I'm lucky that my projects are small enough
> so i can do that :-) to avoid last minute surprises when trying to deploy
> the application to
> Ok... GREAT! Now it works :-) (well... sort of, more below... ) but I had
>> to restart Apache to make config changes effective... is that "normal"?
>>
>> I think important things like "you have to restart the webserver to make
>> changes life" should go into the tutorial in *BIG RED LETTERS*
On Tuesday, 11 September 2012 16:33:31 UTC+1, DJ-Tom wrote:
>
>
>
> Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian:
>>
>> "d:/wwwroot/djtest/djtest/" was already in system path, so I think you
>> should set DJANGO_SETTINGS_MODULE like this:
>> os.environ.setdefault("DJANGO_SETT
Am Dienstag, 11. September 2012 10:20:16 UTC+2 schrieb Chang.Jian:
>
> "d:/wwwroot/djtest/djtest/" was already in system path, so I think you
> should set DJANGO_SETTINGS_MODULE like this:
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
>
> try it!
>
>
Ok... GREAT! Now it works :-
"d:/wwwroot/djtest/djtest/" was already in system path, so I think you
should set DJANGO_SETTINGS_MODULE like this:
os.environ.setdefault("DJANGO_SETTINGS_MODULE",
"settings")
try it![?][?][?]
2012/9/11 DJ-Tom
> Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike Dewhirst:
>
>>
>> Try d
Am Dienstag, 11. September 2012 00:43:44 UTC+2 schrieb Mike Dewhirst:
>
>
> Try dropping this down to "djtest.settings". Also make sure you have a
> file in each of your folders called __init__.py
>
> This tells Python the folder is part of the package.
>
Sorry - but this does not help. Just to
On 11/09/2012 1:31am, DJ-Tom wrote:
Hi,
I'm new to django and python at the same time (Nightmare ) and
currently struggling to get a basic understanding of how everything
works and how the different components are connected to each other.
My setup is a s follows:
- Apache 2.2 running as a serv
Hi,
I'm new to django and python at the same time (Nightmare ) and currently
struggling to get a basic understanding of how everything works and how the
different components are connected to each other.
My setup is a s follows:
- Apache 2.2 running as a service under Windows 7
- mod_wsgi
- Pyt
Here you go, a fully working AJAX "Hello World" example in Django:
http://www.dajaxproject.com/dajaxice/
I use both Dajax and Dajaxice for a few projects of mine, check out my
profile site for a fully working AJAX website made in Django:
http://iamkevin.ca/
Django even has spe
On Friday, 13 April 2012 17:04:49 UTC+1, Eli_West wrote:
>
> Thanks, I tried to stay clear of posting code because I've tried maybe
> 20 different ways and nothing seems to work. I have used the {% url %}
> tag and yesterday competed - a 'ajax_user_search' tut using django Q
> still no luck. T
Thanks. I found another example that used get() and didn't seem to
work for me either:
http://mitchfournier.com/tag/ajax/
I guess I want an example that is simple as possible so I can try and
find where the issue it occuring. I'll try your example later today.
On Apr 13, 4:12 am, Joey Espinosa
Thanks, I tried to stay clear of posting code because I've tried maybe
20 different ways and nothing seems to work. I have used the {% url %}
tag and yesterday competed - a 'ajax_user_search' tut using django Q
still no luck. This was the load call:
$( document ).ready( function() {
$( '#searc
Btw, disregard what I said about mixing URL and CSS selectors. I forgot
that load() can do that (I usually use ajax() or get()/post(), neither of
which supports that). MY BAD!
--
Joey Espinosa
Software Engineer
http://about.me/joelinux
On Apr 13, 2012 6:05 AM, "Joey Espinosa" wrote:
> Daniel is
Daniel is right. The only way your code will work is if you've set up your
argument to load() to be caught by urls.py.
Also, in your case, it seems like your argument to load() is a mix of URL
and CSS selector... Make sure you're using a URL there.
Check out my blog for a very basic tutorial on g
On Friday, 13 April 2012 08:08:19 UTC+1, Eli_West wrote:
>
> I've been attempting the most basic ajax call (.load() ) through
> django for over a month now - each time trying a different method or
> tutorial none with success. Can someone post a working paradigm for
> whatever django csrf, fir
I've been attempting the most basic ajax call (.load() ) through
django for over a month now - each time trying a different method or
tutorial none with success. Can someone post a working paradigm for
whatever django csrf, firefox, ect. workaround they use?
I can get jquery .load() to load cont
thanks Javier.
On Jul 20, 8:13 pm, Javier Guerra Giraldez wrote:
> On Wed, Jul 20, 2011 at 2:02 PM, Phil wrote:
> > "host" => "my ip address",
>
> sometimes flup (and other fastcgi launchers) bind only to the
> 127.0.0.1 IP. if you want to put the webserver and webapp on
> different
On Wed, Jul 20, 2011 at 2:02 PM, Phil wrote:
> "host" => "my ip address",
sometimes flup (and other fastcgi launchers) bind only to the
127.0.0.1 IP. if you want to put the webserver and webapp on
different machines, be sure to bind to all IPs (typically setting "0"
as IP on the launc
thanks Javier! I switched it to port 8080 now.
I have a "lighttpd/lighttpd.conf" with the following...
server.document-root = "/var/www"
$HTTP["host"] =~ "(^|\.)mydomain\.com$" {
fastcgi.server = (
"/var/www/mydomain.fcgi" => (
"main" => (
# Use host / port instead of soc
On Wed, Jul 20, 2011 at 1:42 PM, Phil wrote:
> if I can get a standard HTML to display on port 80 with lighttpd does
> that still mean I have to use a different port for fcgi?
absolutely.
the port used between the webserver and webapp must _not_ be the same
where the browsers connect to the webs
if I can get a standard HTML to display on port 80 with lighttpd does
that still mean I have to use a different port for fcgi?
On Jul 18, 10:59 pm, Javier Guerra Giraldez
wrote:
> On Mon, Jul 18, 2011 at 4:55 PM, Phil wrote:
> > I did run "./manage.py runfcgi
> > method=threaded host=my ip addre
On Mon, Jul 18, 2011 at 4:55 PM, Phil wrote:
> I did run "./manage.py runfcgi
> method=threaded host=my ip address port=80"
don't use port 80 for FastCGI. chances are that it's already used
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users"
Thanks for reply. Yeah I seen that, I did run "./manage.py runfcgi
method=threaded host=my ip address port=80" in my mysite directory but
am still getting a "not found" page.
On Jul 18, 10:41 pm, Daniel Roseman wrote:
> Op maandag 18 juli 2011 20:29:03 UTC+1 schreef Phil het volgende:
>
>
>
>
>
Op maandag 18 juli 2011 20:29:03 UTC+1 schreef Phil het volgende:
>
> Hi,
>
> I have an ubuntu server, django is fully installed and working,
> lighttpd is installed and working(works with standard html page), but
> I am not sure how to get them talking to each other?
>
> It is my first time pu
Hi,
I have an ubuntu server, django is fully installed and working,
lighttpd is installed and working(works with standard html page), but
I am not sure how to get them talking to each other?
It is my first time putting a django site onto a live server so any
help is appreciated. I'm used to a php
> ROOT_URLCONF = 'emil.urls'
What's "emil"? It needs to be projectname.urls. So probably
"john.urls".
--Jacob
On Apr 23, 2:57 pm, Honza Javorek wrote:
> Hello guys,
>
> I have searched to solve this for a whole evening without any results.
> I have read all known "my first app in django" tutori
I'm not sure, I'm quite new in django, but I think you need to include
dashboard in INSTALLED_APPS and looking your urls.py in order to see
hello view you need to type http://127.0.0.1:8000/john/hello
On 23/04/11 21:57, Honza Javorek wrote:
Hello guys,
I have searched to solve this for a whol
Hello guys,
I have searched to solve this for a whole evening without any results.
I have read all known "my first app in django" tutorials, but my test
app just isn't working.
I have project called "john". In it's directory I have app package
"dashboard" containing init, models, tests and views.
71 matches
Mail list logo