Re: Abridged summary of django-users@googlegroups.com - 35 updates in 12 topics

33 views
Skip to first unread message

juliana kofi

unread,
Sep 13, 2016, 3:55:44 PM9/13/16
to django...@googlegroups.com
hello am trying to upload photos on my blog how do i do that using django and python

On Tue, Sep 13, 2016 at 3:10 PM, <django...@googlegroups.com> wrote:
Matt Thompson <water...@gmail.com>: Sep 12 07:59PM -0700

Hi Simon,
 
Thank you very much for your prompt reply! I've added the following to my
app, which seems to work just fine:
 
@receiver(models.signals.post_migrate) ...more
Simon Charette <chare...@gmail.com>: Sep 13 05:58AM -0700

Hi Matt,
 
The recommended pattern is to register signal receivers in your app
config's
ready() method[1]. From the Django documentation:
 
> Where should this code live?
 
> Strictly speaking, ...more
alessandro.henrique@labcodes.com.br: Sep 12 09:31AM -0700

Hello,
 
I'm currently trying to migrate a project from django 1.5.1 to the newest
version. I got stuck in the version 1.7. The only test that is not passing
was made to try to get the e-mail ...more
Timothy Steele <steeleti...@gmail.com>: Sep 13 12:33AM -0700

please i try my best but i can display my models in a templates i have just
created.
 
*Please have a look at the codes in the models.py file*
 
from django.db import models
from ...more
ludovic coues <cou...@gmail.com>: Sep 13 09:44AM +0200

Can you try this in your template ?
 
{{ bookmarks|pprint }}
{% for bookmark in bookmaks %}
<br>{{ bookmark|pprint }}
{% endfor %}
 
Also, in your for loop, you use bookmarks.title, notice the ...more
Timothy Steele <steeleti...@gmail.com>: Sep 13 01:00AM -0700

<https://lh3.googleusercontent.com/-AiF038nKeBk/V9exW5xi3gI/AAAAAAAAAE8/QHZ6B-WTzWspm9f0iFdOMaxGROHR33XDwCLcB/s1600/hap.png>
please i like your help but it now return in the database, but in can see ...more
ludovic coues <cou...@gmail.com>: Sep 13 10:14AM +0200

Sorry, I should have double checked instead of copy/pasting.
{% for bookmark in bookmaks %} < you forgot a r in bookmarks.
 
 
--
 
Cordialement, Coues Ludovic
+336 148 743 42
...more
Timothy Steele <steeleti...@gmail.com>: Sep 13 01:30AM -0700

thanks i have seen it, but i need to only display *Packt Publishing* but
it give this *<Bookmark: Packt Publishing>* in addition
 
On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy ...more
ludovic coues <cou...@gmail.com>: Sep 13 10:48AM +0200

Yeah, it's because of |pprint. It is a debug tools. It can help with a few
issue like model not having a __str__ method (not your case). It also show
how many item are in the queryset (one in your ...more
Timothy Steele <steeleti...@gmail.com>: Sep 13 02:00AM -0700

thank you very mach it has work. i am most grateful, any way this did not
let me sleep the hole night
 
On Tuesday, September 13, 2016 at 8:33:53 AM UTC+1, Timothy Steele wrote:
...more
Dimitris Kougioumtzis <dim...@gmail.com>: Sep 12 06:24AM -0700

I have an application with django framework. The users have in their usb
sticks their certificates. How to access their certificates from the django
application to the client computer ;
...more
Erik Cederstrand <erik+...@cederstrand.dk>: Sep 13 09:58AM +0200

> Den 12. sep. 2016 kl. 15.24 skrev Dimitris Kougioumtzis <dim...@gmail.com>:
 
> I have an application with django framework. The users have in their usb sticks their certificates. ...more
Hanh Kieu <hhk...@gmail.com>: Sep 12 10:02PM -0700

Hey guys, I'm creating a translation app that allows you to translate from
one object to the other. My translation model has two foreign keys that
links to two words, and on the admin site I want ...more
"Luis Zárate" <luis...@gmail.com>: Sep 12 11:29PM -0600

See https://github.com/django-parler/django-parler
 
 
--
"La utopía sirve para caminar" Fernando Birri
...more
ludovic coues <cou...@gmail.com>: Sep 13 07:38AM +0200

Have you looked at
https://docs.djangoproject.com/en/1.10/ref/contrib/admin/#inlinemodeladmin-objects
?
It's still early morning here so I haven't to it with your specific use
case but the django ...more
Mike Dewhirst <mi...@dewhirst.com.au>: Sep 13 03:41PM +1000

On 13/09/2016 3:02 PM, Hanh Kieu wrote:
 
> class Translation(models.Model):
> #word1 belongs to one word word1 = ...more
Hanh Kieu <hhk...@gmail.com>: Sep 12 11:06PM -0700

"So your Translation needs a FK to each of two different words. "
What would this look like?
 
On Monday, September 12, 2016 at 10:42:10 PM UTC-7, Mike Dewhirst wrote:
...more
Mike Dewhirst <mi...@dewhirst.com.au>: Sep 13 05:53PM +1000

On 13/09/2016 4:06 PM, Hanh Kieu wrote:
> "So your Translation needs a FK to each of two different words. "
> What would this look like?
 
class Translation(models.Model):
#word1 belongs to ...more
Rich Rauenzahn <rrau...@gmail.com>: Sep 12 04:05PM -0700

I'm working on a project that needs to occasionally render very large
tables -- I'm picking hundreds of thousands of cells as a test point for
trying out back end implementation scalability.
...more
ankitj...@gmail.com: Sep 12 03:28AM -0700

Hello,
 
I have a Python project that is using a Selenium script to emulate a user.
I am running this script within a Django TestCase and I use the
StaticLiveServerTestCase subclass to run a live ...more
Tim Graham <timog...@gmail.com>: Sep 12 01:38PM -0700

Yes, a minimal example project that demonstrates the issue would be
helpful. My guess is that you have a mistake in your tests that's causing
some state to leak between them.
 
...more
Christophe Pettus <x...@thebuild.com>: Sep 12 12:35PM -0700

I've encountered a service that does postbacks as part of its API. The only authentication mechanism is putting the username and password in the POST URL in the form:
...more
Carl Meyer <ca...@oddbird.net>: Sep 12 03:40PM -0400

Hi Christophe,
 
On 09/12/2016 03:35 PM, Christophe Pettus wrote:
 
> https://user:pa...@example.com/api/endpoint
 
> Is there a portable way of extracting that information from the ...more
Christophe Pettus <x...@thebuild.com>: Sep 12 01:14PM -0700


> Yes, it should be in `request.META['HTTP_AUTHORIZATION']`; see
> https://www.djangosnippets.org/snippets/243/ for an example.
 
... and now it works. OK, clearly, either me or the server need ...more
Jonathan Cheng <jonatha...@gmail.com>: Sep 12 07:34AM -0700

i use href="{% static '/assets/css/main.css' %}"
and it worked
but if i want to use the all files in static
is there any way to do?
 
ludovic coues於 2016年9月12日星期一 ...more
Jonathan Cheng <jonatha...@gmail.com>: Sep 12 07:36AM -0700

i change into href="{% static '/assets/css/main.css' %}
and it worked
but if i want to use the all files in static
is there any way to do it?
 
ludovic coues於 2016年9月12日星期一 ...more
Jonathan Cheng <jonatha...@gmail.com>: Sep 12 07:57AM -0700

i use href="{% static '/assets/css/main.css' %}
and the css worked
but i want to use the all files in assets
is there any other way to do it?
 
ludovic coues於 2016年9月12日星期一 ...more
ludovic coues <cou...@gmail.com>: Sep 12 08:13PM +0200

manage.py collectstatic is made for that. It will copy every static file in
your project into a single directory. Even those included in django like
the css of django admin.
 
 
 
--
...more
miaox...@gmail.com: Sep 11 06:46PM -0700

def contact(request):
error = []
if request.method == 'POST':
if not request.POST.get('subject', ''):
error.append("please enter a subject")
if not request.POST.get('message',''): ...more
ludovic coues <cou...@gmail.com>: Sep 12 07:42PM +0200

Is there anything in the console ?
 
 
--
 
Cordialement, Coues Ludovic
+336 148 743 42
...more
M Hashmi <mhash...@gmail.com>: Sep 12 06:45AM -0700

Hello Alexandra,
 
You are at the right forum. But chatting as ticket needs some workout. Each
message needs to be contain with all ticketing properties and upon
selection of a message it should ...more
Jonathan Adcock <jonny....@gmail.com>: Sep 12 06:42AM -0700

You could try https://djangopackages.org/
 
On Monday, September 12, 2016 at 12:18:38 PM UTC+1, Alexandra wrote:
...more
Sergiy Khohlov <skho...@gmail.com>: Sep 12 05:14PM +0300

Hello Alexandra,
Have have no answer due to no question. You have decided to do
application. It is good , but you have not informed us about steps which
are done. In tho case nobody can help you. ...more
ashish...@finoit.co.in: Sep 11 11:24PM -0700

I've configured user's username field in following way
 
username = models.CharField(
_('username'),
max_length=30,
unique=True,
help_text=_('Required. ...more
Daniel Roseman <dan...@roseman.org.uk>: Sep 12 06:45AM -0700


> Though django raises an error for maximum length in shell.
 
> Is it a bug? Or am I missing something.
 
This has nothing to do with being in the shell.
 
Validators aren't run on save, and ...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to django-users+unsubscribe@googlegroups.com.

Constantine Covtushenko

unread,
Sep 15, 2016, 5:34:39 AM9/15/16
to django...@googlegroups.com
Hi Juliana,

Did check this django doc page?
It describes basics of how to work with files. The same stands for images.

Also you can check one of the available extensions.
I was using django-filer. It has a great integration options for the admin site. And it allows to organise your photos to folders/subfolders structure.

I hope that helps.
 

--
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...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF-G%2B0DZnVJ4QixeK-g-pHLdxM-z6nSz1vxcxWasVW_OwJkvAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mandeep Tondak

unread,
Sep 15, 2016, 6:33:42 AM9/15/16
to django...@googlegroups.com
Hey You can use AVTAR package for images upload


For more options, visit https://groups.google.com/d/optout.



--
Warm Regard:-
Mandeep Kumar
     



Reply all
Reply to author
Forward
0 new messages