there are lots of free web, you can simply google
在2022年1月23日星期日 UTC+8 05:33:37 写道:
> Hii, i want to make a beautiful home page for myself. Can anybody suggest
> some code fr the same, I am new to django.
>
> Best regards,
> Sarmi
>
--
You received this message because you are subscribed to t
Hii, i want to make a beautiful home page for myself. Can anybody suggest
some code fr the same, I am new to django.
Best regards,
Sarmi
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails f
"{% url ' homepage:index ' %}"
On Fri, Jun 29, 2018 at 2:25 PM Nelson Varela
wrote:
> You don't have of did not configure the urls.py
> there should be an url which points to the view
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To
You don't have of did not configure the urls.py
there should be an url which points to the view
--
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+unsu
Incorrect syntax used
Correction
Views.py:
from .models import Topic
def index(request):
"""the homepage for the homepage"""
return render(request, 'homepage/index.html', name="something")
Base.html:
main
Follow the same pr
building my django app from base.html and with child themes
>
> and get these errors:
>
> any help woud be appreciated.
>
> Tim
>
>
> NoReverseMatch at /
> ' homepage' is not a registered namespace
> Request Method:GET
> Request URL:
I am building my django app from base.html and with child themes
and get these errors:
any help woud be appreciated.
Tim
NoReverseMatch at /
' homepage' is not a registered namespace
Request Method: GET
Request URL:http://localhost:8000/
Django Version: 2.0.6
Exce
these errors:
>
> any help woud be appreciated.
>
> Tim
>
>
> NoReverseMatch at /
>
> ' homepage' is not a registered namespace
>
> Request Method: GET
> Request URL: http://localhost:8000/
> Django Version: 2.0.6
> Exception Type: NoReverseMatch
&
I am building my django app from bas.html and with child themes
and get these errors:
any help woud be appreciated.
Tim
NoReverseMatch at /
' homepage' is not a registered namespace
Request Method: GET
Request URL:http://localhost:8000/
Django Version: 2.0.6
Exception Type: NoRe
ot; to create a website for
> you. You have to program your own homepage for yourself, or just install
> Wordpress/any prefabricated template website and be done with it.
>
> On September 21, 2017 1:17:36 PM GMT+03:00, TECH ROYAL <
> arunroyal...@gmail.com> wrote:
>>
>
Django is not Wordpress, you don't use "plugins" to create a website for you.
You have to program your own homepage for yourself, or just install
Wordpress/any prefabricated template website and be done with it.
On September 21, 2017 1:17:36 PM GMT+03:00, TECH ROYAL
wrote:
&
which extension may i use a creating homepage im using django
--
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...@googlegrou
>
>
> 2013/9/27 Iuri Machado >
>
>> Hello everyone, I've got a silly question.
>>
>> Let's say I've create a project called CAFis. My folder structure should
>> be like:
>>
>> CAFis
>> - CAFis
>> | - __init__.py
&g
called CAFis. My folder structure should
> be like:
>
> CAFis
> - CAFis
> | - __init__.py
> | - settings.py
> | - urls.py
> | - wsgi.py
>
> If I want to create a homepage for my project, should I create a views.py,
> inside the subfolder CAFis, with o
Hello everyone, I've got a silly question.
Let's say I've create a project called CAFis. My folder structure should be
like:
CAFis
- CAFis
| - __init__.py
| - settings.py
| - urls.py
| - wsgi.py
If I want to create a homepage for my project, should I create a vi
On Sat, Apr 13, 2013 at 8:59 AM, Breda Doherty
wrote:
> Hey Folks,
>
> Totally new to Django, trying to learn how to do some stuff so I can change
> stuff myself rather than hiring someone.
>
> I want to change the ordering of my home-page so that under Latest Activity
> the Reviews section would
Hey Folks,
Totally new to Django, trying to learn how to do some stuff so I can change
stuff myself rather than hiring someone.
I want to change the ordering of my home-page so that under Latest Activity
the Reviews section would come down under The Tips Section. This is my site-
http://hubb.it
foo" (the "^" character says that).
> However the URL you are trying has "homepage/" before "foo". Hence it does
> not match.
>
> You need to correct this before you can proceed furter. Either remove the
> "homepage/" from your request
Hi Vincent,
Django is telling you what the problem is - none of strings in urls.py
matches the requested URL. All lines in your file say that the regular
expression fas nothing before the "foo" (the "^" character says that). However
the URL you are trying has "homep
Addendum: the views.py also has the required 'from django.foo import" lines
naturally.
On Sunday, September 23, 2012 2:47:39 PM UTC-5, Vincent Fulco wrote:
>
> Thank you for the timely advice. Before I move my "base/homepage" site to
> its own app dir, thought
Thank you for the timely advice. Before I move my "base/homepage" site to
its own app dir, thought I would give it another pass using your changes.
Verified 'mysite.urls' in settings.py, added 'mysite' to the urlpatterns
arg and put quotes around the hello func.
On 23 September 2012 06:40, Vincent Fulco wrote:
> Missing something basic here even after scouring web and running thru online
> tut a few times.
>
> Started a project 'mysite' and added twitter bootstrap then created a static
> homepage "index.html' to act
Missing something basic here even after scouring web and running thru
online tut a few times.
Started a project 'mysite' and added twitter bootstrap then created a
static homepage "index.html' to act as a simple launchpad to other more
information & fe
me to the page at %s" % request.path)
On Sunday, March 25, 2012 3:49:33 AM UTC-4, Kev Dwyer wrote:
>
> easypie wrote:
>
> > I'm trying to check {% if homepage %} then show {% endif %}
> >
> > I'm not sure how to go about a test to check the current
terns('satchmo_store.shop.views',
(r'^$', 'home.home', {}, 'satchmo_shop_home'),
...
)
On Sunday, March 25, 2012 12:49:33 AM UTC-7, Kev Dwyer wrote:
>
> easypie wrote:
>
> > I'm trying to check {% if homepage %} then show {% endif %}
easypie wrote:
> I'm trying to check {% if homepage %} then show {% endif %}
>
> I'm not sure how to go about a test to check the current page if it's my
> homepage. Do I need to mess around with context processors? What's the
> usual way of doing it? And h
I'm trying to check {% if homepage %} then show {% endif %}
I'm not sure how to go about a test to check the current page if it's my
homepage. Do I need to mess around with context processors? What's the
usual way of doing it? And how would the {% if ... %} look like?
-
On Tue, Nov 15, 2011 at 8:25 AM, CrabbyPete wrote:
> I have a site with lots of views. When someone comes to my site and is
> not logged in I direct them to the homepage to login. However a user
> could type in a whole url for a view and it will go there and cause an
> error beca
:
> I have a site with lots of views. When someone comes to my site and is
> not logged in I direct them to the homepage to login. However a user
> could type in a whole url for a view and it will go there and cause an
> error because the view expects the user to be logged in. I could pu
principle.
> >
> > bye
> > Ivo
> >
> > On Nov 15, 2011, at 17:16 , CrabbyPete wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I have a site with lots of views. When someone comes to my site and is
> > > not logged in I direct them to the h
? You are probably doing something against the
> DRY principle.
>
> bye
> Ivo
>
> On Nov 15, 2011, at 17:16 , CrabbyPete wrote:
>
>
>
>
>
>
>
> > I have a site with lots of views. When someone comes to my site and is
> > not logged in I direct them t
I have a site with lots of views. When someone comes to my site and is
not logged in I direct them to the homepage to login. However a user
could type in a whole url for a view and it will go there and cause an
error because the view expects the user to be logged in. I could put
logic in every
DRY principle.
bye
Ivo
On Nov 15, 2011, at 17:16 , CrabbyPete wrote:
> I have a site with lots of views. When someone comes to my site and is
> not logged in I direct them to the homepage to login. However a user
> could type in a whole url for a view and it will go there and cause a
I have a site with lots of views. When someone comes to my site and is
not logged in I direct them to the homepage to login. However a user
could type in a whole url for a view and it will go there and cause an
error because the view expects the user to be logged in. I could put
logic in every
Thanks for all the replies.
1. I did plan to have a dynamic homepage; its most complex section
will be to display the most recent ten additions to the articles
table. It sounds like I can just create a views directory inside my
site directory and use that. I was hesitant to do this simply because
for our project.
I have been going through the tutorial, adapting it to my project as
necessary, and have a couple questions.
1. This must be glaringly obvious, but how do I use django to load my
homepage (index.html in the public_html root)? I understand about
views and url matching, but there is
On Tue, Jul 19, 2011 at 9:19 AM, Alex Hall wrote:
>
> 1. This must be glaringly obvious, but how do I use django to load my
> homepage (index.html in the public_html root)? I understand about
> views and url matching, but there is no views.py in the main directory
> and I am n
y in charge to use django instead of php for our project.
>
> I have been going through the tutorial, adapting it to my project as
> necessary, and have a couple questions.
>
> 1. This must be glaringly obvious, but how do I use django to load my
> homepage (index.html in the p
through the tutorial, adapting it to my project as
necessary, and have a couple questions.
1. This must be glaringly obvious, but how do I use django to load my
homepage (index.html in the public_html root)? I understand about
views and url matching, but there is no views.py in the main directory
and I
gt;> 'foo.baz',
> >>> )
>
> >>> My urls.py file looks like this:
>
> >>> from django.conf import settings
> >>> from django.conf.urls.defaults import *
> >>> from django.contrib import admin
> >>> from dja
,
>>> )
>>>
>>> My urls.py file looks like this:
>>>
>>> from django.conf import settings
>>> from django.conf.urls.defaults import *
>>> from django.contrib import admin
>>> from django.shortcuts import render_to_resp
#x27;index.html' )
>>
>> urlpatterns = patterns( '',
>> url( r'^$', home, name='site_index' ),
>> ( r'^admin/', include( admin.site.urls ) ),
>> ( r'^foo include( 'stackexchange.foo.urls'
ocument_root': settings.MEDIA_ROOT } ),
> )
>
> You only need the 'static' definition for when you're testing using
> 'runserver'; Apache intercepts all of the /static/ URLs before Django sees
> them in production.
>
> I hope this hel
, mongoose wrote:
> > > I'm trying to run projects on the back of it. For examplehttp://
> baseurl.com/mongoose/
> > > The projects run but the URL don't work properly because they all
> > > reference the base url. So for 'About Me' page it point
27; page it points
> > tohttp://baseurl.com/aboutinsteadofhttp://baseurl.com/mongoose/about
>
> > Is this something i need to change in django or apache? Is what I'm
> > trying to do even possible?
I wrestled with something like this - as we needed a static homepage
based
:'(
On Dec 11, 9:22 pm, mongoose wrote:
> Hi there,
>
> I've got a base url.http://baseurl.com/
> I'm trying to run projects on the back of it. For
> examplehttp://baseurl.com/mongoose/
> The projects run but the URL don't work properly because they all
> reference the base url. So for 'About Me
Hi there,
I've got a base url. http://baseurl.com/
I'm trying to run projects on the back of it. For example
http://baseurl.com/mongoose/
The projects run but the URL don't work properly because they all
reference the base url. So for 'About Me' page it points to
http://baseurl.com/about instead o
to_template', {'template':
> > 'flatpages/default.html'}),
> > )
>
> > This now loads all my flatpages and has the deisred effect on the
> > homepage.
> > But still the pages that load are blank.
>
> > I've got
> > {{flat
I updated my URLs to have the following.
> urlpatterns += patterns('',
> (r'', 'django.views.generic.simple.direct_to_template', {'template':
> 'flatpages/default.html'}),
> )
>
> This now loads all my flatpages and has th
OK further updates.
I updated my URLs to have the following.
urlpatterns += patterns('',
(r'', 'django.views.generic.simple.direct_to_template', {'template':
'flatpages/default.html'}),
)
This now loads all my flatpages and has the deisre
I tried this approach
urlpatterns += patterns('',
(r'^$', 'django.views.generic.simple.direct_to_template',
{'template': 'flatpages/homepage.html'}),
)
Good news is it's loads the homepage.
Bad news is that it loads a blank page.
O
latpages.urls')),
)
On Nov 21, 8:43 pm, "Joseph (Driftwood Cove Designs)"
wrote:
> mongoose -
> all you need to do is specify the url: /
> for theflatpageyou want to be homepage.
>
> aflatpagecan only have one URL - if you want it to show up on 2
> urls (e.g. / a
Hi there,
I've created some flatpages and they work great. For example
http://127.0.0.1:8000/home/ and http://127.0.0.1:8000/blog/
I'm catching my flatpages with
urlpatterns += patterns('',
(r'', include('darren_web.flatpages.urls')),
)
What I want though is for http://127.0.0.1:8000/home/ t
mongoose -
all you need to do is specify the url: /
for the flatpage you want to be homepage.
a flatpage can only have one URL - if you want it to show up on 2
urls (e.g. / and /home/), you'll need a re-direct, a view, a re-write
rule, or some other trick.
good luck.
On Nov 21, 2:
Hi,
If i understood ur question properly
you need a URL rewrite. you can try either
Apache Rewrite (1st Preference) or
you can also import a django app "django.contrib.redirects"
which will help u in redirecting URL's
Regards
//Vikalp
On Sun, Nov 21, 2010 at 4:18 PM, mongoose wrote:
> Hi
On Mon, Aug 24, 2009 at 3:29 PM, sandravigo wrote:
>
> Hi, friends. I have a problem.
> I created a function (main) that displays a list on the first page
> (index.html) of site administration. The problem is that for example,
> if I put in URLConf: (r '^ admin /(.*)',' myproject.views.main '),
>
't shows the view by default of
Django admin (r '^ admin /(.*)', admin.sites.root'), which shows all
app and the managing of users and groups. Do you know what I mean?
So I have doubts about how to make that homepage display both things:
view by default of Django, and my list.
I
Your friend, free...@gmail.com, has sent you the following Google Gadget
and included this message:
See "eary write" on your Google homepage »
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
Bing wrote:
Now if I want to deploy the website so that other people can visit it
under
my homepage space, http://name.of.some.site/~user/
what should I do?
You should use mod_python and apache. If that is too much trouble
(probably is based on how your setup sounds), use fastcgi. Don'
I have a small django application which is running on a development
server.
The platform is linux and I am able to view the django-powered pages
at the url like
http://127.0.0.1:8000/
Now if I want to deploy the website so that other people can visit it
under
my homepage space, http
Does anyone have a recommendation on which implementation to use when
creating a self-authentication system? There weren't that many, but
thought some of you might have experience with one.
On Apr 26, 6:01 pm, Bret W <[EMAIL PROTECTED]> wrote:
> And that's just one way, of course.
>
> On Apr 26,
And that's just one way, of course.
On Apr 26, 5:01 pm, Bret W <[EMAIL PROTECTED]> wrote:
> Sure.
>
> You'd need to create a profile model where this information could be
> stored.http://www.djangoproject.com/documentation/authentication/#storing-ad...
>
> You'd then just create forms for inputin
Sure.
You'd need to create a profile model where this information could be
stored.
http://www.djangoproject.com/documentation/authentication/#storing-additional-information-about-users
You'd then just create forms for inputing the parameters you wanted to
let users control.
http://www.djangoproj
homepage for users. I couldn't find anything. I
was looking for something either that users could pick colors or other
modules. I guess like a CMS, but not sure. Was looking for
direction. Thank you.
--~--~-~--~~~---~--~~
You received this message because yo
On 9/5/07, Atendo <[EMAIL PROTECTED]> wrote:
> urlpatterns = patterns('',
> (r'^$', 'myproj.app1.views.index'),
> (r'^$', 'myproj.app2.views.index'),
This won't work because you only get one view function per URL; the
same URL can't simultaneously route to multiple different views.
Generally the
I have one project with two apps.
I want to show a homepage that pulls in the two apps as homepage
widgets.
I tried the following approach...
urlpatterns = patterns('',
(r'^$', 'myproj.app1.views.index'),
(r'^$', 'myproj.app2.views.index'),
..
A.MrsLove.com, Multi-Million Dollar Homepage. Who are the Rich people /
companies and at the Top?
The bigger amount of promotion /payment will be arranged in topper
position of Multi-Million Dollar Homepage.
To reveal, kindly visit Multi-Million Dollar Homepage: http://A.MrsLove.com/
To How It
?python,???asii
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, s
2007/5/30, Panos Laganakos <[EMAIL PROTECTED]>:
>
> direct_to_template sounds like a nice way to handle the index page
> serving.
>
> But how can it be fed the dynamic content of one or more apps to
> display? Not sure how it's supposed to be done
> through "template tags" as Michel mentioned.
Yo
direct_to_template sounds like a nice way to handle the index page
serving.
But how can it be fed the dynamic content of one or more apps to
display? Not sure how it's supposed to be done
through "template tags" as Michel mentioned.
On May 24, 5:42 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> w
Index page doesn't need a view. Generally it is a static page, if it
have some dynamic data, it access through template tags. So, I follow
this structure:
project/
project/templates/
project/templates/main/
project/templates/main/base.html
project/templates/main/index.html
project/templates
2007/5/23, David Larlet <[EMAIL PROTECTED]>:
> Hi,
>
> I'm juste curious, where did you put your homepage view when you've
> got a project with a lot of apps? Is there a best practice here?
>
Thanks a lot for your answers!
David
--~--~-~--~~--
> I'm juste curious, where did you put your homepage view when you've
> got a project with a lot of apps? Is there a best practice here?
An extra app? Man... Views do not *have* to reside inside some app.
Whenever I have some view not specific to some app, I create a module
> I'm juste curious, where did you put your homepage view when you've
> got a project with a lot of apps?
I create a django app called "site" and put my index view in there. I
also put any template tags and filters that will be used across the
pr
> I usually make a home controller. Then I typically use an index
> action for the home page view.
This is normally what I do as well, I just define a view called
'index' somewhere and point r'^$' at it.
But this seems like a good place for me to ask a related question I've
often puzzled over:
> I usually make a home controller. Then I typically use an index
> action for the home page view.
This is normally what I do as well, I just define a view called
'index' somewhere and point r'^$' at it.
But this seems like a good place for me to ask a related question I've
often puzzled over:
> I usually make a home controller. Then I typically use an index
> action for the home page view.
This is normally what I do as well, I just define a view called
'index' somewhere and point r'^$' at it.
But this seems like a good place for me to ask a related question I've
often puzzled over:
> I usually make a home controller. Then I typically use an index
> action for the home page view.
This is normally what I do as well, I just define a view called
'index' somewhere and point r'^$' at it.
But this seems like a good place for me to ask a related question I've
often puzzled over:
On 5/23/07, David Larlet <[EMAIL PROTECTED]> wrote:
> I'm juste curious, where did you put your homepage view when you've
> got a project with a lot of apps? Is there a best practice here?
I usually make a home controller. Then I typically use an index
action for the home
wrote:
>
> Hi,
>
> I'm juste curious, where did you put your homepage view when you've
> got a project with a lot of apps? Is there a best practice here?
>
> Thanks,
> David
>
> >
>
--
Julio Nobrega - http://www.inerciasensorial.com.br
--~--~
Hi,
I'm juste curious, where did you put your homepage view when you've
got a project with a lot of apps? Is there a best practice here?
Thanks,
David
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
81 matches
Mail list logo