Tuesday, July 30, 2013

Re: Django Dashboard

I'd suggest you take a look at django-admin-tools.

Le mardi 30 juillet 2013 14:09:00 UTC-4, Martin Marrese a écrit :
Hi, 

I'm looking for a Django Dashboard to implement on an existing app. A colleague recommended Dashing (1), but thats a Sinatra app, however I do like how it looks.

Does anyone have a recommendation ?

Thanks, 
Martín

Links
1 - http://shopify.github.io/dashing/

--
Martin Marrese
marrese@gmail.com
+54 911 5112 9448

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Django Dashboard

2013/7/30 Martin Marrese <marrese@gmail.com>:
> Hi,
>
> I'm looking for a Django Dashboard to implement on an existing app. A
> colleague recommended Dashing (1), but thats a Sinatra app, however I do
> like how it looks.
>
> Does anyone have a recommendation ?
>
> Thanks,
> Martín
>
> Links
> 1 - http://shopify.github.io/dashing/


You can try with pydashie, a python port of ruby version:
https://github.com/evolvedlight/pydashie

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Django Dashboard

Hi, 

I'm looking for a Django Dashboard to implement on an existing app. A colleague recommended Dashing (1), but thats a Sinatra app, however I do like how it looks.

Does anyone have a recommendation ?

Thanks, 
Martín

Links
1 - http://shopify.github.io/dashing/

--
Martin Marrese
marrese@gmail.com
+54 911 5112 9448

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: django

2013/7/30 Ajaykumar <ajaypckumar@gmail.com>:
> When i doing my first application named books in django,got an error named
> TEMPLATEDOESNOTEXIT, and an exception value
> 'admin_doc/missing_docutils.html'.Please inform me how can i solve this
> error.
>

Add 'django.contrib.admindocs' to the INSTALLED_APPS.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Fwd:



---------- Forwarded message ----------
From: Robin Lery <robinlery@gmail.com>
Date: Tue, Jul 30, 2013 at 9:22 PM
Subject:
To: django-users@googlegroups.com


Hello,
I am stuck at a point where i should be able to type in a search query on the page and it django should get back a list of matching pages if any. But it doesnt show me any pages, even though its there, and gives me an erros:

Page not found (404)

No FlatPage matches the given query.


Please point me as to where am doing wrong. Thank you.

my views.py:

from django.http import HttpResponse
from django.template import loader, Context
from django.contrib.flatpages.models import FlatPage

def search(request):
query = request.GET['q']
resuts = FlatPage.objects.filter(content__icontains=query)
template = loader.get_template('search/search.html')
context = Context({
'query':query,
'resuts':resuts
})
response = template.render(context)
return HttpResponse(response)

urls.py:

from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/', include(admin.site.urls)),
    (r'^tinymce/(?P<path>.*)$', 'django.views.static.serve', { 'document_root': 'C:/Users/Kakar/web/cms/static/js/tinymce/' }),
    (r'', include('django.contrib.flatpages.urls')),
    (r'^search/$', 'search.views.search'),
)

settings.py:
In the installed-apps, I have installed 'search'.

default.html:

<html>
<head>
<title>{{ flatpage.title }}</title>
</head>
<body>
<form method="get" action="/search/">
{% csrf_token %}
<p><label for="id_q">Search:</label>
<input type="text" name="q" id="id_q" />
<input type="submit" value="Submit" /></p>
</form>
<h1>{{ flatpage.title }}</h1>
{{ flatpage.content }}
</body>
</html>

search.html:

<html>
<head>
<title>Search</title>
</head>
<body>
<p>You searched for "{{query}}"; the results are listed below.</p>
{% if results %}
<ul>
{% for page in results %}
<li>
<a href="{{page.get_absolute_url}}">{{page.title}}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No results.</p>
{% endif %}
</body>
</html>


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: [GD 40883] Re: Haystack

On Tue, Jul 30, 2013 at 8:24 PM, Kamal Kaur <kamal.kaur188@gmail.com> wrote:

>
> I have created the template for haystack search and can open it, enter
> any query. But there is no connectivity with database yet and its not
> giving results. What I have uderstood is that, in haystack, indexes
> for models are created. In documentation they say that indexes are
> created after running that command. But its not happening.
> Also there was a command (./manage.py build_solr_schema ), whose
> result was to be placed in schema.xml file (
> solr-4.4.0/example/example-DIH/solr/solr/conf) And it was not given
> whether to append the file or replace the content.

So, did it place the results in schema.xml file? Is there any such
file and it has appropriate permissions to write the content.

--
Sandeep Kaur
E-Mail: mkaurkhalsa@gmail.com
Blog: sandymadaan.wordpress.com

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Re: Help getting started: Which server setup for a beginner? Apache? lighttpd? To use or not virtualenv?

On Tue, Jul 30, 2013 at 10:48 AM, Jared Nielsen <nielsen.jared@gmail.com> wrote:
> I started setting up Apache with mod_wsgi, but ran into innumerable config
> errors. After some Googling about, I found a number of suggestions to use
> lighttpd instead. Installed that and more troubleshooting. And what's this
> about gunicorn?


if you're a total beginer, and doesn't have any previous experience
setting up and deploying web servers, I'd advice to just avoid the
issue until you're comfortable with Django itself.

IOW: stay with the development server (the one that runs with "python
manage.py runserver"). When you have a project or two that want to
deploy, then start planning your deployment strategy.

in any case, i think many people agree that gunicorn is one of the
easiest to setup. I myself like nginx+uWSGI, and many others like
Apache+mod_wsgi, but none of these are needed for development.

--
Javier

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.