I'm using Gulp.js to deal with my JavaScript and SASS files to
concatenate them and minify them but I'm unsure how to merge it with my
Django workflow. I want to be able to automatically minify the files
into one big JavaScript and CSS file to reduce HTTP requests and to
allow easy uploading to
Hi
I wanted to let my gunicorn server to log its config into a dedicated file.
Therefore I added an extra line:
exec ../bin/gunicorn ${DJANGO_WSGI_MODULE}:application \
--name $NAME \
--workers $NUM_WORKERS \
--user=$USER --group=$GROUP \
--log-level=debug \
--bind=unix:$SOCKFILE \
--log-file=$ERR
Hi All,
I want to change Home link at admin page to Admin Home -> blog -> ...
I tried by modifying base.html and base_site.html in my templates/admin/,
but it would work
{% block breadcrumbs %}
{% trans ' Admin Home' %}
{% if title %} › {{ title }}{% endif %}
{% endbl
Thanks for answering, but it was solve by myself as posted in here:
http://stackoverflow.com/questions/26817483/django-cannot-assign-uusername-message-recipient-must-be-a-user-instanc
*Ronaldo Bahia *
Diretor | JobConvo.com
Tel: 11 3280 6971
2014-11-12 18:57 GMT-02:00 Collin Anderson :
> Hello
Hello everybody, I'm working with django and geodjango and now I have a
problem with the geometry. I want that users can introduce coordinates in a
form and then, these are saved in a database (postgis).
Now, I can save X and Y coordinates, but the geom field doesn't work and I
don't know why.
Hi all,
I have this function that helps send emails with attachments:
def send_email(…):
…
msg = EmailMessage(
subject, body, send_from,
recipients_list, cc=cc, bcc=bcc,
headers={'Reply-To': reply_to})
msg.attach_alternative(html_body, "text/html")
Collin,
Your answers to so many questions lately have been very
helpful. Thanks!
Any reason you don't include the original question with your
reply? Either by top-posting, or by quoting an excerpt?
Would provide context to your answers, making them more
useful, especially to those of us readi
Hello all,
I did look at a few good tutorials and also did some hands-on with what
ever those tutorials had to offer.
Also did some of my own inovations with the tutorials/
I feel Django has greatly impressed me so far.
Now I think I can rightly ask my question and in a more specific way.
I woul
> Now, I wish to know, if I can use the template's capacity of generating
good forms and add good css without having a compulsion of using the model
part of Django?
yes.
On Thu, Nov 13, 2014 at 8:32 PM, Krishnakant Mane wrote:
> Hello all,
> I did look at a few good tutorials and also did some h
Personally I use a mixture of Vagrant, Docker, Gulp and makefiles to
automate the entire process.
You run the gulp process as a backgrounded job, and then the django
runserver in the foreground.. of course, this means gulp is then not
interactive.. if you want both to be inter, then you have to us
On Thu, Nov 13, 2014 at 1:32 PM, Krishnakant Mane wrote:
> I guess it is obvious that I only need the view and template part here.
and forms. they're often used with models (i.e. subclassing
ModelForm), but that's not a requirement.
also note that doing XMLRPC calls in view code will block t
Hi Javier,
On 11/14/2014 12:21 AM, Javier Guerra Giraldez wrote:
On Thu, Nov 13, 2014 at 1:32 PM, Krishnakant Mane wrote:
I guess it is obvious that I only need the view and template part here.
and forms. they're often used with models (i.e. subclassing
ModelForm), but that's not a require
On 11/14/2014 12:07 AM, Avraham Serour wrote:
Now, I wish to know, if I can use the template's capacity of generating
good forms and add good css without having a compulsion of using the model
part of Django?
yes.
Any good article, blog or tutorial for this?
Happy hacking.
Krishnakant.
--
You
I have a big django project with multiple apps, models, and the models have
quite a few fields.
A request came that asked for a page that allows the user to pick and choose
from the various fields to create their own query.
Does any precedent for this exist?
If I may use a car analogy, a djang
Hi,
i just implemented the uploadfile form on Django, and everything goes
greate, but i would like to do if it is possible to apply CSS styles to
the upload botton on the forms, Anybody knows this?
Regards
Russo
--
You received this message because you are subscribed to the Google Groups "Dj
Then you need to apply css to the form.
On Fri, Nov 14, 2014 at 1:16 AM, Russo wrote:
> Hi,
>
> i just implemented the uploadfile form on Django, and everything goes
> greate, but i would like to do if it is possible to apply CSS styles to the
> upload botton on the forms, Anybody knows this?
>
On 11/13/2014 02:33 PM, John Schmitt wrote:
> I have a big django project with multiple apps, models, and the models have
> quite a few fields.
>
> A request came that asked for a page that allows the user to pick and choose
> from the various fields to create their own query.
>
> Does any preced
Hi Kakar,
but i tried and there is not way to change the bottom style, see the
html code
enctype="multipart/form-data">
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.docfile.label_tag }} {{ form.docfile.help_text
}}
If you are manually expressing the form, then you can add classes and ID's
to any or all elements in the form. Even if you are using something like
the {{ form.as_p }} method to display the form, you can still style it
using CSS styles at the tag level. Just include a custom CSS file with your
temp
Hi John,
I built an app that basically lets you create an advanced search against a
model (or related models).
I am using it in production on two different applications. If you use it I
would be happy to have feedback.
You can find it here:
https://github.com/ckirby/django-modelqueryform
Kirby
HI Collin,
Thanks for pointing that out. Apart from the documentation, do you have any
examples of how to implement it?
Thank you.
On Thu, Nov 13, 2014 at 5:55 AM, Collin Anderson
wrote:
> Hello,
>
> From a front-end standpoint, I personally like EventSource for this,
> though you could also u
Hi,
Why does the following not give a final model form with 3 fields?
The two extra fields are not available. If I move them directly into the
model form, it works but I wanted to declare these fields in a separate
form because I plan on reusing them in several forms.
Is there a way to do that?
>
> Thanx Ari Davidow,
>
Can a new learning management system be developed using edx framework.
--
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+u
Hello,
I'm having this weird situation where if you go to my website like this
www.mywebsite.com
vs like this
www.mywebsite.com/index.html
I'm getting different values.
*urls.py*
urlpatterns += patterns('',
url(r'^index.html$', views.index,
name='index'),
Did some more testing, seems like it's completely skipping the views.py,
and going straight to loading index.html, any way to force it to
dynamically load?
On Thursday, November 13, 2014 9:37:27 PM UTC-6, RLF_UNIQUE wrote:
>
> Hello,
>
> I'm having this weird situation where if you go to my webs
I think I figured it out. I was building "in" satchmo and was previously
appending my urls to satchmo s, which probably has a catch all handler (r'^$')
already that was loading it's own view and rendering index.html but was hitting
my (overridden) template without any context since the views han
Hello Kyle,
I have no clue of what's happening at your Home object request but you
have two urls sharing the same name. You can allow the two urls in the
same pattern like this:
url(r'^(index\.html/)?$', views.index, name='index'),
Here, the group (index\.html/) can be found once or not at a
Hi Michael,
The best bet would be to write a custom widget, and override the render()
method. render() takes the name of the widget, the value to render, and a
dictionary of attr values. In your subclass, you can override this method
to inject the additional attributes based on the provided value
Modify your Meta class to include the extra fields on the model form. The
Meta classes are not inherited.
You may also need to override the save() method on your model form to
actually save the contents of those extra fields in the inherited form.
-James
On Nov 13, 2014 6:32 PM, "Michael" wrote:
On Wed, Nov 12, 2014 at 11:42 AM, Edward Armes
wrote:
> HI guys,
>
> Thanks for your responses, they have indeed answered all my questions
> pretty much as I was mainly looking for information on how to modify how
> Django accesses it's ORM layer. However from your answer it seems that it
> would
Hi,
I'm new to Django, and I've been following the tutorial up until the 2nd
part where it asks your to runserver, and then access the admin page.
However, when i try to access 127.0.0.1:8000/admin/ i get this error:
Here is the traceback:
*Environment:*
*Request Method: GET*
*Request URL:
> *Avraham Serour,*
Sorry man, I mean to heart django guys..
I am pretty much sure with mysql as a backend and javascript on client.
Would you help me decide on web server.. I had some research on Apache with
mod wsgi, gnuicorn and nginx.
Thank you.
*Ari Davidow,*
I really appreciate your sugg
32 matches
Mail list logo