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 | yea I'd just clone the repo to the server then point your apache+wsgi_mod at your repo | 2019-03-20T14:19:41.161000 | Claudine | pythondev_help_Claudine_2019-03-20T14:19:41.161000 | 1,553,091,581.161 | 14,221 |
pythondev | help | by using release folders (including updated virtualenvs in each release folder) you can roll back to deployments | 2019-03-20T14:20:06.162600 | Joette | pythondev_help_Joette_2019-03-20T14:20:06.162600 | 1,553,091,606.1626 | 14,222 |
pythondev | help | you can `git pull` to update the repo, or hook up some sweet git hooks to do it automatically when your upstream is updated | 2019-03-20T14:20:09.163000 | Claudine | pythondev_help_Claudine_2019-03-20T14:20:09.163000 | 1,553,091,609.163 | 14,223 |
pythondev | help | if you feel fancy you could even setup a quick webhook -> git pull on your server down the line | 2019-03-20T14:20:16.163300 | Carlo | pythondev_help_Carlo_2019-03-20T14:20:16.163300 | 1,553,091,616.1633 | 14,224 |
pythondev | help | but I wouldnt do much more | 2019-03-20T14:20:19.163600 | Carlo | pythondev_help_Carlo_2019-03-20T14:20:19.163600 | 1,553,091,619.1636 | 14,225 |
pythondev | help | with something like Fabric setting it up is close enough to trivial | 2019-03-20T14:20:20.163700 | Joette | pythondev_help_Joette_2019-03-20T14:20:20.163700 | 1,553,091,620.1637 | 14,226 |
pythondev | help | just as <@Claudine> said, git clone and pull as needed feels just fine for something like this | 2019-03-20T14:20:36.164200 | Carlo | pythondev_help_Carlo_2019-03-20T14:20:36.164200 | 1,553,091,636.1642 | 14,227 |
pythondev | help | Thank you. This is all helpful. I get the feeling I've been trying to overcomplicate things | 2019-03-20T14:20:41.164300 | Angila | pythondev_help_Angila_2019-03-20T14:20:41.164300 | 1,553,091,641.1643 | 14,228 |
pythondev | help | don't we all :wink: | 2019-03-20T14:21:13.165000 | Carlo | pythondev_help_Carlo_2019-03-20T14:21:13.165000 | 1,553,091,673.165 | 14,229 |
pythondev | help | no problem at all | 2019-03-20T14:21:15.165100 | Claudine | pythondev_help_Claudine_2019-03-20T14:21:15.165100 | 1,553,091,675.1651 | 14,230 |
pythondev | help | took me a heck of a time to figure out wsgi_mod when I first started trying to host my own stuff | 2019-03-20T14:21:48.166000 | Claudine | pythondev_help_Claudine_2019-03-20T14:21:48.166000 | 1,553,091,708.166 | 14,231 |
pythondev | help | same... | 2019-03-20T14:21:57.166500 | Carlo | pythondev_help_Carlo_2019-03-20T14:21:57.166500 | 1,553,091,717.1665 | 14,232 |
pythondev | help | I've been using Apache for such a long time I think I was getting excited about using something else. But if it ain't broke, don't fix it | 2019-03-20T14:21:59.166600 | Angila | pythondev_help_Angila_2019-03-20T14:21:59.166600 | 1,553,091,719.1666 | 14,233 |
pythondev | help | in that case you could learn nginx :smile: | 2019-03-20T14:22:10.167100 | Claudine | pythondev_help_Claudine_2019-03-20T14:22:10.167100 | 1,553,091,730.1671 | 14,234 |
pythondev | help | funny you mention that… | 2019-03-20T14:22:22.167700 | Angila | pythondev_help_Angila_2019-03-20T14:22:22.167700 | 1,553,091,742.1677 | 14,235 |
pythondev | help | i still haven't tried nginx, I've had to use Apache so much for work that's what I stick with since it's familiar | 2019-03-20T14:22:29.168100 | Claudine | pythondev_help_Claudine_2019-03-20T14:22:29.168100 | 1,553,091,749.1681 | 14,236 |
pythondev | help | I've used nginx as a reverse proxy in docker-compose setups and... thats pretty much it | 2019-03-20T14:22:59.169100 | Carlo | pythondev_help_Carlo_2019-03-20T14:22:59.169100 | 1,553,091,779.1691 | 14,237 |
pythondev | help | prior to posting here my plan was to use nginx as a reverse proxy to hit my app running on gunicorn | 2019-03-20T14:23:00.169200 | Angila | pythondev_help_Angila_2019-03-20T14:23:00.169200 | 1,553,091,780.1692 | 14,238 |
pythondev | help | well you _could_ still do that even with the simple git based deploy | 2019-03-20T14:23:52.169700 | Carlo | pythondev_help_Carlo_2019-03-20T14:23:52.169700 | 1,553,091,832.1697 | 14,239 |
pythondev | help | probably wont make a noticeable difference in your usecase though | 2019-03-20T14:24:25.170300 | Carlo | pythondev_help_Carlo_2019-03-20T14:24:25.170300 | 1,553,091,865.1703 | 14,240 |
pythondev | help | i initially wanted to use git hooks, but our systems security folks objected. i believe because the repo is outside our network | 2019-03-20T14:25:13.171200 | Angila | pythondev_help_Angila_2019-03-20T14:25:13.171200 | 1,553,091,913.1712 | 14,241 |
pythondev | help | i think apache and wsgi_mod is what I'm going to do. that way i won't be the only person here who can support it. i do love going on vacation. thanks again! | 2019-03-20T14:27:02.172700 | Angila | pythondev_help_Angila_2019-03-20T14:27:02.172700 | 1,553,092,022.1727 | 14,242 |
pythondev | help | Hello, I am using python 3.4 for my argparser cli command and found that allow_abbrev doesnt exist below 3.5? can you suggests any alternative to solve issue? | 2019-03-20T14:37:54.174700 | Nova | pythondev_help_Nova_2019-03-20T14:37:54.174700 | 1,553,092,674.1747 | 14,243 |
pythondev | help | <@Angila> Just to add another option to your list of ways to do deployment, if you're setting up the copy of code on the server as a git repo, you can add a git remote to your local repo and just push directly to that remote when you want to do a deploy. | 2019-03-20T15:32:56.176300 | Carmen | pythondev_help_Carmen_2019-03-20T15:32:56.176300 | 1,553,095,976.1763 | 14,244 |
pythondev | help | If you have a bunch of other things that need to happen when you do a deploy, definitely look into Fabric. But for just pushing out code updates, git push works just fine if your target is also a git repo. | 2019-03-20T15:34:01.177500 | Carmen | pythondev_help_Carmen_2019-03-20T15:34:01.177500 | 1,553,096,041.1775 | 14,245 |
pythondev | help | <@Carmen> That's an interesting idea about setting up the deployment server as a git remote. I like that. And I'm just taking a look at Fabric. This could get interesting. Thanks! | 2019-03-20T15:38:10.179000 | Angila | pythondev_help_Angila_2019-03-20T15:38:10.179000 | 1,553,096,290.179 | 14,246 |
pythondev | help | Caveats include: That machine must be reachable from your local machine (otherwise git push won't be able to reach it), others will need to set up the same remote to be able to deploy (not a big deal if you have appropriate documentation), and you somewhat lose out on having the deployed code be a tagged branch (you can tag it, sure, but the remote repo has to be a checkout of a branch that you can push to, like master, not a checkout of a detached head like a tag gives you). | 2019-03-20T15:42:28.182400 | Carmen | pythondev_help_Carmen_2019-03-20T15:42:28.182400 | 1,553,096,548.1824 | 14,247 |
pythondev | help | There may be one or two other things that my brain isn't remembering offhand. | 2019-03-20T15:42:40.182800 | Carmen | pythondev_help_Carmen_2019-03-20T15:42:40.182800 | 1,553,096,560.1828 | 14,248 |
pythondev | help | hi folks. here’s an interesting question. i have a script that is doing some data processing, but i don’t want it to take all the cpu useage and make me unable to do much more. so is there a way to throttle cpu use of a script so it runs over longer time but doens’t make cpu cry. | 2019-03-20T15:45:38.185200 | Wen | pythondev_help_Wen_2019-03-20T15:45:38.185200 | 1,553,096,738.1852 | 14,249 |
pythondev | help | Those first two aren't a problem. And the lack of tagging isn't a deal breaker but it's good to be aware of. I really like that once I've set it up as a remote and others add it, they'd be able to push updates | 2019-03-20T15:45:42.185500 | Angila | pythondev_help_Angila_2019-03-20T15:45:42.185500 | 1,553,096,742.1855 | 14,250 |
pythondev | help | i’ve found solution which tell me to put sleep in it but tha won’t help because it’ll stop the execution rather than share it. it’ll just spike back up when it is working. | 2019-03-20T15:46:09.186100 | Wen | pythondev_help_Wen_2019-03-20T15:46:09.186100 | 1,553,096,769.1861 | 14,251 |
pythondev | help | The typical solution there is to set the priority ("nice" level) of the Python process so the OS will run it only in idle cycles. So, not something that you do within your script itself, but in how you run it. | 2019-03-20T15:49:48.187200 | Sasha | pythondev_help_Sasha_2019-03-20T15:49:48.187200 | 1,553,096,988.1872 | 14,252 |
pythondev | help | I don't understand how this works conceptually, but i'm interested since I just finished a nginx- gunicorn - flask app | 2019-03-20T15:50:32.187300 | Deon | pythondev_help_Deon_2019-03-20T15:50:32.187300 | 1,553,097,032.1873 | 14,253 |
pythondev | help | it is a little overkill, but you could run it in a virtual machine that has been allocated only a % of cpu <@Wen> | 2019-03-20T15:51:30.188300 | Clemmie | pythondev_help_Clemmie_2019-03-20T15:51:30.188300 | 1,553,097,090.1883 | 14,254 |
pythondev | help | that could work. if i can find a very easy way to create VMs | 2019-03-20T15:52:29.188700 | Wen | pythondev_help_Wen_2019-03-20T15:52:29.188700 | 1,553,097,149.1887 | 14,255 |
pythondev | help | thanks. yeah that seems like the most practical solutions so far. | 2019-03-20T15:53:53.188800 | Wen | pythondev_help_Wen_2019-03-20T15:53:53.188800 | 1,553,097,233.1888 | 14,256 |
pythondev | help | Anyone ever use ButterCMS with Django? | 2019-03-20T16:07:11.189200 | Hayden | pythondev_help_Hayden_2019-03-20T16:07:11.189200 | 1,553,098,031.1892 | 14,257 |
pythondev | help | what are you trying to do? | 2019-03-20T16:37:59.189500 | Joette | pythondev_help_Joette_2019-03-20T16:37:59.189500 | 1,553,099,879.1895 | 14,258 |
pythondev | help | (I'm reasonably familiar with Butter, and Django, just not both together) | 2019-03-20T16:39:40.190000 | Joette | pythondev_help_Joette_2019-03-20T16:39:40.190000 | 1,553,099,980.19 | 14,259 |
pythondev | help | <@Richelle> often a syntax error is due to the line before what was shown in the error message. Are you doing something interesting in that `return something`? | 2019-03-20T16:42:28.191300 | Clemmie | pythondev_help_Clemmie_2019-03-20T16:42:28.191300 | 1,553,100,148.1913 | 14,260 |
pythondev | help | No, just return an int | 2019-03-20T16:43:32.191500 | Richelle | pythondev_help_Richelle_2019-03-20T16:43:32.191500 | 1,553,100,212.1915 | 14,261 |
pythondev | help | hmmm. | 2019-03-20T16:44:32.191700 | Clemmie | pythondev_help_Clemmie_2019-03-20T16:44:32.191700 | 1,553,100,272.1917 | 14,262 |
pythondev | help | Can you show the full code for the method, and the error stack trace? | 2019-03-20T16:44:57.192100 | Clemmie | pythondev_help_Clemmie_2019-03-20T16:44:57.192100 | 1,553,100,297.1921 | 14,263 |
pythondev | help | actually, I just figured it out. indentation error | 2019-03-20T16:45:40.192500 | Richelle | pythondev_help_Richelle_2019-03-20T16:45:40.192500 | 1,553,100,340.1925 | 14,264 |
pythondev | help | thatnks! | 2019-03-20T16:45:42.192700 | Richelle | pythondev_help_Richelle_2019-03-20T16:45:42.192700 | 1,553,100,342.1927 | 14,265 |
pythondev | help | return statement should've been in the very beginning of the line ... indentation! | 2019-03-20T16:46:34.193700 | Merilyn | pythondev_help_Merilyn_2019-03-20T16:46:34.193700 | 1,553,100,394.1937 | 14,266 |
pythondev | help | I'm looking to pull in an article on Butter into my Django app. | 2019-03-20T16:57:16.193900 | Hayden | pythondev_help_Hayden_2019-03-20T16:57:16.193900 | 1,553,101,036.1939 | 14,267 |
pythondev | help | is it a page or a blog post in Butter? | 2019-03-20T16:57:37.194100 | Joette | pythondev_help_Joette_2019-03-20T16:57:37.194100 | 1,553,101,057.1941 | 14,268 |
pythondev | help | I'm currently getting errors though... BRB | 2019-03-20T16:57:40.194300 | Hayden | pythondev_help_Hayden_2019-03-20T16:57:40.194300 | 1,553,101,060.1943 | 14,269 |
pythondev | help | It's just a blog post. I can't figure out where I am going wrong, I'm following the docs | 2019-03-20T16:57:58.194500 | Hayden | pythondev_help_Hayden_2019-03-20T16:57:58.194500 | 1,553,101,078.1945 | 14,270 |
pythondev | help | what kind of error are you getting? | 2019-03-20T16:58:10.194700 | Joette | pythondev_help_Joette_2019-03-20T16:58:10.194700 | 1,553,101,090.1947 | 14,271 |
pythondev | help | This is my repo <https://github.com/umohm1/buttercms-django> | 2019-03-20T16:58:16.194900 | Hayden | pythondev_help_Hayden_2019-03-20T16:58:16.194900 | 1,553,101,096.1949 | 14,272 |
pythondev | help | I'm thinking it may have something to do w/ my views. I'm a newbie to Django | 2019-03-20T16:58:56.195200 | Hayden | pythondev_help_Hayden_2019-03-20T16:58:56.195200 | 1,553,101,136.1952 | 14,273 |
pythondev | help | gotcha - what error are you getting though? | 2019-03-20T17:04:42.195400 | Joette | pythondev_help_Joette_2019-03-20T17:04:42.195400 | 1,553,101,482.1954 | 14,274 |
pythondev | help | I'm back! So, currently it's this | 2019-03-20T18:08:47.195600 | Hayden | pythondev_help_Hayden_2019-03-20T18:08:47.195600 | 1,553,105,327.1956 | 14,275 |
pythondev | help | hmm, that's definitely an issue with your setup, not the Butter API | 2019-03-20T19:06:24.197900 | Joette | pythondev_help_Joette_2019-03-20T19:06:24.197900 | 1,553,108,784.1979 | 14,276 |
pythondev | help | ah, hah | 2019-03-20T19:06:35.198100 | Joette | pythondev_help_Joette_2019-03-20T19:06:35.198100 | 1,553,108,795.1981 | 14,277 |
pythondev | help | you don't have a root URL defined! | 2019-03-20T19:06:42.198300 | Joette | pythondev_help_Joette_2019-03-20T19:06:42.198300 | 1,553,108,802.1983 | 14,278 |
pythondev | help | your app only knows about `/blog/*` and `/admin/*` | 2019-03-20T19:07:12.198500 | Joette | pythondev_help_Joette_2019-03-20T19:07:12.198500 | 1,553,108,832.1985 | 14,279 |
pythondev | help | Anyone know how I change a plan in stripe while retaining the number of trial days | 2019-03-20T19:11:58.199200 | Nikki | pythondev_help_Nikki_2019-03-20T19:11:58.199200 | 1,553,109,118.1992 | 14,280 |
pythondev | help | say the user signs up for starts a 14 day trail and after 4 days they switch their plan | 2019-03-20T19:12:23.199800 | Nikki | pythondev_help_Nikki_2019-03-20T19:12:23.199800 | 1,553,109,143.1998 | 14,281 |
pythondev | help | not they should only have 10 days | 2019-03-20T19:12:36.200100 | Nikki | pythondev_help_Nikki_2019-03-20T19:12:36.200100 | 1,553,109,156.2001 | 14,282 |
pythondev | help | the default is 14 days across all plans so at the moment the user switches plans and get another 14 days | 2019-03-20T19:13:18.200900 | Nikki | pythondev_help_Nikki_2019-03-20T19:13:18.200900 | 1,553,109,198.2009 | 14,283 |
pythondev | help | Never mind , I found the `current_period_end` timestamp and just passed it back in | 2019-03-20T19:20:46.201600 | Nikki | pythondev_help_Nikki_2019-03-20T19:20:46.201600 | 1,553,109,646.2016 | 14,284 |
pythondev | help | anyone know a python library to detect signature in an image document? | 2019-03-20T19:21:25.202200 | Retta | pythondev_help_Retta_2019-03-20T19:21:25.202200 | 1,553,109,685.2022 | 14,285 |
pythondev | help | Do you mean like a handwritten signature, or a cryptographic signature? Is it part of the image file format, or embedded in the pixels via steganography? | 2019-03-20T19:41:37.203100 | Sasha | pythondev_help_Sasha_2019-03-20T19:41:37.203100 | 1,553,110,897.2031 | 14,286 |
pythondev | help | '''disney_characters = ["simba", "ariel", "pumba", "flounder", "nala", "ursula", "scar", "flotsam", "timon"]
for i in disney_characters:
print (i)
if i in u:
print (i, " U are so Uniquely U!")
elif i in i:
print (i, " I bet you're Impressively Intelligent!")
elif i in o:
print (i, " O My! How Original!")
else:
print (i, " Ehh, a's and e's are so ordinary.")
'''
I dont get why "line 11, in <module>
if i in u:
NameError: name 'u' is not defined
simba" | 2019-03-20T21:40:05.203900 | Lawana | pythondev_help_Lawana_2019-03-20T21:40:05.203900 | 1,553,118,005.2039 | 14,287 |
pythondev | help | <@Lawana> if you click the :heavy_plus_sign: to the left of the message box you can select "code or text snippet" to make it easier to read code. Also, it looks like you perhaps used the apostrophy `'` instead of the backtick `using backticks` which is what I think you were aiming for? Also, if you hit the up arrow on your keyboard you should be able to go back to edit your post. | 2019-03-20T22:23:27.206600 | Marth | pythondev_help_Marth_2019-03-20T22:23:27.206600 | 1,553,120,607.2066 | 14,288 |
pythondev | help | that said...unless it was earlier in your code, the variables `u` and `o` are not defined. | 2019-03-20T22:25:32.208000 | Marth | pythondev_help_Marth_2019-03-20T22:25:32.208000 | 1,553,120,732.208 | 14,289 |
pythondev | help | so when your loop starts, `i` is set to 'simba', it should then print 'simba' | 2019-03-20T22:28:37.209000 | Marth | pythondev_help_Marth_2019-03-20T22:28:37.209000 | 1,553,120,917.209 | 14,290 |
pythondev | help | then it tries to see if 'simba' is in `u` but `u` isn't anything, it's undefined. | 2019-03-20T22:29:23.209900 | Marth | pythondev_help_Marth_2019-03-20T22:29:23.209900 | 1,553,120,963.2099 | 14,291 |
pythondev | help | also in my first message talking about the :heavy_plus_sign: I should have said easier for you to POST code and for the rest of us to read it :slightly_smiling_face: | 2019-03-20T22:30:34.210800 | Marth | pythondev_help_Marth_2019-03-20T22:30:34.210800 | 1,553,121,034.2108 | 14,292 |
pythondev | help | i should always be in i, so I removed it for simplicity/clarity. Hopefully that's helpful and I didn't include any syntax errors. | 2019-03-20T22:44:02.210900 | Marth | pythondev_help_Marth_2019-03-20T22:44:02.210900 | 1,553,121,842.2109 | 14,293 |
pythondev | help | Your output should look like this (notice each item from the original list is printed) and then you get the appropriate output from the `if` after it. | 2019-03-20T22:47:17.211300 | Marth | pythondev_help_Marth_2019-03-20T22:47:17.211300 | 1,553,122,037.2113 | 14,294 |
pythondev | help | Are you trying to check the vowels in the string? If so the syntax would be `if "u" in i:` etc. | 2019-03-20T23:01:50.213100 | Sasha | pythondev_help_Sasha_2019-03-20T23:01:50.213100 | 1,553,122,910.2131 | 14,295 |
pythondev | help | oh....yeah, you're probably right <@Sasha> A much better (and MUCH more succint) answer :slightly_smiling_face: | 2019-03-20T23:04:33.213900 | Marth | pythondev_help_Marth_2019-03-20T23:04:33.213900 | 1,553,123,073.2139 | 14,296 |
pythondev | help | Examining this line of code. Is the "object" that's passed as an argument in line 1 necessary? Or can i safely remove it? | 2019-03-21T00:58:22.214200 | Demetrice | pythondev_help_Demetrice_2019-03-21T00:58:22.214200 | 1,553,129,902.2142 | 14,297 |
pythondev | help | It's not really an argument, but saying that the class derives from `object`. In Python 2, this is a good idea. In Python 3, it's not required. | 2019-03-21T01:01:09.215100 | Sasha | pythondev_help_Sasha_2019-03-21T01:01:09.215100 | 1,553,130,069.2151 | 14,298 |
pythondev | help | Hello - when using Django REST Framework with Simple JWT, I noticed that even though I lock the viewsets behind auth by using `permission_classes = (IsAuthenticated,)` in the viewset, my base api path is still visible without authenticating.
Given that the base api page is generated by the `router.DefaultRouter()`, how can I ensure it also requires authentication? | 2019-03-21T01:19:18.218500 | Shirley | pythondev_help_Shirley_2019-03-21T01:19:18.218500 | 1,553,131,158.2185 | 14,299 |
pythondev | help | hey all - i have this line using argparse `parser.add_argument('-t', '--type', help="stock data type", required=True) ` - how do I specify valid type attributes which would be listed in the output of help as an example? there are many types, but the types have to be referenced specifically or else it won't work. i have another argument for symbols where i use nargs, but that will work if any one or more valid symbols are provided so I don't necessarily need to provide a list of usable symbols. | 2019-03-21T01:36:10.220900 | Stacy | pythondev_help_Stacy_2019-03-21T01:36:10.220900 | 1,553,132,170.2209 | 14,300 |
pythondev | help | ohhh it looks like `choices` is the ticket. will try | 2019-03-21T01:39:36.221200 | Stacy | pythondev_help_Stacy_2019-03-21T01:39:36.221200 | 1,553,132,376.2212 | 14,301 |
pythondev | help | in case anyone else runs across this, you can accomplish this by adding the following to your settings.py
```
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': (
'rest_framework.permissions.IsAuthenticated',
),
}
```
if you're using JWT, make sure to add this before the `DEFAULT_AUTHENTICATION_CLASSES` | 2019-03-21T02:23:11.221900 | Shirley | pythondev_help_Shirley_2019-03-21T02:23:11.221900 | 1,553,134,991.2219 | 14,302 |
pythondev | help | what is 'size = 8' for? font size or password size!? | 2019-03-21T04:30:49.222400 | Elida | pythondev_help_Elida_2019-03-21T04:30:49.222400 | 1,553,142,649.2224 | 14,303 |
pythondev | help | Is password lenght. It does range(size) so keeps adding random chars until “size” | 2019-03-21T04:39:49.222700 | Antoine | pythondev_help_Antoine_2019-03-21T04:39:49.222700 | 1,553,143,189.2227 | 14,304 |
pythondev | help | what will happaned if I change the size for example 3? | 2019-03-21T05:04:33.223000 | Elida | pythondev_help_Elida_2019-03-21T05:04:33.223000 | 1,553,144,673.223 | 14,305 |
pythondev | help | You’ll get a password of 3 random chars | 2019-03-21T05:12:52.223200 | Antoine | pythondev_help_Antoine_2019-03-21T05:12:52.223200 | 1,553,145,172.2232 | 14,306 |
pythondev | help | <@Antoine> thank you for your replies.
I did with 3! And when it asled me how many chars long password you want I type 7 and enter....
this makes me coufused :disappointed: | 2019-03-21T05:39:53.223600 | Elida | pythondev_help_Elida_2019-03-21T05:39:53.223600 | 1,553,146,793.2236 | 14,307 |
pythondev | help | 3 is the default if you don't pass that argument to the function when you call it. Since you passed in 7, that is used instead of the default. | 2019-03-21T05:50:02.224200 | Melynda | pythondev_help_Melynda_2019-03-21T05:50:02.224200 | 1,553,147,402.2242 | 14,308 |
pythondev | help | got it :slightly_smiling_face:
one more question, what if we hit enter on empty when it ask How many characters in your password?
it should show 8 characters password by default!? | 2019-03-21T06:25:03.224600 | Elida | pythondev_help_Elida_2019-03-21T06:25:03.224600 | 1,553,149,503.2246 | 14,309 |
pythondev | help | If you hit enter on empty, you'll get an error: `ValueError: invalid literal for int() with base 10: ''` | 2019-03-21T07:18:03.224900 | Melynda | pythondev_help_Melynda_2019-03-21T07:18:03.224900 | 1,553,152,683.2249 | 14,310 |
pythondev | help | Because `input()` returns an empty string, which is then passed to `int()` | 2019-03-21T07:18:19.225100 | Melynda | pythondev_help_Melynda_2019-03-21T07:18:19.225100 | 1,553,152,699.2251 | 14,311 |
pythondev | help | Hi All | 2019-03-21T08:44:07.226200 | Bennett | pythondev_help_Bennett_2019-03-21T08:44:07.226200 | 1,553,157,847.2262 | 14,312 |
pythondev | help | I am trying send the mail using python and I am using the variable in the body . and the variable has more than one value. but i am receiving only the last value in the mail output . but i need to get all the values in the variables to mail output | 2019-03-21T08:46:28.228600 | Bennett | pythondev_help_Bennett_2019-03-21T08:46:28.228600 | 1,553,157,988.2286 | 14,313 |
pythondev | help | mycode is here | 2019-03-21T08:47:50.228900 | Bennett | pythondev_help_Bennett_2019-03-21T08:47:50.228900 | 1,553,158,070.2289 | 14,314 |
pythondev | help | email = '<mailto:[email protected]|[email protected]>'
send_to_email = mail[0],mail[1]
subject = 'Approval for ldap' + tickid
message1 = """<html><body> Hi there, \n <pre>
<b>Please approve below user to add in ldap group:</b> """ + id1[1].strip() + """
<b>This is user id details:</b> """ +userid +"""
<b>This is group id details:</b> """ + ouput +"""
</pre></body></html>"""
response = """<html><body><pre> Please <a href="<mailto:[email protected]?subject=Approval> for ldap group """+ str(tickid)+""" &body=Approved">click here</a> to Approve
</pre></body></html>"""
msg = MIMEMultipart()
msg['From'] = email
msg['To'] = mail[0]
msg['Subject'] = subject
body = message1 +' \n \n' + response
msg.attach(MIMEText(body, 'html'))
server = smtplib.SMTP('localhost')
text = msg.as_string()
server.sendmail(email, send_to_email, text)
server.quit() | 2019-03-21T08:48:21.229200 | Bennett | pythondev_help_Bennett_2019-03-21T08:48:21.229200 | 1,553,158,101.2292 | 14,315 |
pythondev | help | Please use the snippet feature, or backticks, when sharing code. You can do so by clicking on the :heavy_plus_sign: on the left of the input box for a snippet.
For more information on snippets click <https://get.slack.help/hc/en-us/articles/204145658-Create-a-snippet|here>.
For more information on inline code formatting with backticks click <https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#inline-code|here>. | 2019-03-21T08:48:46.229400 | Leana | pythondev_help_Leana_2019-03-21T08:48:46.229400 | 1,553,158,126.2294 | 14,316 |
pythondev | help | <@Bennett> would help to know what's missing from your solution | 2019-03-21T08:59:34.230400 | Hiroko | pythondev_help_Hiroko_2019-03-21T08:59:34.230400 | 1,553,158,774.2304 | 14,317 |
pythondev | help | i am able to send the mail but when i received the email it has only one value and that is last value in the varaible | 2019-03-21T09:06:51.232500 | Bennett | pythondev_help_Bennett_2019-03-21T09:06:51.232500 | 1,553,159,211.2325 | 14,318 |
pythondev | help | And my varaible is userid and it is string | 2019-03-21T09:07:08.233000 | Bennett | pythondev_help_Bennett_2019-03-21T09:07:08.233000 | 1,553,159,228.233 | 14,319 |
pythondev | help | it have more than one value | 2019-03-21T09:07:16.233300 | Bennett | pythondev_help_Bennett_2019-03-21T09:07:16.233300 | 1,553,159,236.2333 | 14,320 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.