You don't need Django for that.
The idea behind responsive images is that you can scale them and adapt to
users screen using css.
On Thursday, November 20, 2014 8:05:45 AM UTC+2, ThomasTheDjangoFan wrote:
>
> Hi guys,
>
> do you have a tip for implementing adaptive (responsive) images in django?
On 2014-11-20 08:05 AM, ThomasTheDjangoFan wrote:
do you have a tip for implementing adaptive (responsive) images in django?
Basically I want to server smaller images to mobile-users and bigger
images to desktop users.
I don't really now about best practices for SEO and Siteload-Performance.
A
2014-11-20 9:44 GMT+01:00 Alex Strickland :
> On 2014-11-20 08:05 AM, ThomasTheDjangoFan wrote:
>
> do you have a tip for implementing adaptive (responsive) images in django?
>>
>> Basically I want to server smaller images to mobile-users and bigger
>> images to desktop users.
>> I don't really n
Hi,
I follow the doc to test the login system. I set a view function with
@login_required to show successful login message.
In the html, a link like:
Login
The URLconf under 'account' namespace contains one url:
url(r'^login/$', 'django.contrib.auth.views.login', name='login',)
It shows th
Check your settings.py for TEMPLATE_DIRS
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Thu, Nov 20, 2014 at 7:48 AM, 顏大剛 wrote:
> Hi,
>
> I follow the doc to test the login system. I set a view function with
> @login_required to show successful login message.
>
> In the html, a link
On Thursday, 20 November 2014 11:39:09 UTC, Yen wrote:
>
> Hi,
>
> I follow the doc to test the login system. I set a view function with
> @login_required to show successful login message.
>
> In the html, a link like:
> Login
>
> The URLconf under 'account' namespace contains one url:
> url
Actually yo could do it with CSS alone...
You can have the 2 images on the server and add both in the html
And having the CSS like:
On Thu, Nov 20, 2014, 3:59 AM Andreas Kuhne
wrote:
> 2014-11-20 9:44 GMT+01:00 Alex Strickland :
>
>> On 2014-11-20 08:05 AM, ThomasTheDjangoFan wrote:
>>
>>
Sorry, I hitted send instead of enter...
As I was saying, you can have both images in the server, and have them both
in the HTML
1. img class="big" src="path/to/big
2. img class="small" src="path to small"
Then in the CSS you add
.small {display: none;}
and a media query for small screens
You ca
I would recommend that you read the book "Two Scoops of Django" which
covers many (all?) of the issues involved with maintaining
dev/staging/production environments, including the kinds of deployment
questions you're asking. I think it will answer a lot of your questions,
then maybe you could a
2014-11-20 13:32 GMT+01:00 Jorge Andrés Vergara Ebratt
:
> Sorry, I hitted send instead of enter...
>
> As I was saying, you can have both images in the server, and have them
> both in the HTML
> 1. img class="big" src="path/to/big
> 2. img class="small" src="path to small"
>
> Then in the CSS yo
It really depends on what your end goal is.
tl;dr - the fastest fix for you will probably be to use CloudFlare polish
[1]
Long answer:
Responsive images are fine, but useless on mobile devices if your original
image is not mobile optimized (due to bandwidth/speed limitations on most
networks, if
AListApart recently published a great article on responsive
images: http://alistapart.com/article/responsive-images-in-practice
On Thursday, November 20, 2014 1:05:45 AM UTC-5, ThomasTheDjangoFan wrote:
>
> Hi guys,
>
> do you have a tip for implementing adaptive (responsive) images in django?
>
On Nov 19, 2014, at 2:24 PM, jogaserbia wrote:
> Thanks for the help Carl. Also, thanks for filing the ticket.
>
> Every bit of info helps. I really do like Python and Django so far.
>
> I am just wondering whether I should just quit trying to make GeoDjango work
> on my windows machine
Hi Thomas,
Thanks for the reply. Yes, I am using a virtualenv for this project. I'll
try to stick it out with GeoDjango, but I really do not know what to do now
to try to continue on with the install.
At this point in my Django career, I am pretty much a monkey banking on a
keyboard when t
I' ve seen that south is for older django versions than 1.7, I continue
having the same problem, I wonder if the issue will be in my views, when I
save all the information, please, have a look to my code:
if 'formulariopozo' in request.POST:
formulario = PozosForm(request.POST)
i
> Thanks for the reply. Yes, I am using a virtualenv for this project. I’ll
> try to stick it out with GeoDjango, but I really do not know what to do now
> to try to continue on with the install.
I would probably stop “continuing”, and go back to the start. afaict the
installation instructi
Hi Collin,
On 17/11/14 21:19, Collin Anderson wrote:
Hi Alasdair,
I'm upgrading to Django 1.7, and updating my forms to use the new
form.add_errors() method.
I have one remaining pattern which uses form._errors.
class MyForm(forms.Form):
...
def clean():
I got it, thank you.
Yen
2014-11-20 20:18 GMT+08:00 Daniel Roseman :
> On Thursday, 20 November 2014 11:39:09 UTC, Yen wrote:
>>
>> Hi,
>>
>> I follow the doc to test the login system. I set a view function with
>> @login_required to show successful login message.
>>
>> In the html, a link like:
I'm working with a Postgresql database with Django. Because of licensing
reasons, I can't use psycopg2 , so I'm using the alternative pygresql.
I don't need to use the Django ORM at all, I simply need the cursor for
cur.execute() and cur.fetchall().
Since pygresql doesn't have a Django backen
I'm having a bit of a perplexing issue with Django 1.7.1 running on Arch
Linux using Python 3.4.2. If it matters I'm using Pycharm 3.4 as my IDE.
I have the following Python modules installed in my virtualenv:
bcrypt
boto
braintree
cffi
django-braces
django-debug-toolbar
psycopg2
pycparser
requ
Dumb question, but there is a "main_content" block in base.html, right?
I'm assuming the "Please register..." message shows but the form doesn't?
Or does that message not show up?
-James
On Nov 20, 2014 12:26 PM, "Some Developer"
wrote:
> I'm having a bit of a perplexing issue with Django 1.7.1
I am setting up a new django project and I'm getting the dreaded
'Could not import settings' error. I've set up many django projects
before, and never had this problem. The differences with this one is
that it's using python3.4, django 1.7, and it's on a VM (all my others
were on <1.7, python 2 and
On 20/11/14 21:15, James Schneider wrote:
Dumb question, but there is a "main_content" block in base.html, right?
I'm assuming the "Please register..." message shows but the form
doesn't? Or does that message not show up?
-James
Yes main_content block exists and the page displays the forms s
If you set the settings TEMPLATE_DEBUG to True, does it display any errors?
On Thu, Nov 20, 2014 at 6:39 PM, Some Developer
wrote:
> On 20/11/14 21:15, James Schneider wrote:
>
>> Dumb question, but there is a "main_content" block in base.html, right?
>>
>> I'm assuming the "Please register..."
On 20/11/14 22:07, Vijay Khemlani wrote:
If you set the settings TEMPLATE_DEBUG to True, does it display any errors?
No.
--
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 a
Hi there,
I'd like to try and add django-locking
(https://github.com/RobCombs/django-locking) to my Django project's admin
page. (version 1.6.8)
I've installed the egg file and fixed an import statement that used
deprecated code. When running step 7 of the installation steps (see github
page
*I have since fixed the above issue, but am encountering another one.*
It's now saying in the console:
Not Found: /admin/ajax/test/common/configuration/1/is_locked/
But, entering /admin/ajax/test/common/configuration/1/ into a browser is
working perfectly - showing me the first Configuration ite
termopro,
I have automated my deployments mostly separate from my
version control.
The other team members and I write, test, commit, and push our
code changes to our Git repo. I then pull, review, test, update
the version number, commit, tag, and push to Git.
Then I use a shell script (on Mac,
Hi Django users,
has anyone seen a similar traceback to this:
2014-11-20 14:48:14.190659500 gunicorn[20952]: ERROR: Error handling request
2014-11-20 14:48:14.190661500 Traceback (most recent call last):
2014-11-20 14:48:14.190661500 File
"/build/toolchain/noarch/gunicorn-18.0/lib/python2.7/si
Right. Very good article.
The gist is to use the new HTML5 "" and ""
elements along with the "sizes" and "srcset" attributes of
"", and perhaps the CSS3 "calc()" function to specify
multiple sizes of the same image, so the browser only
downloads the right one for the current screen size, all in
Hi termopro,
TO automate the deployment, look for fabric + cuisie (CHef like fabric) .
You will bored with the command line in each deployment, and you will need
fast and standard way of deploying to each new machine.
Fred way is good, but need time to type and remember all the steps. WIth
fabri
Hi,
Do other templates work in that folder?
Collin
On Monday, November 17, 2014 4:12:27 PM UTC-5, Andreas Ka wrote:
>
>
> > Show your view code
> The tutorial did not create any view.py for the admin pages
>
>
>
> See
> https://docs.djangoproject.com/en/1.7/intro/tutorial02/#customize-the-admi
Hi,
Yes, I think the entire admin view is wrapped in @atomic, so I don't think
it's possible to end the transaction before the view finishes. Maybe you
could somehow handle it in a middleware?
Collin
On Monday, November 17, 2014 6:38:56 PM UTC-5, PRyan wrote:
>
> I'm trying to force a db comm
I'm following the django tutorial online and I'm stuck on the migrate bit
(bottom of the post).
1. Do I need to install south ? Tried to install but am getting a similar
error. OpenKey() argument...
2. Do I need to install sqlite3 separately ? Running import sqlite inside
the python prompt see
I am using django comments app and am using bootstrap template for UI.
In bootstrap I have;
Name
and other div classes to fill in mame , email, url and comments.
Django comments app's
{% get_comment_form for post as form %}
allows manually render fields like;
Also, is there a better alternative to comments app? thanks
On Friday, 21 November 2014 09:10:40 UTC+5:30, Code wrote:
>
> I am using django comments app and am using bootstrap template for UI.
>
> In bootstrap I have;
>
>
> Name
> value="" aria-required="true" placeholder="Your
I have a model that has a foreignKey to a model. I want
to be able to edit the model within the admin
in moduleApp.models I have something like:
class module(models.Model):
HTML = models.TextField( blank=True, null=True )
in articleApp.models I have something like:
class article(models.Mo
If you are using Django 1.7 why don't you use the built in migrations:
https://docs.djangoproject.com/en/dev/topics/migrations/
On Fri 21 Nov 2014 at 05:19 Alvin Panugayan wrote:
> I'm following the django tutorial online and I'm stuck on the migrate bit
> (bottom of the post).
>
> 1. Do I need t
Hi,
I have been facing a nightmare with django comments app.
see: https://groups.google.com/forum/#!topic/django-users/7B2umISG-9I
I found out it has been depreciated and so wanted to know suitable
alternatives. Disqus is one but is this suitable for local environment, I
am a beginner so need
39 matches
Mail list logo