Once the polls app is created there is no reference to the root /project
site!
On Wednesday, April 27, 2011 at 1:48:17 PM UTC+1, Oleg Lomaka wrote:
>
> Go on read 3rd part of tutorial about urls.py configuration
> http://docs.djangoproject.com/en/dev/intro/tutorial03/
>
>
> On Wed, Apr 27, 2011 a
I followed a simple tutorial to create a sample application in DJango. Here
is my code for urls.py in the root folder:
from django.conf.urls import url, include
from django.contrib import admin
#from data import views
urlpatterns = [
url(r'^data/', include('data.urls')),
url(r'^admin/', adm
r'^$' that will redirect to
> your main app.
>
>
> On 31 Jan 2017 1:09 p.m., "Thames Khi" >
> wrote:
>
> I followed a simple tutorial to create a sample application in DJango.
> Here is my code for urls.py in the root folder:
>
> from django.con
Hi,
I tried to use locally installed bootstrap. My render HTML function is
calling my page. However using the relative path or even if add the
complete path, nothing works.
If the html page is opened directly it works.
Is there any decent documentation and examples of using locally installed
The static files shouldn't have absolute file paths
> because you are accessing them from the webserver and the paths are
> relative to the current base url (or html file). There is no difference
> between bootstrap and other css / js files in this regard.
>
> Regards,
>
gt;
> Finally - you should put the bootstrap files in a static directory (or a
> subdirectory to static) under one of you applications. Then run
> collectstatic - and you will get the files copied to the place you will
> serve them from (this is not necessary when running in debu
Thank you so much, you are a legend, sir! I can now continue my learning
and combine my python database code with django.
I am very grateful, thank you for taking the time to explain this to me.
Kind Regards,
TiKhi
On Wednesday, February 1, 2017 at 8:11:52 PM UTC, Thames Khi wrote
Thanks I will take a look. So much to learn too much fun.
On Thursday, February 2, 2017 at 2:40:15 AM UTC, Melvyn Sopacua wrote:
>
> On Wednesday 01 February 2017 02:40:48 Thames Khi wrote:
>
>
>
> > I tried to use locally installed bootstrap. My render HTML function is
My example is simple, I am happy to use the standard views and templates
provided by Django.
NoReverseMatch at /myapp/password/reset/
Reverse for 'password_reset_done' with arguments '()' and keyword arguments
'{}' not found. 0 pattern(s) tried: []
Request Method: GET
Request URL: http://192.
Hi
I am wondering the best method to save a graph to a file which is then
displayed on a rendered webpage?
Currently, I have URL which calls a view. This view:
def graph(request):
from datetime import datetime, timedelta
graph_filename = (djangoSettings.STATICFILES_DIRS[0] + 'graph_' + datet
I have a small app which generates a graph and saves it to a file. The file
is then displayed using a reference. My question is, is it better to use
matplotlib.pyplot SaveFig function or matplotlib.backends.backend_agg
import FigureCanvasAgg as FigureCanvas function? Here is an extract of my
c
11 matches
Mail list logo