Network analysis tool

2018-10-25 Thread daniel main
Hello. I want to create a network troubleshooting tool that runs on a web
interface. How efficient is Django channels. Are there alternatives? Thank
you

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAEEZZ8LZoCfrDgurp7F8KqPveDyydpchHgraF_%3DbLbeVcvXgLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Experienced django developer is needed.

2018-10-25 Thread BBG
I have one project on django1.0 and python 2.7. If anyone is interested 
than contact me... 

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/c3554b00-bf20-4aea-97a4-be485ebc6bea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to check if I installed Django well?

2018-10-25 Thread Rakhi Vysyaraju
You can use pip install Django if you have already downloaded the tar 
package.
and then go to python via your shell using the python command and then say 
import Django 
you will see the next command line without any errors.

On Tuesday, March 16, 2010 at 4:49:19 PM UTC+7, Archidjango wrote:
>
> Hey all,
>
> I'm a fresh Python/Django user and I'm experiencing a couple of
> problems to check if Django is correctly installed on my machine. Well
> I guess it's not honestly.
>
> I used Windows XP and untarred Django 1.1.1 directly on my C: drive.
>
>
> When I try to import django in IDLE, this is what I get:
>
> >>> import django
>
> Traceback (most recent call last):
>   File "", line 1, in 
> import django
> ImportError: No module named django
>
> 
>
> Basically, I think it's downloaded and untarred but not installed
> well.
>
> I tried to follow the instructions on the django website, but I'm not
> sure to understand well what is meant by the following:
>
> tar xzvf Django-1.1.1.tar.gz
> cd Django-1.1.1
> sudo python setup.py install
>
> Could anyone help me please? I'm really a beginner in programmation
> (as you probably have guessed), so don't be scared to oversimplify ;-)
>
> Thanks a lot in advance!
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/cfe31594-2608-48dd-9db8-006a81834c33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: I Suck

2018-10-25 Thread Motaz Hejaze
Edson my Bro ,

all you need is to make simple thing , make just a traditional
Home/About/Contact website , i can walk you through it if you want ..

On Thu, Oct 25, 2018 at 12:10 AM Gerardo Palazuelos Guerrero <
gerardo.palazue...@gmail.com> wrote:

> Dude,
> We are all like you, at some point. I'm also an experienced programmer,
> and Django has been kind of different. I'm still learning.
>
> Listen the other guys: set a goal and solve it. Simple.
>
> Good luck.
>
> --
> Gerardo Palazuelos Guerrero
>
>
>
> On Wed, Oct 24, 2018 at 8:35 AM Edson Rodrigues 
> wrote:
>
>> This is just an outburst. I have been trying to learn Django for months
>> and I do not learn. I already paid for a course at Udemy, followed
>> tutorials on YouTube, followed the Django Project tutorial and nothing
>> worked to me. I am a failure as a programmer / developer. :(
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@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/15ac9bcf-7b41-40a0-ae59-46fc915e03d2%40googlegroups.com
>> 
>> .
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/CAJ8iCyO3BaNL8SbPpXdg8U23RzcLgE3OFKZotrbAsyU3kN0Fzw%40mail.gmail.com
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAHV4E-cjCOF_gZcVeuRx7%2BwD5FSUMCpvU%2BPACcsSvJifqScttA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't install mysqlclient

2018-10-25 Thread lemme smash
you sure you have mysql server installed?
also, if you plan to start development, i recommend you to seriously think 
about learning linux. it's a way more fit developers needs

On Thursday, October 25, 2018 at 2:27:43 PM UTC+3, Rabil Abdullahi wrote:
>
>  
>
> I received error message while trying to download mysqlclient using---pip 
> install mysqlclient. Please help me out.
>
> Sent from Mail  for 
> Windows 10
>
>  
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/9b0c0310-5d5e-4dab-be5d-3ebb6e185520%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django auto-deletes field related to MySQL Transactions

2018-10-25 Thread C. Kirby
The delete method in your views, yes, but also how you build the button. 
You should use a form with a hidden field (the id to delete), and the 
button ("Delete") should be the form submit. Then on the view side you 
should use a standard form handler (if request.POSTetc) to handle 
things. What is probably happening is the browser is automatically 
following the  tag to do prefetching, and causing the record to delete. 
Browsers will not prefetch "POST" verbs (so, a form post)

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/68ba9ea5-0ce3-445d-ab08-04053d1720ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Experienced django developer is needed.

2018-10-25 Thread Peter Mudoko
I am peter experienced Django and odoo developer . Can i get the
requirements and budget.

On Thu, 25 Oct 2018, 14:27 BBG,  wrote:

> I have one project on django1.0 and python 2.7. If anyone is interested
> than contact me...
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/c3554b00-bf20-4aea-97a4-be485ebc6bea%40googlegroups.com
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CABfSCxfyA0CGvK2cGn%3DWe4n9d4qjH0t1ss7ykOsNqbj2%2BZ20HA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Experienced django developer is needed.

2018-10-25 Thread Sanjeev Singh
Hello,

I'm Sanjeev Singh, a college student. I have done several projects on 
django. I'm ready to do this project. Can I get the details regarding this 
project.

On Thursday, October 25, 2018 at 4:56:38 PM UTC+5:30, BBG wrote:
>
> I have one project on django1.0 and python 2.7. If anyone is interested 
> than contact me... 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/9e13221d-c0cd-4ace-86d1-3b7eca2652e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Experienced django developer is needed.

2018-10-25 Thread Darrell Hall

> On Oct 25, 2018, at 10:56 AM, Sanjeev Singh  
> wrote:
> 
> Hello,
> 
> I'm Sanjeev Singh, a college student. I have done several projects on django. 
> I'm ready to do this project. Can I get the details regarding this project.
> 
> On Thursday, October 25, 2018 at 4:56:38 PM UTC+5:30, BBG wrote:
> I have one project on django1.0 and python 2.7. If anyone is interested than 
> contact me... 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to django-users@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/9e13221d-c0cd-4ace-86d1-3b7eca2652e8%40googlegroups.com
>  
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/28DC3AAF-4734-415A-9877-E0383D117817%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Experienced django developer is needed.

2018-10-25 Thread Darrell Hall
Hello, my name is Darrell Hall.   I’m an experienced Django developer and would 
like more information, i.e. type of project, schedule timelines, budget (if it 
applies).  I’m ready to work on this project as soon as you are.  Contact me at 
halldarrell...@gmail.com or dah...@me.com.  Thanks
> On Oct 25, 2018, at 10:56 AM, Sanjeev Singh  
> wrote:
> 
> Hello,
> 
> I'm Sanjeev Singh, a college student. I have done several projects on django. 
> I'm ready to do this project. Can I get the details regarding this project.
> 
> On Thursday, October 25, 2018 at 4:56:38 PM UTC+5:30, BBG wrote:
> I have one project on django1.0 and python 2.7. If anyone is interested than 
> contact me... 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to django-users@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/9e13221d-c0cd-4ace-86d1-3b7eca2652e8%40googlegroups.com
>  
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/4ED3A552-AD36-4F8D-A267-B576DEDD9B21%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Experienced django developer is needed.

2018-10-25 Thread Holger Otto ANDRE
Hello

Can you give me more detials?
regards

*Holger André*
Skype: hjoab1

Mobile/Whatsapp/Telegram : +(506) 8883-9645

Website:  https://www.linkedin.com/in/hjoab/

San José, Costa Rica, Central America.



The information contained in this e-mail is privileged and confidential,
this information is intended only for the use of the individual or entity
to which it is addressed. If you are not the intended recipient, you are
hereby notified that any use, dissemination, distribution, copy or taking
action in reliance upon this email is strictly prohibited. If you have
received this e-mail in error, please immediately notify the sender and
then delete this e-mail in its entirety.



On Thu, Oct 25, 2018 at 5:27 AM BBG  wrote:

> I have one project on django1.0 and python 2.7. If anyone is interested
> than contact me...
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/c3554b00-bf20-4aea-97a4-be485ebc6bea%40googlegroups.com
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAL0dL5aJO0F9GnSVcpD2Gm471KRo7uDuPyuDFpHK6ZFJtREsUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Is assertIs being misused in Tutorial Part 5?

2018-10-25 Thread John Meyer
tests.py in the tutorial 
 gives this 
example:

self.assertIs(future_question.was_published_recently(), False)

This implies that assertIs tests equality of two booleans.  The code works, 
but not for the right reason, as per the language documentation 
, the assertIs 
does not test equality but tests whether two object references point to the 
same object:

>
> assertIs(*first*, *second*, *msg=None*)
> assertIsNot(*first*, *second*, *msg=None*)
> Test that *first* and *second* evaluate (or don’t evaluate) to the same 
> object.
> New in version 3.1.


This invites tests being written that are testing other kinds of equality 
and the results are not reliable.  There are a few posts 
 on 
StackOverflow indicating this confusion is causing confusion in the 
community.  I want to update the tutorial to use assertEquals or assertTrue. 
  I'm not in charge of the documentation so I'd settle for posting a bug 
request for this in the right place, if the point is valid. 

Thoughts?

 


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/4a3852af-4809-45b9-bd34-bcc37ee57966%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is assertIs being misused in Tutorial Part 5?

2018-10-25 Thread Andréas Kühne
I think it actually is correct, because False is always False - so
technically they are correct. However, that being said, I agree with you
fully, as long as we change it to self.assertFalse(), which I think is the
correct thing to do here.d

Regards,

Andréas


Den tors 25 okt. 2018 kl 21:42 skrev John Meyer :

> tests.py in the tutorial
>  gives this
> example:
>
> self.assertIs(future_question.was_published_recently(), False)
>
> This implies that assertIs tests equality of two booleans.  The code
> works, but not for the right reason, as per the language documentation
> , the
> assertIs does not test equality but tests whether two object references
> point to the same object:
>
>>
>> assertIs(*first*, *second*, *msg=None*)
>> assertIsNot(*first*, *second*, *msg=None*)
>> Test that *first* and *second* evaluate (or don’t evaluate) to the same
>> object.
>> New in version 3.1.
>
>
> This invites tests being written that are testing other kinds of equality
> and the results are not reliable.  There are a few posts
>  on
> StackOverflow indicating this confusion is causing confusion in the
> community.  I want to update the tutorial to use assertEquals or assertTrue.
>   I'm not in charge of the documentation so I'd settle for posting a bug
> request for this in the right place, if the point is valid.
>
> Thoughts?
>
>
> 
> 
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/4a3852af-4809-45b9-bd34-bcc37ee57966%40googlegroups.com
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAK4qSCeq%2BDCPj1Br328tdZkJG9iJatcUDg4ToCPom7Sf%3DaYWOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is assertIs being misused in Tutorial Part 5?

2018-10-25 Thread Simon Charette
The reason why assertIs is used instead of assertFalse is that the latter 
actually tests for falsy values and can sometimes hide bugs.

For example, assertFalse(0) and assertFalse(None) will pass and 
assertTrue(42) will as well.

If you're testing a method that is supposed to return a boolean value 
you're better off using assertIs.

Cheers,
Simon

Le jeudi 25 octobre 2018 15:42:00 UTC-4, John Meyer a écrit :
>
> tests.py in the tutorial 
>  gives this 
> example:
>
> self.assertIs(future_question.was_published_recently(), False)
>
> This implies that assertIs tests equality of two booleans.  The code 
> works, but not for the right reason, as per the language documentation 
> , the 
> assertIs does not test equality but tests whether two object references 
> point to the same object:
>
>>
>> assertIs(*first*, *second*, *msg=None*)
>> assertIsNot(*first*, *second*, *msg=None*)
>> Test that *first* and *second* evaluate (or don’t evaluate) to the same 
>> object.
>> New in version 3.1.
>
>
> This invites tests being written that are testing other kinds of equality 
> and the results are not reliable.  There are a few posts 
>  on 
> StackOverflow indicating this confusion is causing confusion in the 
> community.  I want to update the tutorial to use assertEquals or assertTrue. 
>   I'm not in charge of the documentation so I'd settle for posting a bug 
> request for this in the right place, if the point is valid. 
>
> Thoughts?
>
>
>  
> 
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/58f6d409-98db-49c1-884b-6c631ece8023%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


New entry tries to use an existing unique id

2018-10-25 Thread Michel Lavoie
Hi,

I migrated my previous sqlite3 installation to postgresql, following this 
discussion: 
https://groups.google.com/forum/#!msg/django-users/VGG8GTAX4l0/tQUW20HcAwAJ

I'm not facing another weird issue: Whenever I try to create a new item 
(finance.models.Debtor, see 
https://github.com/miek770/huitcent/blob/master/finance/models.py), django 
fails and tells me that primary key (1) is taken. Indeed, the next free id 
is around 3100. The time after that it tries to take id (2), then (3), and 
so on. The error looks like this:

IntegrityError at /finance/2/add_transaction/

duplicate key value violates unique constraint "finance_debtor_pkey"
DETAIL:  Key (id)=(3) already exists.

Request Method: POST
Request URL: https://myserver/finance/2/add_transaction/
Django Version: 2.1.2
Exception Type: IntegrityError
Exception Value: 

duplicate key value violates unique constraint "finance_debtor_pkey"
DETAIL:  Key (id)=(3) already exists.

Exception Location: /srv/http/huitcent/lib/python3.5/site-packages/django/db
/backends/utils.py in _execute, line 85
Python Executable: /srv/http/huitcent/bin/uwsgi
Python Version: 3.5.3
Python Path: 

['.',
 '',
 '/srv/http/huitcent/lib/python35.zip',
 '/srv/http/huitcent/lib/python3.5',
 '/srv/http/huitcent/lib/python3.5/plat-arm-linux-gnueabihf',
 '/srv/http/huitcent/lib/python3.5/lib-dynload',
 '/usr/lib/python3.5',
 '/usr/lib/python3.5/plat-arm-linux-gnueabihf',
 '/srv/http/huitcent/lib/python3.5/site-packages']

Server time: jeu, 25 Oct 2018 21:00:14 -0400

As I mentioned before, there are indeed existing entries with these ids. My 
table definition in postgresql (version 10 looks like this:

forum=# \d+ finance_debtor
Table 
"public.finance_debtor"
 Column |  Type   | Collation | Nullable |  
Default   | Storage | Stats target | Description
+-+---+--++-+--+-
 id | integer |   | not null | 
nextval('finance_debtor_id_seq'::regclass) | plain   |  |
 transaction_id | integer |   | not null |  
  | plain   |  |
 user_id| integer |   | not null |  
  | plain   |  |
Indexes:
"finance_debtor_pkey" PRIMARY KEY, btree (id)
"finance_debtor_transaction_id_7098fd56" btree (transaction_id)
"finance_debtor_user_id_90f84080" btree (user_id)
Foreign-key constraints:
"finance_debtor_transaction_id_7098fd56_fk_finance_t" FOREIGN KEY 
(transaction_id) REFERENCES finance_transaction(id) DEFERRABLE INITIALLY 
DEFERRED   
"finance_debtor_user_id_90f84080_fk_auth_user_id" FOREIGN KEY (user_id) 
REFERENCES auth_user(id) DEFERRABLE INITIALLY DEFERRED

And here's postgresql's log output:

2018-10-25 21:00:14.052 EDT [13645] forum@forum ERROR:  duplicate key value 
violates unique constraint "finance_debtor_pkey"
2018-10-25 21:00:14.052 EDT [13645] forum@forum DETAIL:  Key (id)=(3) 
already exists.
2018-10-25 21:00:14.052 EDT [13645] forum@forum STATEMENT:  INSERT INTO 
"finance_debtor" ("user_id", "transaction_id") VALUES (10, 3) RETURNING 
"finance_debtor"."id"

It looks weird... the SQL statement looks just fine, it's not specifying 
the id but the other fields... It (the table) was created automatically by 
django, and I transferred the data using CSV files, making sure the column 
order matched the new database.

I also tried addind the following line to my Debtor model, with no impact:

id = models.AutoField(primary_key=True)


Any idea what could be wrong here? Does this look like an internal issue 
for postgresql, or an error during the table's initiation by django, or 
something else?

Thanks,

Michel

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/ab6877fd-235a-4916-bfca-f1f2c0f0f3e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Should I use Django-Rest-Framework for performance reasons, despite not needing an externally-consumable API?

2018-10-25 Thread Tyler Lynch
I have no need for an externally consumable API, but I am interested in 
using Django-Rest-Framework simply for performance reasons. 

I'm led to believe that by decoupling my front and back end and then simply 
consuming the DRF api within views, that I can setup a better caching 
system? Does this make sense? Using DRF from an architectural standpoint 
(with the goal of optimizing caching & performance) despite not needing an 
externally used API? Or am I totally off base and confused? Any advice 
would be much appreciated.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/8b55ff9a-e915-4546-bf3c-1b20a25e4826%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.