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

From: [email protected] [mailto:[email protected]] On 
Behalf Of Erik Mvñoz
Sent: Thursday, January 5, 2017 3:03 AM
To: [email protected]
Subject: Re: Abridged summary of [email protected] - 25 updates in 
12 topics

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, 
<[email protected]<mailto:[email protected]>> wrote:
[email protected]<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/topics>

Google 
Groups<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>

[http://www.google.com/images/icons/product/groups-32.png]<https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>

Today's topic summary
View all 
topics<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/topics>
·         Filter a contenttype with the content object's field - 5 Updates
·         How to handle file upload - 1 Update
·         DateField default value in SQLite and Postgres - 5 Updates
·         Query on AppRegistryNotReady: Apps aren't loaded yet error - 1 Update
·         How to send user specific data on Group().send() on Channels? - 4 
Updates
·         Facing performance issue bcoz of db data - 1 Update
·         request.read() is empty in POST - 2 Updates
·         attachments - 1 Update
·         Multiple Fields as Primary Key in MySQL - Django 1.10 - 1 Update
·         multiple databases - two questions - 1 Update
·         Phoenix, AZ meetup group - 1 Update
·         Django-Channels strange slowdowns - how to profile? - 2 Updates
Filter a contenttype with the content object's field 
<http://groups.google.com/group/django-users/t/3de57fd2e566604f?utm_source=digest&utm_medium=email>
Robin Lery <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/1408e33fdbb500?utm_source=digest&utm_medium=email>

Robin Lery <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/1409e9d77b58ef?utm_source=digest&utm_medium=email>

Michel Rodrigues <[email protected]<mailto:[email protected]>>: 
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<http://groups.google.com/group/django-users/msg/144256f0018f0b?utm_source=digest&utm_medium=email>

Michel Rodrigues <[email protected]<mailto:[email protected]>>: 
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<http://groups.google.com/group/django-users/msg/14429af95fb5ca?utm_source=digest&utm_medium=email>

Michel Rodrigues <[email protected]<mailto:[email protected]>>: 
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<http://groups.google.com/group/django-users/msg/1442fc8f8566e0?utm_source=digest&utm_medium=email>

Back to top
How to handle file upload 
<http://groups.google.com/group/django-users/t/7d12a5d969003c6a?utm_source=digest&utm_medium=email>
JJEMBA KENNETH <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/14426362f5434b?utm_source=digest&utm_medium=email>

Back to top
DateField default value in SQLite and Postgres 
<http://groups.google.com/group/django-users/t/ab45d96073db214?utm_source=digest&utm_medium=email>
Avraham Serour <[email protected]<mailto:[email protected]>>: Jan 03 03:16PM 
+0200

please post your migration file and the error

...more<http://groups.google.com/group/django-users/msg/13f570fc18ea9d?utm_source=digest&utm_medium=email>

[email protected]<mailto:[email protected]>: 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<http://groups.google.com/group/django-users/msg/1412b2a4d1b4c4?utm_source=digest&utm_medium=email>

Avraham Serour <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/143b2ec0bcc887?utm_source=digest&utm_medium=email>

[email protected]<mailto:[email protected]>: 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<http://groups.google.com/group/django-users/msg/143f20e405fa69?utm_source=digest&utm_medium=email>

Avraham Serour <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/143fe707844d93?utm_source=digest&utm_medium=email>

Back to top
Query on AppRegistryNotReady: Apps aren't loaded yet error 
<http://groups.google.com/group/django-users/t/618912f7d7eb5b5c?utm_source=digest&utm_medium=email>
Nilesh <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/143dff6cb36785?utm_source=digest&utm_medium=email>

Back to top
How to send user specific data on Group().send() on Channels? 
<http://groups.google.com/group/django-users/t/880ad7d4c82e584f?utm_source=digest&utm_medium=email>
Andrew Godwin <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/13fed1dbb610a4?utm_source=digest&utm_medium=email>

"Utku Gültopu" <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/1435c6f3f811ca?utm_source=digest&utm_medium=email>

"Utku Gültopu" <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/1435de8556ebd9?utm_source=digest&utm_medium=email>

"Utku Gültopu" <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/143dbf42812016?utm_source=digest&utm_medium=email>

Back to top
Facing performance issue bcoz of db data 
<http://groups.google.com/group/django-users/t/9d8905276d58ab8d?utm_source=digest&utm_medium=email>
[email protected]<mailto:[email protected]>: 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<http://groups.google.com/group/django-users/msg/1435a4d205e2ad?utm_source=digest&utm_medium=email>

Back to top
request.read() is empty in POST 
<http://groups.google.com/group/django-users/t/ba65540aed3a4e34?utm_source=digest&utm_medium=email>
"Flávio Cardoso" <[email protected]<mailto:[email protected]>>: 
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<http://groups.google.com/group/django-users/msg/1422f256cd81e9?utm_source=digest&utm_medium=email>

Vijay Khemlani <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/14270f9919dfa7?utm_source=digest&utm_medium=email>

Back to top
attachments 
<http://groups.google.com/group/django-users/t/e384ddeed110a891?utm_source=digest&utm_medium=email>
Aref <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/141f88604c94a6?utm_source=digest&utm_medium=email>

Back to top
Multiple Fields as Primary Key in MySQL - Django 1.10 
<http://groups.google.com/group/django-users/t/a72fa627b5853552?utm_source=digest&utm_medium=email>
Michal Petrucha 
<[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/140fb702fc3a61?utm_source=digest&utm_medium=email>

Back to top
multiple databases - two questions 
<http://groups.google.com/group/django-users/t/8770b4067c409b70?utm_source=digest&utm_medium=email>
Fred Stluka <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/140bd6d87eb412?utm_source=digest&utm_medium=email>

Back to top
Phoenix, AZ meetup group 
<http://groups.google.com/group/django-users/t/4b1f81eda8941fdd?utm_source=digest&utm_medium=email>
Joey Wilhelm <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/14072c3f99ab44?utm_source=digest&utm_medium=email>

Back to top
Django-Channels strange slowdowns - how to profile? 
<http://groups.google.com/group/django-users/t/fda1bc3f2febd906?utm_source=digest&utm_medium=email>
Deven Bhooshan <[email protected]<mailto:[email protected]>>: 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<http://groups.google.com/group/django-users/msg/1404ac3ac8acdd?utm_source=digest&utm_medium=email>

Andrew Godwin <[email protected]<mailto:[email protected]>>: Jan 03 09:58AM 
-0800

On Tue, Jan 3, 2017 at 9:55 AM, Deven Bhooshan 
<[email protected]<mailto:[email protected]>>
wrote:

> Hi Andrew,
> Any plans of making some out of the box django-channels profiling
> framework ?
...more<http://groups.google.com/group/django-users/msg/1404d0f45cca3f?utm_source=digest&utm_medium=email>

Back to top
You received this digest because you're subscribed to updates for this group. 
You can change your settings on the group membership 
page<https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/django-users/join>.
To unsubscribe from this group and stop receiving emails from it send an email 
to 
[email protected]<mailto:[email protected]>.


--
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 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
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<https://groups.google.com/d/msgid/django-users/CAN_YnNr21CU186-bk8K97hjz9Fr4t3XKGM3Ae1iBYV9AMjcLcA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/6a876cbd5020417484fb31054ef0ce3d%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to