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

24 views
Skip to first unread message

Erik Mvñoz

unread,
Jan 5, 2017, 7:38:25 AM1/5/17
to django...@googlegroups.com
Hello, I am Erik... noob to Django... i am getting a circular import error on importing urls.py.... any suggestions

On Wed, Jan 4, 2017 at 5:03 AM, <django...@googlegroups.com> wrote:
Robin Lery <robi...@gmail.com>: Jan 04 12:43AM +0530

I creating an app where users can post with its related tags:
 
class Tag(models.Model):
name = models.CharField(max_length=255, unique=True)
 
class Post(models.Model):
user = ...more
Robin Lery <robi...@gmail.com>: Jan 04 12:53AM +0530

I forgot to mention, there is another class:
 
 
class Photo(models.Model):
user = models.ForeignKey(User)
file = models.ImageField()
tags = models.ManyToManyField(Tag) ...more
Michel Rodrigues <michelm...@gmail.com>: Jan 04 04:45AM -0800

You may try add a related_query_name in the field activity:
 
activity = GenericRelation(Activity, related_query_name="post_tags")
...more
Michel Rodrigues <michelm...@gmail.com>: Jan 04 04:51AM -0800

Sorry, the point is a list of tags as argument, you can do this:
 
>>> Activity.objects.filter(tags_act__tags__name__in=['tag1','tag3'])
<QuerySet [<Activity: michel>, <Activity: michel>, <Activity: ...more
Michel Rodrigues <michelm...@gmail.com>: Jan 04 04:58AM -0800

Sorry, the point is a list of tags as argument, you can do this:
 
 
Activity.objects.filter(tags_act__tags__name__in=['tag1','tag3']).distinct()
<QuerySet [<Activity: michel>, <Activity: michel>, ...more
JJEMBA KENNETH <jjemba...@gmail.com>: Jan 04 03:46PM +0300

Hey guys can any one help with the right way to handle file upload in
django. Am new to the framework.
 
--
Jjemba kenneth
...more
Avraham Serour <tov...@gmail.com>: Jan 03 03:16PM +0200

please post your migration file and the error
 
...more
jorr...@gmail.com: Jan 03 02:13PM -0800

This field:
 
activity_date = models.DateField('Datum', default='17/06/2017')
 
 
Results in this migration:
 
class Migration(migrations.Migration):
 
dependencies = [
('activities', ...more
Avraham Serour <tov...@gmail.com>: Jan 04 12:34PM +0200

DateField is a representation of datetime.date, so you should assign a date
object and not a string, sqlite is more forgiving and doesn't complain so
much in many cases
 
...more
jorr...@gmail.com: Jan 04 03:47AM -0800

The fact that some backends are more forgiving is exactly my point. Maybe
the migrations engine should always force a datetime object (or at least a
YYYY-MM-DD notation) to make it work ...more
Avraham Serour <tov...@gmail.com>: Jan 04 02:01PM +0200

Well this is the reality right now, if you think the framework is acting
wrong you may file a bug report.
 
In my opinion the wrong side of the equation is you, the framework is just ...more
Nilesh <niles...@gmail.com>: Jan 04 04:56PM +0530

Really, I did not face this issue in past.
 
It may be some setup issue. Some app is not registered properly. Check
admin.py or settings.py
 
On Wed, Jan 4, 2017 at 3:18 PM, pritesh modi ...more
Andrew Godwin <and...@aeracode.org>: Jan 03 08:08AM -0800


> Where should I put the online users? Should I write my own boilerplate
> code to do what a Group does to remove inactive users from the Group, for
> what I will use to hold the online users?
...more
"Utku Gültopu" <ugul...@gmail.com>: Jan 04 12:56AM -0800

It is for sending fresh data to users. Let's say user A follows users B, C and D. However, only users A, B and C are online. Then only B's and C's data should be sent to user A. Because user D's data ...more
"Utku Gültopu" <ugul...@gmail.com>: Jan 04 12:58AM -0800

It is for sending fresh data to users. Let's say user A follows users B, C and D. However, only users A, B and C are online. Then only B's and C's data should be sent to user A. Because user D's data ...more
"Utku Gültopu" <ugul...@gmail.com>: Jan 04 03:22AM -0800

It is for sending fresh data to users. Let's say user A follows users B, C and D. However, only users A, B and C are online. Then only B's and C's data should be sent to user A. Because user D's data ...more
anjal...@gmail.com: Jan 04 12:54AM -0800

In local host, for a particular query data(which is very huge) is coming up
but for the same query in apache it is taking too much of time like 1 hr or
more. I tried using caching of a page , even ...more
"Flávio Cardoso" <flavio....@gmail.com>: Jan 03 07:11PM -0800

Wow, that's sad.... :(
 
I'll port it to C#
 
 
 
Em sexta-feira, 30 de dezembro de 2016 19:52:49 UTC-2, Flávio Cardoso
escreveu:
 
...more
Vijay Khemlani <vkhe...@gmail.com>: Jan 04 01:26AM -0300

Yeah, because hitting a roadblock only happens in Django
 
Why are you trying to read the request directly? django parses it in
request.body, request.GET, request.POST, request.FILES, etc
...more
Aref <arefn...@gmail.com>: Jan 03 06:08PM -0800

I have downloaded the django-attachments app from GitHub. I followed the
instructions for installation and usage but can't seem to make things work.
Has anyone used this app and if so could you ...more
Michal Petrucha <michal....@koniiiik.org>: Jan 03 10:17PM +0100

On Tue, Jan 03, 2017 at 01:56:00PM +0100, Simone Federici wrote:
> django release.
 
> best
> Simone
 
Hi Simone and Ramesh,
 
Unfortunately, at the moment, composite primary keys are still not ...more
Fred Stluka <fr...@bristle.com>: Jan 03 03:07PM -0500

Mike,
 
Yeah. Makes sense. Good thought about the UUIDs! My success
 
was due partly to the fact that I could afford to move entire tables,
 
not just selected rows, and could move all related ...more
Joey Wilhelm <tarka...@gmail.com>: Jan 03 10:39AM -0800

Hello everybody!
 
I want to send a call out to all Django developers, or those interested in
the Django framework in the Phoenix, AZ area. I have taken over a
long-dormant meetup group[1], and ...more
Deven Bhooshan <devenb...@gmail.com>: Jan 03 09:55AM -0800

Hi Andrew,
Any plans of making some out of the box django-channels profiling framework
?
 
 
On Friday, December 30, 2016 at 2:26:40 PM UTC+5:30, Andrew Godwin wrote:
...more
Andrew Godwin <and...@aeracode.org>: Jan 03 09:58AM -0800

On Tue, Jan 3, 2017 at 9:55 AM, Deven Bhooshan <devenb...@gmail.com>
wrote:
 
> Hi Andrew,
> Any plans of making some out of the box django-channels profiling
> framework ?
...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.

Matthew Pava

unread,
Jan 5, 2017, 9:27:14 AM1/5/17
to django...@googlegroups.com

We don’t typically import urls.py.  Why are you importing it, and where are you importing it?

To unsubscribe from this group and stop receiving emails from it send an email to django-users...@googlegroups.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...@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/CAN_YnNr21CU186-bk8K97hjz9Fr4t3XKGM3Ae1iBYV9AMjcLcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages