workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev | help | <https://docs.djangoproject.com/en/1.11/topics/db/models/#automatic-primary-key-fields> | 2017-08-08T07:54:35.786396 | Tandra | pythondev_help_Tandra_2017-08-08T07:54:35.786396 | 1,502,178,875.786396 | 88,903 |
pythondev | help | sorry didn't know you meant AutoField | 2017-08-08T07:55:03.795641 | Tandra | pythondev_help_Tandra_2017-08-08T07:55:03.795641 | 1,502,178,903.795641 | 88,904 |
pythondev | help | set another field to be your primary key explicitly sounds like what you're after | 2017-08-08T07:55:33.805269 | Tandra | pythondev_help_Tandra_2017-08-08T07:55:33.805269 | 1,502,178,933.805269 | 88,905 |
pythondev | help | i didn't get you can you say clearly | 2017-08-08T07:56:10.816578 | Verlie | pythondev_help_Verlie_2017-08-08T07:56:10.816578 | 1,502,178,970.816578 | 88,906 |
pythondev | help | we can put another key is primary Autofields not working | 2017-08-08T07:58:04.853917 | Verlie | pythondev_help_Verlie_2017-08-08T07:58:04.853917 | 1,502,179,084.853917 | 88,907 |
pythondev | help | we can put another field is primary Autofields not working | 2017-08-08T07:58:31.863028 | Verlie | pythondev_help_Verlie_2017-08-08T07:58:31.863028 | 1,502,179,111.863028 | 88,908 |
pythondev | help | all models require one field to be a primary key, how exactly are you trying to use the autofield? | 2017-08-08T07:58:54.870513 | Tandra | pythondev_help_Tandra_2017-08-08T07:58:54.870513 | 1,502,179,134.870513 | 88,909 |
pythondev | help | is this going to be your primary key because if so then it should be set as true not false | 2017-08-08T07:59:25.880894 | Tandra | pythondev_help_Tandra_2017-08-08T07:59:25.880894 | 1,502,179,165.880894 | 88,910 |
pythondev | help | if it's not going to be your primary key then set another field as the primary_key=True but remove the false from autofield | 2017-08-08T08:00:06.895011 | Tandra | pythondev_help_Tandra_2017-08-08T08:00:06.895011 | 1,502,179,206.895011 | 88,911 |
pythondev | help | the error is just saying it cannot be false | 2017-08-08T08:00:41.907890 | Tandra | pythondev_help_Tandra_2017-08-08T08:00:41.907890 | 1,502,179,241.90789 | 88,912 |
pythondev | help | which is correct | 2017-08-08T08:00:47.910370 | Tandra | pythondev_help_Tandra_2017-08-08T08:00:47.910370 | 1,502,179,247.91037 | 88,913 |
pythondev | help | read the link i pasted, it explains it much clearer tbh | 2017-08-08T08:01:24.923592 | Tandra | pythondev_help_Tandra_2017-08-08T08:01:24.923592 | 1,502,179,284.923592 | 88,914 |
pythondev | help | <https://stackoverflow.com/questions/37709163/how-can-i-support-autofieldprimary-key-false-in-django> | 2017-08-08T08:02:10.939484 | Verlie | pythondev_help_Verlie_2017-08-08T08:02:10.939484 | 1,502,179,330.939484 | 88,915 |
pythondev | help | i go throw this link but its not working | 2017-08-08T08:02:45.951680 | Verlie | pythondev_help_Verlie_2017-08-08T08:02:45.951680 | 1,502,179,365.95168 | 88,916 |
pythondev | help | because you are using autofield django assumes you don't need to use it's built in primary key, create another field for id and set it to primary key whilst keeping your original non primary key, assuming thats what you meant | 2017-08-08T08:05:06.999363 | Tandra | pythondev_help_Tandra_2017-08-08T08:05:06.999363 | 1,502,179,506.999363 | 88,917 |
pythondev | help | also, you may need to manually delete the pk index for the table | 2017-08-08T08:05:30.008074 | Meg | pythondev_help_Meg_2017-08-08T08:05:30.008074 | 1,502,179,530.008074 | 88,918 |
pythondev | help | can’t remember if migrations will do that for you | 2017-08-08T08:05:39.011124 | Meg | pythondev_help_Meg_2017-08-08T08:05:39.011124 | 1,502,179,539.011124 | 88,919 |
pythondev | help | any sample code for how to do | 2017-08-08T08:06:12.022522 | Verlie | pythondev_help_Verlie_2017-08-08T08:06:12.022522 | 1,502,179,572.022522 | 88,920 |
pythondev | help | i am new to Django | 2017-08-08T08:06:22.026251 | Verlie | pythondev_help_Verlie_2017-08-08T08:06:22.026251 | 1,502,179,582.026251 | 88,921 |
pythondev | help | add a new field to the model class | 2017-08-08T08:07:44.054357 | Meg | pythondev_help_Meg_2017-08-08T08:07:44.054357 | 1,502,179,664.054357 | 88,922 |
pythondev | help | with `primary_key = True` | 2017-08-08T08:07:59.059283 | Meg | pythondev_help_Meg_2017-08-08T08:07:59.059283 | 1,502,179,679.059283 | 88,923 |
pythondev | help | delete `primary_key = True` from the autofield | 2017-08-08T08:08:11.063111 | Meg | pythondev_help_Meg_2017-08-08T08:08:11.063111 | 1,502,179,691.063111 | 88,924 |
pythondev | help | run migrations | 2017-08-08T08:08:14.064311 | Meg | pythondev_help_Meg_2017-08-08T08:08:14.064311 | 1,502,179,694.064311 | 88,925 |
pythondev | help | apply migrations | 2017-08-08T08:08:20.066523 | Meg | pythondev_help_Meg_2017-08-08T08:08:20.066523 | 1,502,179,700.066523 | 88,926 |
pythondev | help | id = models.AutoField() | 2017-08-08T08:09:28.089761 | Verlie | pythondev_help_Verlie_2017-08-08T08:09:28.089761 | 1,502,179,768.089761 | 88,927 |
pythondev | help | this doesn't seem like anything that is worth doing imo, both field will contain the same values, whats wrong with just using the default PK field? | 2017-08-08T08:09:44.095183 | Tandra | pythondev_help_Tandra_2017-08-08T08:09:44.095183 | 1,502,179,784.095183 | 88,928 |
pythondev | help | good question | 2017-08-08T08:09:56.099295 | Meg | pythondev_help_Meg_2017-08-08T08:09:56.099295 | 1,502,179,796.099295 | 88,929 |
pythondev | help | first_name = models.CharField(max_length=15, primary_key = True) | 2017-08-08T08:10:09.103757 | Verlie | pythondev_help_Verlie_2017-08-08T08:10:09.103757 | 1,502,179,809.103757 | 88,930 |
pythondev | help | like this only | 2017-08-08T08:10:14.105540 | Verlie | pythondev_help_Verlie_2017-08-08T08:10:14.105540 | 1,502,179,814.10554 | 88,931 |
pythondev | help | _not_ a good idea | 2017-08-08T08:10:45.116568 | Meg | pythondev_help_Meg_2017-08-08T08:10:45.116568 | 1,502,179,845.116568 | 88,932 |
pythondev | help | because a primary key needs to be unique | 2017-08-08T08:10:51.118796 | Meg | pythondev_help_Meg_2017-08-08T08:10:51.118796 | 1,502,179,851.118796 | 88,933 |
pythondev | help | thats why its typically an integer or UUID | 2017-08-08T08:11:09.125321 | Meg | pythondev_help_Meg_2017-08-08T08:11:09.125321 | 1,502,179,869.125321 | 88,934 |
pythondev | help | _why_ do you want the PK to be for the first name? | 2017-08-08T08:11:36.135550 | Meg | pythondev_help_Meg_2017-08-08T08:11:36.135550 | 1,502,179,896.13555 | 88,935 |
pythondev | help | cuid = models.AutoField(primary_key=False)
cust_id = "CUS" + str(cuid) (i want this field is primary_key) | 2017-08-08T08:12:04.145531 | Verlie | pythondev_help_Verlie_2017-08-08T08:12:04.145531 | 1,502,179,924.145531 | 88,936 |
pythondev | help | the AutoField seems moot here, so does the cust_id field | 2017-08-08T08:13:15.170340 | Tandra | pythondev_help_Tandra_2017-08-08T08:13:15.170340 | 1,502,179,995.17034 | 88,937 |
pythondev | help | ya in cust_id we concatinating string and id | 2017-08-08T08:13:52.182566 | Verlie | pythondev_help_Verlie_2017-08-08T08:13:52.182566 | 1,502,180,032.182566 | 88,938 |
pythondev | help | _why_? | 2017-08-08T08:14:15.190564 | Meg | pythondev_help_Meg_2017-08-08T08:14:15.190564 | 1,502,180,055.190564 | 88,939 |
pythondev | help | if this is not gonna be readable by whoever is using it, just use the built in PK field | 2017-08-08T08:14:21.192336 | Tandra | pythondev_help_Tandra_2017-08-08T08:14:21.192336 | 1,502,180,061.192336 | 88,940 |
pythondev | help | a simple integer as a unique identifier seems much simpler | 2017-08-08T08:14:55.204355 | Tandra | pythondev_help_Tandra_2017-08-08T08:14:55.204355 | 1,502,180,095.204355 | 88,941 |
pythondev | help | don’t make things more complex than you need to | 2017-08-08T08:15:09.209505 | Meg | pythondev_help_Meg_2017-08-08T08:15:09.209505 | 1,502,180,109.209505 | 88,942 |
pythondev | help | i want cust_id field as primary_key and cuid field is Autofield | 2017-08-08T08:15:19.213245 | Verlie | pythondev_help_Verlie_2017-08-08T08:15:19.213245 | 1,502,180,119.213245 | 88,943 |
pythondev | help | if you specifically need a str + unique id, still use the built in pk field and concat the name and id in another field | 2017-08-08T08:15:27.216310 | Tandra | pythondev_help_Tandra_2017-08-08T08:15:27.216310 | 1,502,180,127.21631 | 88,944 |
pythondev | help | keeping it simple works wonders :slightly_smiling_face: | 2017-08-08T08:15:53.225591 | Tandra | pythondev_help_Tandra_2017-08-08T08:15:53.225591 | 1,502,180,153.225591 | 88,945 |
pythondev | help | can you plese write code related to what i am asking that way | 2017-08-08T08:16:56.248775 | Verlie | pythondev_help_Verlie_2017-08-08T08:16:56.248775 | 1,502,180,216.248775 | 88,946 |
pythondev | help | because you are going about it the wrong way | 2017-08-08T08:17:09.253255 | Meg | pythondev_help_Meg_2017-08-08T08:17:09.253255 | 1,502,180,229.253255 | 88,947 |
pythondev | help | here i apply inherritance | 2017-08-08T08:17:36.263022 | Verlie | pythondev_help_Verlie_2017-08-08T08:17:36.263022 | 1,502,180,256.263022 | 88,948 |
pythondev | help | and what you’re trying to do is complex and unnecessary by any application of good practices | 2017-08-08T08:17:39.264063 | Meg | pythondev_help_Meg_2017-08-08T08:17:39.264063 | 1,502,180,259.264063 | 88,949 |
pythondev | help | i am inherritting some classes that why i dint want id is primary_key | 2017-08-08T08:18:18.277623 | Verlie | pythondev_help_Verlie_2017-08-08T08:18:18.277623 | 1,502,180,298.277623 | 88,950 |
pythondev | help | that doesn’t make any sense | 2017-08-08T08:23:41.396182 | Meg | pythondev_help_Meg_2017-08-08T08:23:41.396182 | 1,502,180,621.396182 | 88,951 |
pythondev | help | because when you inherit a model, you don’t inherit the id of the other model class | 2017-08-08T08:23:54.400966 | Meg | pythondev_help_Meg_2017-08-08T08:23:54.400966 | 1,502,180,634.400966 | 88,952 |
pythondev | help | but default it generate id on other classes | 2017-08-08T08:25:39.440295 | Verlie | pythondev_help_Verlie_2017-08-08T08:25:39.440295 | 1,502,180,739.440295 | 88,953 |
pythondev | help | ^ Sorry for wrapping text in snippet, but its still readable i think.. | 2017-08-08T08:29:23.526298 | Danille | pythondev_help_Danille_2017-08-08T08:29:23.526298 | 1,502,180,963.526298 | 88,954 |
pythondev | help | <@Danille> better luck in <#C0LMFRMB5|django> :slightly_smiling_face: | 2017-08-08T08:35:08.663712 | Ciera | pythondev_help_Ciera_2017-08-08T08:35:08.663712 | 1,502,181,308.663712 | 88,955 |
pythondev | help | :smile: | 2017-08-08T08:35:15.666380 | Danille | pythondev_help_Danille_2017-08-08T08:35:15.666380 | 1,502,181,315.66638 | 88,956 |
pythondev | help | <@Ciera> is it better to use Flask?) | 2017-08-08T08:37:27.720069 | Danille | pythondev_help_Danille_2017-08-08T08:37:27.720069 | 1,502,181,447.720069 | 88,957 |
pythondev | help | they are very different. there is not a better one. It depends what your goal is | 2017-08-08T08:38:08.736195 | Ciera | pythondev_help_Ciera_2017-08-08T08:38:08.736195 | 1,502,181,488.736195 | 88,958 |
pythondev | help | <@Ciera> Yeah, I know. Django has batteries, i thought.. But turns out that there is a lot of unnecessary complexity for my tasks. Maybe I just don’t understand it :slightly_smiling_face: | 2017-08-08T08:40:05.783295 | Danille | pythondev_help_Danille_2017-08-08T08:40:05.783295 | 1,502,181,605.783295 | 88,959 |
pythondev | help | conversely, flask doesn’t have many batteries | 2017-08-08T08:40:57.804380 | Meg | pythondev_help_Meg_2017-08-08T08:40:57.804380 | 1,502,181,657.80438 | 88,960 |
pythondev | help | I'm not a django expert but yeah django can be a bit heavy for some tasks | 2017-08-08T08:41:07.808764 | Ciera | pythondev_help_Ciera_2017-08-08T08:41:07.808764 | 1,502,181,667.808764 | 88,961 |
pythondev | help | but requires a greater level of understanding, I feel | 2017-08-08T08:41:07.808765 | Meg | pythondev_help_Meg_2017-08-08T08:41:07.808765 | 1,502,181,667.808765 | 88,962 |
pythondev | help | :point_up: | 2017-08-08T08:41:13.811136 | Ciera | pythondev_help_Ciera_2017-08-08T08:41:13.811136 | 1,502,181,673.811136 | 88,963 |
pythondev | help | if you’re familiar with web dev, django is pretty analogous to angular | 2017-08-08T08:41:32.818729 | Meg | pythondev_help_Meg_2017-08-08T08:41:32.818729 | 1,502,181,692.818729 | 88,964 |
pythondev | help | and flask with react/vue | 2017-08-08T08:41:37.820958 | Meg | pythondev_help_Meg_2017-08-08T08:41:37.820958 | 1,502,181,697.820958 | 88,965 |
pythondev | help | For web I wrote only a small ROR project and it is was a nightmare compare to django’s “magic” :slightly_smiling_face: | 2017-08-08T08:46:17.941610 | Danille | pythondev_help_Danille_2017-08-08T08:46:17.941610 | 1,502,181,977.94161 | 88,966 |
pythondev | help | haha | 2017-08-08T08:47:07.963623 | Meg | pythondev_help_Meg_2017-08-08T08:47:07.963623 | 1,502,182,027.963623 | 88,967 |
pythondev | help | sounds like you and <@Beula> have similar Ruby love :slightly_smiling_face: | 2017-08-08T08:47:20.969087 | Meg | pythondev_help_Meg_2017-08-08T08:47:20.969087 | 1,502,182,040.969087 | 88,968 |
pythondev | help | My ears were tingling <@Meg>. You summoned? ;) | 2017-08-08T09:03:04.402682 | Beula | pythondev_help_Beula_2017-08-08T09:03:04.402682 | 1,502,182,984.402682 | 88,969 |
pythondev | help | apparently so, genie | 2017-08-08T09:04:41.449081 | Meg | pythondev_help_Meg_2017-08-08T09:04:41.449081 | 1,502,183,081.449081 | 88,970 |
pythondev | help | <https://vignette1.wikia.nocookie.net/disney/images/c/c8/Genie5.png/revision/latest?cb=20130719001923> | 2017-08-08T09:05:08.462525 | Meg | pythondev_help_Meg_2017-08-08T09:05:08.462525 | 1,502,183,108.462525 | 88,971 |
pythondev | help | Apologies, but I won't break out in song and dance | 2017-08-08T09:08:14.553619 | Beula | pythondev_help_Beula_2017-08-08T09:08:14.553619 | 1,502,183,294.553619 | 88,972 |
pythondev | help | thanks :slightly_smiling_face: | 2017-08-08T09:08:48.570499 | Meg | pythondev_help_Meg_2017-08-08T09:08:48.570499 | 1,502,183,328.570499 | 88,973 |
pythondev | help | so you don’t bust out in moves, you break them completely? | 2017-08-08T09:09:12.582060 | Meg | pythondev_help_Meg_2017-08-08T09:09:12.582060 | 1,502,183,352.58206 | 88,974 |
pythondev | help | I think it is telling that the ruby dancce looks like someone crying | 2017-08-08T09:10:38.625201 | Vada | pythondev_help_Vada_2017-08-08T09:10:38.625201 | 1,502,183,438.625201 | 88,975 |
pythondev | help | Agreed, very insightful! | 2017-08-08T09:11:15.643752 | Beula | pythondev_help_Beula_2017-08-08T09:11:15.643752 | 1,502,183,475.643752 | 88,976 |
pythondev | help | What's the difference between os.environ.get and os.getenv ? | 2017-08-08T09:31:56.307588 | Lanita | pythondev_help_Lanita_2017-08-08T09:31:56.307588 | 1,502,184,716.307588 | 88,977 |
pythondev | help | <https://stackoverflow.com/questions/16924471/difference-between-os-getenv-and-os-environ-get> | 2017-08-08T09:34:11.383265 | Gabriele | pythondev_help_Gabriele_2017-08-08T09:34:11.383265 | 1,502,184,851.383265 | 88,978 |
pythondev | help | Anyone have any issues with the latest requests package and connecting to SSL? | 2017-08-08T09:49:13.898114 | Mendy | pythondev_help_Mendy_2017-08-08T09:49:13.898114 | 1,502,185,753.898114 | 88,979 |
pythondev | help | I.e., requests.get('<https://www.google.com>') gets a CERTIFICATE_VERIFY_FAILED error? | 2017-08-08T09:49:41.915572 | Mendy | pythondev_help_Mendy_2017-08-08T09:49:41.915572 | 1,502,185,781.915572 | 88,980 |
pythondev | help | On an EC2 instance (RHCE) I get this with a clean venv with the latest requests (2.18.3), but not with a clean venv with a slightly older one (2.13) | 2017-08-08T09:50:39.950922 | Mendy | pythondev_help_Mendy_2017-08-08T09:50:39.950922 | 1,502,185,839.950922 | 88,981 |
pythondev | help | But on my Mac, clean venv with the latest requests work | 2017-08-08T09:50:56.961006 | Mendy | pythondev_help_Mendy_2017-08-08T09:50:56.961006 | 1,502,185,856.961006 | 88,982 |
pythondev | help | Really weird | 2017-08-08T09:51:14.971734 | Mendy | pythondev_help_Mendy_2017-08-08T09:51:14.971734 | 1,502,185,874.971734 | 88,983 |
pythondev | help | It's working on my ubuntu laptop with `2.18.3` | 2017-08-08T09:53:32.056208 | Ciera | pythondev_help_Ciera_2017-08-08T09:53:32.056208 | 1,502,186,012.056208 | 88,984 |
pythondev | help | Yeah, like it said it's fine on my Mac | 2017-08-08T09:53:51.067254 | Mendy | pythondev_help_Mendy_2017-08-08T09:53:51.067254 | 1,502,186,031.067254 | 88,985 |
pythondev | help | maybe certificates that needs updating ? | 2017-08-08T09:54:05.075669 | Ciera | pythondev_help_Ciera_2017-08-08T09:54:05.075669 | 1,502,186,045.075669 | 88,986 |
pythondev | help | Python on the EC2 is 2.7.5 | 2017-08-08T09:54:17.083511 | Mendy | pythondev_help_Mendy_2017-08-08T09:54:17.083511 | 1,502,186,057.083511 | 88,987 |
pythondev | help | It uses certifi for the certs | 2017-08-08T09:54:23.087105 | Mendy | pythondev_help_Mendy_2017-08-08T09:54:23.087105 | 1,502,186,063.087105 | 88,988 |
pythondev | help | is it not a case of google's anti botting ? | 2017-08-08T09:54:27.089522 | Tandra | pythondev_help_Tandra_2017-08-08T09:54:27.089522 | 1,502,186,067.089522 | 88,989 |
pythondev | help | And I tested the cert file with openssl on the command line and it worked | 2017-08-08T09:54:40.097049 | Mendy | pythondev_help_Mendy_2017-08-08T09:54:40.097049 | 1,502,186,080.097049 | 88,990 |
pythondev | help | I.e., it has a fresh cert file packaged - it doesn't use the system cert | 2017-08-08T09:54:59.108921 | Mendy | pythondev_help_Mendy_2017-08-08T09:54:59.108921 | 1,502,186,099.108921 | 88,991 |
pythondev | help | does curl work ? | 2017-08-08T09:55:19.121688 | Ciera | pythondev_help_Ciera_2017-08-08T09:55:19.121688 | 1,502,186,119.121688 | 88,992 |
pythondev | help | <@Tandra> Don't know why that would only affect the newer version and only on the EC2 instance | 2017-08-08T09:55:41.135311 | Mendy | pythondev_help_Mendy_2017-08-08T09:55:41.135311 | 1,502,186,141.135311 | 88,993 |
pythondev | help | <@Ciera> Let me try | 2017-08-08T09:55:58.146119 | Mendy | pythondev_help_Mendy_2017-08-08T09:55:58.146119 | 1,502,186,158.146119 | 88,994 |
pythondev | help | if the ip has hit the url too many times it could potentially lock it out is what i meant | 2017-08-08T09:56:13.155605 | Tandra | pythondev_help_Tandra_2017-08-08T09:56:13.155605 | 1,502,186,173.155605 | 88,995 |
pythondev | help | But openssl AND slightly older requests work | 2017-08-08T09:56:18.158789 | Mendy | pythondev_help_Mendy_2017-08-08T09:56:18.158789 | 1,502,186,178.158789 | 88,996 |
pythondev | help | hence why it works elsewhere | 2017-08-08T09:56:19.159841 | Tandra | pythondev_help_Tandra_2017-08-08T09:56:19.159841 | 1,502,186,179.159841 | 88,997 |
pythondev | help | for a request to google homepage I think you should hit it pretty hard to be locked out | 2017-08-08T09:56:46.176855 | Ciera | pythondev_help_Ciera_2017-08-08T09:56:46.176855 | 1,502,186,206.176855 | 88,998 |
pythondev | help | Yeah | 2017-08-08T09:56:51.179799 | Mendy | pythondev_help_Mendy_2017-08-08T09:56:51.179799 | 1,502,186,211.179799 | 88,999 |
pythondev | help | Curl works | 2017-08-08T09:56:59.184773 | Mendy | pythondev_help_Mendy_2017-08-08T09:56:59.184773 | 1,502,186,219.184773 | 89,000 |
pythondev | help | well so I guess it's something in `requests` | 2017-08-08T09:57:28.202436 | Ciera | pythondev_help_Ciera_2017-08-08T09:57:28.202436 | 1,502,186,248.202436 | 89,001 |
pythondev | help | Need to figure out how to get more info | 2017-08-08T09:57:30.203554 | Mendy | pythondev_help_Mendy_2017-08-08T09:57:30.203554 | 1,502,186,250.203554 | 89,002 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.