Re: Help serving media files on render

2024-11-01 Thread RANGA BHARATH JINKA
Hi,

You can use cloudinary or Firestore storage bucket to store media files.

Thanks

On Fri, 1 Nov, 2024, 6:11 pm ASAMOAH EMMANUEL, 
wrote:

> Hi All,
> I need help serving media files on render. I already serve static files
> with whitenoise.
> I am able to upload media files but cannot serve them. I get file not
> found.
> If it is not possible, are there other alternatives to s3 bucket.
> Thanks in advance.
>
> --
> I don't stop when I'm tired, I only stop when the job is done.
>
> --
> 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 view this discussion visit
> https://groups.google.com/d/msgid/django-users/CABFHQYxovaK2h6S52LOy19uofRzMTAtobY4szMhmGjD2QaZddw%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-users/CAK5m316-AFV3LYafOGHp0RVSZ1VbOxJRKv6z2ZaaEd6F1F1oZQ%40mail.gmail.com.


Re: testing signal with django allauth

2024-09-23 Thread RANGA BHARATH JINKA
In Django, when using `TestCase` for testing views, CSRF tokens are indeed
not necessary since the test client does not enforce CSRF protection.
However, if you're testing forms directly (like a `ModelForm`), you
generally don’t need to provide a CSRF token either, as the form itself
does not directly interact with the CSRF protection mechanism when
instantiated in tests.

When you pass a dictionary to a `ModelForm`, you’re typically dealing with
form validation. If your form is instantiated with data that’s invalid, it
won’t affect CSRF tokens, as they come into play mainly with POST requests
in views.

So, you can test your form validation without worrying about CSRF tokens.
Please make sure that the data you pass in simulates the conditions you
want to test!

On Mon, Sep 23, 2024 at 5:38 PM Gabriel Soler  wrote:

> Hi Ranga, thanks for the response,
>
> My test log is quite simple; it is not true the form is valid, and there
> is a little change in the session to mark it when my function did not
> change.
> As I am using TestCase I understand that the CSRF tokens are unnecessary.
> Would passing the dictionary to the modelForm need a CSRF token too?
>
>
> """
> Traceback (most recent call last):
>   File
> "/Users/gsole/Documents/Web-Work/between/between_app/test_login_integration.py",
> line 78, in test_login_after_test
> self.assertEqual(self.client.session['linked'],"true")
> AssertionError: 'false' != 'true'
> - false
> + true
>
>
> ==
> FAIL: test_login_form_is_valid
> (between_app.test_login_integration.ProfileLinkUserAutenticate.test_login_form_is_valid)
> --
> Traceback (most recent call last):
>   File
> "/Users/gsole/Documents/Web-Work/between/between_app/test_login_integration.py",
> line 67, in test_login_form_is_valid
> self.assertTrue(login_valid.is_valid())
> AssertionError: False is not true
>
> --
> """
> On Monday 23 September 2024 at 12:36:37 UTC+1 RANGA BHARATH JINKA wrote:
>
>> what's the error you are getting in the logs ?
>>
>> In Django, while writing tests for forms that require CSRF token
>> validation (for instance, in Test-Driven Development or TDD), you can
>> bypass the CSRF validation or simulate the behavior of submitting a valid
>> CSRF token.
>>
>> Here's how you can handle CSRF tokens in your Django tests:
>>
>> ### 1. **Bypassing CSRF Validation in Tests**
>> Django’s test client automatically ignores CSRF checks when running
>> tests. This means that when you use Django's `Client` in your tests, you
>> don’t need to worry about CSRF tokens. You can directly submit forms
>> without providing a CSRF token.
>>
>>  Example:
>> ```python
>> from django.test import TestCase
>> from django.urls import reverse
>>
>> class MyFormTest(TestCase):
>> def test_form_submission(self):
>> url = reverse('my_form_url')
>> form_data = {
>> 'field1': 'value1',
>> 'field2': 'value2',
>> }
>> response = self.client.post(url, form_data)
>> self.assertEqual(response.status_code, 200)
>> ```
>> In this example, Django automatically bypasses the CSRF check when the
>> form is submitted via the `self.client.post()`.
>>
>> ### 2. **Simulating CSRF Token (If Required for Specific Use Case)**
>> If, for some reason, you want to simulate the behavior of CSRF protection
>> in tests, you can manually add the CSRF token to your form data. To do
>> this, retrieve the CSRF token from the response context and include it in
>> the form submission.
>>
>>  Example:
>> ```python
>> from django.test import TestCase
>> from django.urls import reverse
>>
>> class MyFormTest(TestCase):
>> def test_form_submission_with_csrf(self):
>> # Retrieve the form page to get the CSRF token
>> url = reverse('my_form_url')
>> response = self.client.get(url)
>> csrf_token = response.cookies['csrftoken'].value
>>
>> form_data = {
>> 'csrfmiddlewaretoken': csrf_token,
>> 'field1': 'value1',
>> 'field2': 'value2',
>> }
>> response = self.client.post(url, form_data)
>> sel

Re: testing signal with django allauth

2024-09-23 Thread RANGA BHARATH JINKA
what's the error you are getting in the logs ?

In Django, while writing tests for forms that require CSRF token validation
(for instance, in Test-Driven Development or TDD), you can bypass the CSRF
validation or simulate the behavior of submitting a valid CSRF token.

Here's how you can handle CSRF tokens in your Django tests:

### 1. **Bypassing CSRF Validation in Tests**
Django’s test client automatically ignores CSRF checks when running tests.
This means that when you use Django's `Client` in your tests, you don’t
need to worry about CSRF tokens. You can directly submit forms without
providing a CSRF token.

 Example:
```python
from django.test import TestCase
from django.urls import reverse

class MyFormTest(TestCase):
def test_form_submission(self):
url = reverse('my_form_url')
form_data = {
'field1': 'value1',
'field2': 'value2',
}
response = self.client.post(url, form_data)
self.assertEqual(response.status_code, 200)
```
In this example, Django automatically bypasses the CSRF check when the form
is submitted via the `self.client.post()`.

### 2. **Simulating CSRF Token (If Required for Specific Use Case)**
If, for some reason, you want to simulate the behavior of CSRF protection
in tests, you can manually add the CSRF token to your form data. To do
this, retrieve the CSRF token from the response context and include it in
the form submission.

 Example:
```python
from django.test import TestCase
from django.urls import reverse

class MyFormTest(TestCase):
def test_form_submission_with_csrf(self):
# Retrieve the form page to get the CSRF token
url = reverse('my_form_url')
response = self.client.get(url)
csrf_token = response.cookies['csrftoken'].value

form_data = {
'csrfmiddlewaretoken': csrf_token,
'field1': 'value1',
'field2': 'value2',
}
response = self.client.post(url, form_data)
self.assertEqual(response.status_code, 200)
```

### 3. **Custom CSRF Token Checking (Optional)**
If you are writing custom views or custom middleware that depends on CSRF
tokens, you might want to ensure that CSRF tokens are handled in tests.
This typically isn't necessary with Django’s built-in forms and views, but
it could be useful if you have custom security logic.

### Conclusion
For most scenarios in Django TDD, you don’t need to pass the CSRF token in
tests since Django’s test client ignores CSRF by default. However, if you
do need to simulate it, you can explicitly add the CSRF token from the
response context to your form submission.


On Mon, Sep 23, 2024 at 5:02 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> I think you have to pass csrf token while submitting the form in django.
> Try passing csrf token.
>
> On Mon, Sep 23, 2024 at 4:34 PM Gabriel Soler  wrote:
>
>> Sorry, I did not add the code before. This is how I have my tests set up
>> at the moment. I cannot pass the 'form is valid' step.
>>
>> from django.test import TestCase,Client
>> from django.urls import reverse, reverse_lazy
>> from django.contrib.auth import get_user_model
>> from .forms import StyleForm
>> from allauth.account.forms import LoginForm
>> from django.test.utils import override_settings
>> from allauth.account import app_settings
>>
>>
>>
>> class ProfileLinkUserAutenticate(TestCase):
>> """to test if the open profile test saves after login and signup """
>>
>> fixtures = ['between_app/fixtures/PersonalStyleGroup.yaml',
>> 'between_app/fixtures/PersonalStyleSection.yaml'
>> ]
>> def setup(self):
>> self.client = Client() #to explore templates in request
>> @classmethod
>> def setUpTestData(cls):
>> cls.login_data = {'password':'test123%%HH','remember':'t',
>> 'username':'usertest'}
>> cls.user = get_user_model().objects.create_user(
>> username = 'usertest',
>> email = 't...@test.com',
>> password = 'test123%%HH',
>> )
>> cls.data = {
>> 'follower_1':90,
>> 'propositive_1':2,
>> 'challenger_1':6,
>> 'acceptant_1':10,
>> 'intensive_1':20,
>> 'extensive_1':6,
>> 'divider_1':3,
>> 'containment_1':30,
>> 'becoming_1':1,
>> 'development_1':60,
>> 'individuation_1':10,
>> 'belonging_1':3,
>>
>> }
>>
>> def test_client_lo

Re: testing signal with django allauth

2024-09-23 Thread RANGA BHARATH JINKA
Hi,

I think you have to pass csrf token while submitting the form in django.
Try passing csrf token.

On Mon, Sep 23, 2024 at 4:34 PM Gabriel Soler  wrote:

> Sorry, I did not add the code before. This is how I have my tests set up
> at the moment. I cannot pass the 'form is valid' step.
>
> from django.test import TestCase,Client
> from django.urls import reverse, reverse_lazy
> from django.contrib.auth import get_user_model
> from .forms import StyleForm
> from allauth.account.forms import LoginForm
> from django.test.utils import override_settings
> from allauth.account import app_settings
>
>
>
> class ProfileLinkUserAutenticate(TestCase):
> """to test if the open profile test saves after login and signup """
>
> fixtures = ['between_app/fixtures/PersonalStyleGroup.yaml',
> 'between_app/fixtures/PersonalStyleSection.yaml'
> ]
> def setup(self):
> self.client = Client() #to explore templates in request
> @classmethod
> def setUpTestData(cls):
> cls.login_data = {'password':'test123%%HH','remember':'t',
> 'username':'usertest'}
> cls.user = get_user_model().objects.create_user(
> username = 'usertest',
> email = 't...@test.com',
> password = 'test123%%HH',
> )
> cls.data = {
> 'follower_1':90,
> 'propositive_1':2,
> 'challenger_1':6,
> 'acceptant_1':10,
> 'intensive_1':20,
> 'extensive_1':6,
> 'divider_1':3,
> 'containment_1':30,
> 'becoming_1':1,
> 'development_1':60,
> 'individuation_1':10,
> 'belonging_1':3,
>
> }
>
> def test_client_login(self):
> self.client.login(
> username = 'usertest',
> email = 't...@test.com',
> password = 'test123',
> )
> self.assertTrue(self.user.is_authenticated)
> self.client.logout()
> def test_form_valid(self):
> form_invalid = StyleForm(data={"name": "Computer", "price": 400.1234})
> self.assertFalse(form_invalid.is_valid())
> form_valid = StyleForm(data=self.data)
> self.assertTrue(form_valid.is_valid())
> def test_post_form(self):
> response = self.client.post('/profile_test/',self.data, follow=True)
> self.assertEqual(self.client.session['linked'],"false")
> self.assertContains(response,"Compassionate")
>
> def test_login_form_is_valid(self):
> login_valid = LoginForm(data=self.login_data)
> self.assertTrue(login_valid.is_valid())
> def test_login_after_test(self):
> self.client.logout()
> response = self.client.post('/profile_test/',self.data, follow=True)
> self.assertEqual(self.client.session['linked'],"false")
> response = self.client.post(reverse('account_login'),data=self.login_data)
> #self.assertRedirects(response=response,expected_url='/')
> #self.client.login(username='usertest',password='test123')
> response = self.client.get('')
> #self.assertContains(response,"Welcome back")
> self.assertEqual(self.client.session['linked'],"true")
> #self.assertContains(response,"Welcome back")
>
>
> On Saturday 21 September 2024 at 21:08:39 UTC+1 Gabriel Soler wrote:
>
>> Hi all,
>>
>> Thanks for reading. I am at a stage where I am needing to do my testing,
>> and its is hard!
>> I managed to add a function after sign up and log in, using the signals
>> of allauth. As I am trying to add my tests as I work, I have added a little
>> change to the Session, to mark if my functions have don what they should,
>> and I also would like to test if actually is doing the thing.
>> Now, when I try with the unit tests to send a dictionary with the login I
>> am not being able to do a form that is valid for allauth. Can somebody help
>> we figuring out how to test this? Or some wisdom about testing? (My
>> function is working, but I am learning about testing, and test driven
>> development, and I came to it because I have been fearing to do changes and
>> then create unknown bugs, so it is time!)
>>
>> Gabriel
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/44e9f138-a9b0-417e-8665-f9003521d6c4n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316PnXMAhre4hTeJm46F1rYJ%2BpiB4DMH4%3DNjwG%2B_ZW1-wA%40mail.gmail.com.


Re: Deploy WebApp with django

2024-09-20 Thread RANGA BHARATH JINKA
Hi,

Sorry. It's Google cloud run

On Sat, 21 Sept, 2024, 10:18 am RANGA BHARATH JINKA, <
bharathjink...@gmail.com> wrote:

> Hi,
>
> You can host on good cloud run
>
> On Sat, 21 Sept, 2024, 12:07 am Gaetano Leoni, 
> wrote:
>
>> Hi I recently started developing in python with django. I created a
>> fairly full-bodied webapp and wanted to move it into production. I tried to
>> install it in a subdomain where there is no possibility to install the
>> virtual environment as it is a shared hosting and uses plesk as interface.
>> I am in the trial period and I am not collecting anything from this app.
>> I would like to try it to see if everything is okay and then look for a
>> client. I have tried pythonAnywhere but the app is bigger than the space
>> provided.
>> Any suggestions on where to test ?
>> Thanks
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/af33388c-0059-473e-a030-54d5a7a90d17n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/af33388c-0059-473e-a030-54d5a7a90d17n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315Xj_%2BjBuG38seP2ZW%3DH13xp9OVR1fpzfSfWPc%2BcDe3%2Bw%40mail.gmail.com.


Re: Deploy WebApp with django

2024-09-20 Thread RANGA BHARATH JINKA
Hi,

You can host on good cloud run

On Sat, 21 Sept, 2024, 12:07 am Gaetano Leoni, 
wrote:

> Hi I recently started developing in python with django. I created a fairly
> full-bodied webapp and wanted to move it into production. I tried to
> install it in a subdomain where there is no possibility to install the
> virtual environment as it is a shared hosting and uses plesk as interface.
> I am in the trial period and I am not collecting anything from this app. I
> would like to try it to see if everything is okay and then look for a
> client. I have tried pythonAnywhere but the app is bigger than the space
> provided.
> Any suggestions on where to test ?
> Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/af33388c-0059-473e-a030-54d5a7a90d17n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315AOv61q3dY%2Bqa5h%2Bc98et-aMqdCTG3%2Bi9rwWpCT2sWuQ%40mail.gmail.com.


Re: Django server msg Error

2024-09-19 Thread RANGA BHARATH JINKA
Hi,

What's your project folder? Did you create a new app inside the project?
You have registered your pages app URLs in the project. But you have to
create a new urls.py file inside the app and import view

On Thu, Sep 19, 2024 at 9:00 PM Anudeep Gudimalla 
wrote:

> Hi Bharath,
>
> Thanks for reaching out.
>
> I have created the urls.py and views.py under pages folder and navigated
> as book says.
>
> please find the attachments.
>
> On Thu, Sep 19, 2024 at 11:08 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Did you create a view and link it to a URL like /home? Then, you have to
>> go to that URL to see the message.
>>
>> Thanks,
>> Bharath
>>
>> On Thu, Sep 19, 2024 at 8:31 PM Anudeep Gudimalla 
>> wrote:
>>
>>> Hi all
>>>
>>> Firstly, im learning Django by book "Django for beginners - WSVincent
>>> 5th edition" in chapter-2 i'm trying to up the server to display msg "Hello
>>> World!". The development server was up but it does not shows the msg. can
>>> anybody help me to  do it. Please find the screenshot  in attachment.
>>>
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/a6d5026c-d037-4b03-9116-977736d050cfn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/a6d5026c-d037-4b03-9116-977736d050cfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m315nCDeMXByg0QHOb%2B2R7_Y0Sqoin9R%2BH1Mk0XSMOMqOig%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m315nCDeMXByg0QHOb%2B2R7_Y0Sqoin9R%2BH1Mk0XSMOMqOig%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADL3HBaww0uaAddRf4VymV1csp8fEVipHs%3D97_s3S6bYi-QgkQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADL3HBaww0uaAddRf4VymV1csp8fEVipHs%3D97_s3S6bYi-QgkQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316HNP5pkSdfiow7-Xkp54Ju14Pk9SRhc6FcPLAhVypKow%40mail.gmail.com.


Re: Django server msg Error

2024-09-19 Thread RANGA BHARATH JINKA
Hi,

Did you create a view and link it to a URL like /home? Then, you have to go
to that URL to see the message.

Thanks,
Bharath

On Thu, Sep 19, 2024 at 8:31 PM Anudeep Gudimalla 
wrote:

> Hi all
>
> Firstly, im learning Django by book "Django for beginners - WSVincent 5th
> edition" in chapter-2 i'm trying to up the server to display msg "Hello
> World!". The development server was up but it does not shows the msg. can
> anybody help me to  do it. Please find the screenshot  in attachment.
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a6d5026c-d037-4b03-9116-977736d050cfn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315nCDeMXByg0QHOb%2B2R7_Y0Sqoin9R%2BH1Mk0XSMOMqOig%40mail.gmail.com.


Re: DLL load failed while importing _rust: The specified module could not be found.

2024-09-14 Thread RANGA BHARATH JINKA
If you integrate sentry for capturing error logs , then check there

On Sat, 14 Sept, 2024, 8:02 am Tarun Sharma,  wrote:

> Hello Ranga
>
> Thanks for the reply, I already tried these same steps which you
> mentioned, But still facing the same issue. My main concern is when i'm
> trying to run the project on an 8080 or 8000 port then it's working fine.
> But when i'm trying to run this project through apache then it's giving
> the DLL load failed while importing _rust: The specified module could not
> be found.
>
> When I tried to remove the code from views.py then the site is working
> fine on domain or 80 number port that means there is no issue with
> environment variables and apache or xampp.
> If we tried to run on a python manage.py runserver 127.0.0.1:8080 or 8000
> port then the cryptography module is working fine that means there is no
> cryptography version issue. It's a really weird thing. Please let me know
> if you have any other solution.
>
> Thanks
> Tarun
>
>
>
>
>
>
> On Fri, 13 Sept 2024 at 12:54, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> The error you're encountering, *"DLL load failed while importing _rust:
>> The specified module could not be found"*, typically indicates a
>> compatibility issue between your Python environment and the cryptography
>> library (or one of its dependencies) used by the Snowflake connector.
>>
>> Here's how you can troubleshoot and resolve the issue:
>>
>> ### 1. **Check Cryptography and Dependencies Installation**
>>- The cryptography package used by Snowflake requires Rust to compile
>> certain dependencies, especially for Windows.
>>- Ensure you have installed the required dependencies with Rust
>> correctly by following these steps:
>>  - Open your terminal or command prompt.
>>  - Run the following command to install the Rust toolchain:
>>```bash
>>pip install cryptography
>>```
>>  - Alternatively, you can try installing it with Rust support enabled:
>>```bash
>>pip install cryptography --use-pep517
>>```
>>
>> ### 2. **Check Compatibility with Windows**
>>- Since you are on Windows Server 2019, ensure that the Snowflake
>> connector and its dependencies (like cryptography) are compatible with the
>> Python version and Windows Server.
>>- It might help to uninstall cryptography and reinstall it
>> specifically with the correct version that supports your environment:
>>  ```bash
>>  pip uninstall cryptography
>>  pip install cryptography==36.0.0  # or the latest version supporting
>> your setup
>>  ```
>>
>> ### 3. **Reinstall Snowflake Connector**
>>- Uninstall and reinstall the Snowflake connector in case of a corrupt
>> or incomplete installation:
>>  ```bash
>>  pip uninstall snowflake-connector-python
>>  pip install snowflake-connector-python
>>  ```
>>
>> ### 4. **Check Apache Configuration (For Production Use)**
>>- You mentioned it's working with `python manage.py runserver` but
>> fails when running on port 80 or domain with Apache.
>>- Ensure that Apache has permission to access all necessary Python
>> packages and environment variables.
>>- Verify that the virtual environment (if using one) is activated when
>> running the application via Apache.
>>- You can configure this in the `wsgi.py` file or your Apache config,
>> ensuring the correct Python environment is being used.
>>
>> ### 5. **DLL Dependencies**
>>- If you're still facing issues, you might be missing some DLLs.
>> Install the [Microsoft Visual C++ Redistributable](
>> https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170),
>> which is sometimes needed for some Python libraries to run on Windows.
>>
>> After following these steps, try running the project again on the desired
>> port or domain.
>>
>> All the best 👍
>>
>> On Fri, Sep 13, 2024 at 8:06 PM Tarun Sharma  wrote:
>>
>>> Hi
>>>
>>> I'm trying to use the snowflake connector and i've installed the all
>>> cryptography dependencies with latest versions. When i'm trying to run the
>>> project python manage.py run server then it's working fine. When i tried to
>>> run on 80 number port or domain then it' showing me this error
>>>
>>> DLL load failed while importing _rust: The specified module could not be
>>> fou

Re: DLL load failed while importing _rust: The specified module could not be found.

2024-09-13 Thread RANGA BHARATH JINKA
The error you're encountering, *"DLL load failed while importing _rust: The
specified module could not be found"*, typically indicates a compatibility
issue between your Python environment and the cryptography library (or one
of its dependencies) used by the Snowflake connector.

Here's how you can troubleshoot and resolve the issue:

### 1. **Check Cryptography and Dependencies Installation**
   - The cryptography package used by Snowflake requires Rust to compile
certain dependencies, especially for Windows.
   - Ensure you have installed the required dependencies with Rust
correctly by following these steps:
 - Open your terminal or command prompt.
 - Run the following command to install the Rust toolchain:
   ```bash
   pip install cryptography
   ```
 - Alternatively, you can try installing it with Rust support enabled:
   ```bash
   pip install cryptography --use-pep517
   ```

### 2. **Check Compatibility with Windows**
   - Since you are on Windows Server 2019, ensure that the Snowflake
connector and its dependencies (like cryptography) are compatible with the
Python version and Windows Server.
   - It might help to uninstall cryptography and reinstall it specifically
with the correct version that supports your environment:
 ```bash
 pip uninstall cryptography
 pip install cryptography==36.0.0  # or the latest version supporting
your setup
 ```

### 3. **Reinstall Snowflake Connector**
   - Uninstall and reinstall the Snowflake connector in case of a corrupt
or incomplete installation:
 ```bash
 pip uninstall snowflake-connector-python
 pip install snowflake-connector-python
 ```

### 4. **Check Apache Configuration (For Production Use)**
   - You mentioned it's working with `python manage.py runserver` but fails
when running on port 80 or domain with Apache.
   - Ensure that Apache has permission to access all necessary Python
packages and environment variables.
   - Verify that the virtual environment (if using one) is activated when
running the application via Apache.
   - You can configure this in the `wsgi.py` file or your Apache config,
ensuring the correct Python environment is being used.

### 5. **DLL Dependencies**
   - If you're still facing issues, you might be missing some DLLs. Install
the [Microsoft Visual C++ Redistributable](
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170),
which is sometimes needed for some Python libraries to run on Windows.

After following these steps, try running the project again on the desired
port or domain.

All the best 👍

On Fri, Sep 13, 2024 at 8:06 PM Tarun Sharma  wrote:

> Hi
>
> I'm trying to use the snowflake connector and i've installed the all
> cryptography dependencies with latest versions. When i'm trying to run the
> project python manage.py run server then it's working fine. When i tried to
> run on 80 number port or domain then it' showing me this error
>
> DLL load failed while importing _rust: The specified module could not be
> found.
> Here is my OS environment.
> 1. Windows server 2019
> 2. Django working with xampp (apache2)
>
> Please let me know if anyone can help me.
>
> Thanks
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9afe5895-a74c-492a-b03e-6dd15b11f80dn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m31535uXWNxzLccJ5jQTFsVN%3DxdCynqHesTcf49imvRSEhw%40mail.gmail.com.


Re: E-comm live project

2024-03-26 Thread RANGA BHARATH JINKA
I am interested. Please add me as well to the whatsapp group - +919110334114

On Tue, Mar 26, 2024 at 3:36 PM Sujata Aghor 
wrote:

> I am interested.
> I have experience in Python Django for 10+ years
>
> On Mon, Mar 25, 2024 at 6:30 PM oduwole samuel 
> wrote:
>
>> I'm interested 07083861162
>>
>> On Fri, Mar 22, 2024, 2:16 PM Md. Amjad Hosen 
>> wrote:
>>
>>> Hi, I’m interested. Whatsapp number is +8801751023426
>>>
>>> On Friday, March 22, 2024 at 9:56:22 AM UTC+6 Collins Emmanuel wrote:
>>>
 Hi, I’m interested. Whatsapp number is +254714411940
 <+254%20714%20411940>

 On Thu 21. Mar 2024 at 22:48, Emmanuel I. Ike 
 wrote:

> +2348139457804 <+234%20813%20945%207804>
>
> Sent from Yahoo Mail on Android
> 
>
> On Tue, 19 Mar 2024 at 16:59, MANAS DEWARI
> <1mv20...@sirmvit.edu> wrote:
> Whastapp Number 9927882702
>
> On Tue, Mar 19, 2024 at 9:00 PM Chisom Iheanacho 
> wrote:
>
> Hi I am very interested and this is my WhatsApp number +2347041155897
> <+234%20704%20115%205897>
>
> On Mon, Mar 18, 2024, 7:45 PM Andrea Latorre 
> wrote:
>
> I'm in 3889249512
>
>
> Il lun 18 mar 2024, 18:26 1001_prabhjot Singh 
> ha scritto:
>
> so i am working on a full stack e-comm website and this project is
> really very big for me because it's a live project am using django for
> backend interested one's can send there number for WhatsApp group
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMDbGketBuda11w4A_rksSvaPss_RWfG0vZSH82QeD2-B6jh_Q%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFX7pJ33P%2BWwp%3DUJ4ox0LFzqM7pwnQZT9dJTCM%3DV1cjkazbdTg%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABAFCJPxC9omzxeTn2wJw-nWQiju0DFZyrSN1_UvrBYDzm3XfA%40mail.gmail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/940023398.7868620.1711042683586%40mail.yahoo.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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/e08a4c76-cae2-45ae-889d-13c34b77142en%40googlegroups.com
>>> 

Re: table bank_app_bank has no column named DOB

2023-08-19 Thread RANGA BHARATH JINKA
Hi,

Try changing DOB to small letters dob and run the migrations again.

All the best 👍

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Sat, 19 Aug 2023, 9:18 pm ivan harold,  wrote:

>
> https://stackoverflow.com/questions/68269165/why-django-is-not-detecting-my-table-column
>
> Try reading this article, it may help you.
>
> On Saturday, August 19, 2023 at 3:05:57 AM UTC+8 meenu loranz wrote:
>
>> from django.contrib.auth.models import User
>> from django.db import models
>> from django.urls import reverse
>> # Create your models here.
>>
>> class bank(models.Model):
>> name = models.CharField(max_length=255)
>> DOB = models.DateField()
>> age = models.IntegerField()
>> gender = models.CharField(max_length=10)
>> phone_no = models.CharField(max_length=10)
>> mail_id = models.EmailField(max_length=25)
>> address = models.CharField(max_length=255)
>> district = models.CharField(max_length=100)
>> branch = models.CharField(max_length=100)
>> account_type = models.CharField(max_length=100)
>> # materials_provided = models.CharField(max_length=100)
>>
>>
>> def __str__(self):
>> return self.name
>>
>> This is my model.py page. And i can see this table and all fields in my
>> database. But while running show me the operational error that no column
>> named DOB. How can i fix this?
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1aaf9e41-e11c-43bb-bda9-17b609814059n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317qD71DXtVnCo%2Bypxf4zAhquzNigBMov4k672qXBcOuUw%40mail.gmail.com.


Re: Finding Help in getting started in Django

2023-05-31 Thread RANGA BHARATH JINKA
Hi,

Go through this quick start tutorial and understand. You can do this. It is
very easy.

https://www.django-rest-framework.org/tutorial/quickstart/

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Wed, 31 May 2023, 2:16 pm DieHardMan 300, 
wrote:

> I'd like to give some advice before start your Django journey and Django
> project configurations
> -- Before Start Django --
> 1. master Python "class" bacause you might use django class-based view a
> lot, learn "decorator" and standard library "datetime" and "re"
> 2. choose "Python version" for your django project, I recommend Python
> 3.10 or 3.11. You should check current installed Python version
> in your terminal --> py --version
> ** if you use Unix OS like MacOS or Linux, type "python3" instead of "py"
> 3. I highly recommend create virtual environment for each django project,
> install virtualenv with pip
> windows cmd --> py -m pip install virtualenv
> then --> py -m virtualenv app-env
> macos terminal --> python3 -m pip install virtualenv
> then --> python3 -m virtualenv app-env
> 4. activate virtual environment you just created
> windows cmd --> app-env\Scripts\activate.bat   or
>  app-env\Scripts\activate
> macos terminal --> source/bin/activate
> to stop virtualenv just type --> deactivate
> 5. install django latest version via pip (you must activate virtualenv
> first)
> --> py -m pip install django
> -- Start Django --
> 1. start new django project (don't forget to activate virtualenv first)
> --> django-admin startproject my-app
> 2. go inside project folder and create "requirements.txt" and type all
> requirement library for your project
>--- requirements.txt ---
> django >= 4.2.0, < 4.3.0
> wheel >= 0.4.0
> ipython >= 8.11.0   # python shell for django project
> python-decouple >= 3.7.0# for hiding sensitive data in settings.py
> before uploading to git
> setuptools >= 67.7.0
> psycopg >= 3.0.0   # postgresql database driver. if
> you use django 4.1 or lower you must install psycopg2 instead of psycopg
>  mysqlclient => 2.1.1# mysql database driver. if you
> already use postgresql you don't need this
> 3. install specified dependencies
> --> py -m pip install -r requirements.txt
> for upgrade your dependencies --> py -m pip install --upgrade -r
> requirements.txt
> by doing this you have more control to your project dependencies
> for example if you specified "django >= 4.2.0, < 4.3.0" it will
> upgrade django between 4.2.0 to 4.2.* but never 4.3.0
> 4. in your main project directory it will have 3 files now
> my-app,  manage.py  and  requirements.txt
> 5. open "settings.py" in "my-app"
> first thing you need to be cautious is SECRET_KEY constant. You must
> never lose it or expose this to public that's why "python-decouple" library
> needed
> for more information https://pypi.org/project/python-decouple/
> 6. in DATABASE section change it to your database
> --- for postgresql ---
> DATABASES = {
> 'default': {
> DATABASE_ENGINE='django.db.backends.postgresql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='5432'
> }
> }
> --- for mysql ---
> DATABASES = {
> 'default': {
> ALLOWED_HOSTS='localhost'
> DATABASE_ENGINE='django.db.backends.mysql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='3306'
> }
> add your "user" and "password", both database port above are default port
> though
> 7. start your first database migrate
> --> py manage.py migrate
>
> Now go for Django Tutorial --> https://docs.djangoproject.com/en/4.2/
> I hope this help you avoid some problems in the future.
>
> ในวันที่ วันอังคารที่ 30 พฤษภาคม ค.ศ. 2023 เวลา 21 นาฬิกา 56 นาที 14
> วินาที UTC+7 Veronica Ndemo เขียนว่า:
>
>> Hi guys I need help.I am just getting started in using Django and I would
>> love to get guidance on how to go about the Django framework
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8f7da283-844b-4fd3-aa73-324a5ada7d7cn%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316NYXbxJXg0skFM79dKANbqKq%2BnL-eMa

Re: django internationalization

2022-11-29 Thread RANGA BHARATH JINKA
Hi,

Please follow this

https://stackoverflow.com/questions/2345708/how-can-i-get-the-full-absolute-url-with-domain-in-django

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Tue, 29 Nov 2022, 11:53 am Dhrub Kumar Sharma, 
wrote:

> I want the remaining slug part print dynamically rather than listing
> manually like https://example.com/ru/hello-world
>
> Here,
> https://example.com/ is a domain
>
> ru - country code
>
> Hello-word is slug
>
> Domain and country code is easy to print using for loop up to available
> country code but for slug i dint get exact code to print when I use {{%
> request.path %} } it also wont work because when the user visit the page
>
> https://example.com/ru/hello-world
>
> Then request.path become
> ru/hello-word
>
> And at this time {{% request.path %} } fetch ru/hello-world so ru will be
> repeated twice in this case and our url become insane like
>
> https://example.com/ru/ru/hello-world
>
> But acutally i want to print only the page path not the full url directory
>
> In the django documentation there is only code avaiable form type select
> to switch language but i want there dropdown with anchor tag there also i
> am facing the same problm and second picture is of dropdown
>
> On Tue, Nov 29, 2022, 4:08 AM David Emanuel Sandoval <
> davidemanuelsando...@gmail.com> wrote:
>
>> Hi, in my case I'm not sure if I'm understanding the problem well.
>>
>> Do you have a different url for every language? Are the urls also
>> translated?
>>
>> In the docs i see they use a tag to get the correct url for the given
>> language, but as I said, I'm not sure if that is what you want.
>>
>>
>> https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#reversing-in-templates
>>
>> El lun, 28 nov 2022 16:54, Dhrub Kumar Sharma 
>> escribió:
>>
>>> Hi everybody I am applying Django internalization for a multilingual
>>> site. I am facing a problem with making href URL dynamic instead of
>>> repeating same code manually.
>>>
>>> [image: url.png]
>>> I tried this but cant get perfect href dynamically. please help me same
>>> problem I am facing in language switcher href also.
>>>
>>> {% get_current_language as LANGUAGE_CODE %}
>>> {% get_available_languages as LANGUAGES %}
>>> {% get_language_info_list for LANGUAGES as languages %}
>>> {% get_language_info for LANGUAGE_CODE as lang %}
>>> {% for lang in languages %}
>>> 
>>> {% endfor %}
>>>
>>> [image: loop.png]
>>>
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6c5c96ea-9866-40b2-9c23-9b03d771ae7en%40googlegroups.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHUWMCaTSbE%2B9fhkNxYJ9ApmRqs9nGfUXgmft8pzajHtuwgmgw%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEgZrmGTB9u%2BdO31zrAK37b0T%3DGJznaqDYDhDAb2Akd2QWmYFA%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317X9H-UT-y12%2BbCf25FLRSec3fy-sZSK4CgppLiT2ohYw%40mail.gmail.com.


Re: Random different values on each request

2022-11-19 Thread RANGA BHARATH JINKA
Hi,

You can use random module in python to generate random numbers

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Thu, 17 Nov 2022, 7:51 pm cs.s...@gmail.com,  wrote:

> Hello friends,
> I am trying to get 2 random values on each response using
> order_by('?')[:2], but getting the same response each time.  also tried
> RandomManager() as described here.
> https://stackoverflow.com/questions/962619/how-to-pull-a-random-record-using-djangos-orm
> , but still getting the same response.   (SQL query:  SELECT TOP 2 * FROM
> QuizBank ORDER BY NEWID())
>
> views.py:
> class GetEssayQuestion(APIView):
> def get(self, request):
> data = Quizbank.objects.all().filter(status=1,
> section=5).order_by('?')[:2]
> serializer = QuizbankSerializer(data, many=True)
> return Response(serializer.data)
>
> Appreciate any reference? Thanks.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/800a6bc3-9870-47dd-8f41-54f13de108bdn%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317RvY8e3zW-e1hHS5r66grz5KvztWuuwJ0KzvPTODAUKA%40mail.gmail.com.


Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-13 Thread RANGA BHARATH JINKA
Hi,
Please follow this. All the best

https://www.geekfeed.co.jp/geekblog/sending-live-streaming-images-from-clients-webcam-to-django-server/

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Wed, 12 Oct 2022, 9:13 pm Anshuman Thakur, 
wrote:

> Sir my question is: Sending Live Streaming  from Client’s Webcam to
> Django Server.
>
>
> On Tue, Oct 11, 2022 at 2:39 AM 'Kasper Laudrup' via Django users <
> django-users@googlegroups.com> wrote:
>
>> On 08/10/2022 21.28, Anshuman Thakur wrote:
>> > Sr plz anyone help me for this question
>> >
>>
>> Which question?
>>
>> It would be easier for someone to help you if you actually asked a
>> question.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/fe047fd3-39e1-3eaf-eb41-05ecc54bfc34%40stacktrace.dk
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADGZiBqbJYj%3DvQ8D%2BuL3rL8hRQpxYQhr-EBsLA9ySC%3Dp3sm9uw%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314Dy-6PHYHz1vBRetOSgsTAQdnqy-XsGWxoO8PiEKU1wg%40mail.gmail.com.


Re: Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread RANGA BHARATH JINKA
Hi,

Run python manage.py makemigrations

python manage.py migrate

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Tue, 26 Apr 2022, 1:07 pm Israel Lewis,  wrote:

> Hello guys,
>
> I'm having an error in my models when I add the FK to the faculty or the
> student.
> model.py
> from django.db import models
>
> # Create your models here.
>
>
> class Student(models.Model):
> first_name = models.CharField(max_length=100)
> last_name = models.CharField(max_length=100)
> reg_no = models.CharField(max_length=20, unique=True)
>
> def __str__(self):
> return self.first_name
>
>
> class Faculty(models.Model):
> faculty_name = models.CharField(max_length=100)
> student = models.ForeignKey(Student, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.faculty_name
>
>
> class Course(models.Model):
> course_name = models.CharField(max_length=100, unique=True)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.course_name
>
>
> class Dean(models.Model):
> dean_name = models.CharField(max_length=100)
> faculty = models.OneToOneField(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.dean_name
>
>
> class StudentRequest(models.Model):
> student_name = models.CharField(max_length=100)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
> reg_no = models.CharField(max_length=20)
> reasons = models.CharField(max_length=300, null=False)
>
> def __str__(self):
> return f"{self.student_name}"
>
>
> class FinancialRecords(models.Model):
> ACADENIC_YEAR_CHOICES = [
> ('Year 3 Sem 2'),
> ('Year 4 Sem 2')
> ]
> PAYMENT_PLAN_CHOICES = [
> ('Full'),
> ('Follow'),
> ('Fail'),
> ]
>
> payment_plan_category = models.CharField(
> PAYMENT_PLAN_CHOICES, max_length=10)
>
> student_reg = models.ForeignKey(Student, models.CASCADE)
> academic_year = models.CharField(ACADENIC_YEAR_CHOICES, max_length=20)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
>
>
>
> Errors
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/utils.py",
> line 89, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
> line 477, in execute
> return Database.Cursor.execute(self, query, params)
> sqlite3.OperationalError: no such column: exams_app_faculty.student_id
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 55, in inner
> response = get_response(request)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 683, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/views/decorators/cache.py",
> line 62, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/sites.py",
> line 242, in inner
> return view(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 46, in _wrapper
> return bound_method(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 2063, in changelist_view
> "selection_note": _("0 of %(cnt)s selected") % {"cnt":
> len(cl.result_list)},
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 302, in __len__
> self._fetch_all()
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all
> self._result_cache = list(self._iterable_class(self))
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 57, in __iter__
> results = compiler.execute_sql(
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python

Re: Help : Embedding pdf in Django detailview

2022-03-17 Thread RANGA BHARATH JINKA
Hi,

Please try this.

https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view

On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay  wrote:

> Hello guys, I'm developing a job board, and I want to display uploaded
> files in job detailview without downloading the file.
> When job seakers open a posted job I want the uploaded file from employer
> to be rendered in web browser
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAC32Mkjj-frMgLdc0_MY1_sBrN_MxV0DLPb3gXAY8%3DZ4oL%2BnXQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315HHYbmF-tX67SjZh5SoXvS7dscwJbUfTsddynoJr2zjg%40mail.gmail.com.


Re: Django App

2022-02-07 Thread RANGA BHARATH JINKA
What is the error. Please share here

On Tue, 8 Feb 2022, 12:13 am Abdulrahman Abbas, 
wrote:

> Pls I'm trying to host a Django app on a free hosting sites basically
> netlify and heroku but it keeps failing while building pls is there
> anything I need to install or any other alternative
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGGqo0PykUHdvNUUkDhDtwU_SD_w7-%2BZ%2BOZEZyJ-Kh4BDwdTSw%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317Z4bt%2BUvZRRLirCR1aCfzsz7CPhbHhaqJBvjU0HbbNyA%40mail.gmail.com.


Re: migrations: "no changes detected"

2022-02-07 Thread RANGA BHARATH JINKA
Hi,

I think you forgot to add the app name in settings file. Please add the app
names in installed apps. Then it will find out the models.

All the best


On Tue, 8 Feb 2022, 10:14 am 'Delvin Alexander' via Django users, <
django-users@googlegroups.com> wrote:

> I am trying to run migrations so that i can create a table, but when I
> type out, "python manage.py makemigrations"
> it returns this: "no changes detected"
>
> would anyone know the reason for this?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/639770ea-db24-469a-a123-6f4cb2af3036n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314skg-HBhQx25mxzg4rHEp8-5jZEX8%2BT9Kr8uDHv-bR5A%40mail.gmail.com.


Re: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi,

Please follow this.
https://djangocentral.com/managing-media-files-in-django/
You have to store your images in a static media folder by adding the media
path in settings.py.
This is the recommended way and easy to access the images

All the best

On Wed, Feb 2, 2022 at 11:30 AM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Pass the pdf URL as a context variable in the views function. Then you can
> easily access it in your HTML using jinja templating and HTML anchor tag  href="{{pdf_url}}"  download target="__blank" />
>
> All the best
>
> On Wed, Feb 2, 2022 at 11:03 AM ramsha azhar 
> wrote:
>
>> still, I'm confused, Guide me what to write in views.py to display images
>> on my HTML page.
>> the main problem is how to set this path in views.py file to get image
>> from this path. I jst want to display this tree.pdf file on my html page.
>> Any one tell me what to write in views.py?
>> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>> filename = 'Tree.pdf'
>> filepath = BASE_DIR + '//' + filename
>> path = open(filepath, 'rb')
>>
>> On Mon, Jan 31, 2022 at 9:00 PM ramsha azhar 
>> wrote:
>>
>>> yes, I set check the attached settings.py file
>>>  just want to know In template page how I set the path od
>>> back directory folder where tree.png is placed.
>>>
>>> On Mon, Jan 31, 2022 at 8:55 PM DJANGO DEVELOPER <
>>> abubakarbr...@gmail.com> wrote:
>>>
>>>> have you set up the static files in settings.py ?
>>>>
>>>> On Mon, Jan 31, 2022 at 8:49 PM ramsha azhar 
>>>> wrote:
>>>>
>>>>> I just want to display the attached Tree.png image on the HTML page
>>>>> but this image is created each time new according to the user input file.
>>>>> guide me how to set the path of this mage on an HTML page or how to 
>>>>> display
>>>>> this tree.png as a user output image.
>>>>>
>>>>> On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER <
>>>>> abubakarbr...@gmail.com> wrote:
>>>>>
>>>>>> tell me what you want to get as a result? do you want to display
>>>>>> multiple images on HTML template?
>>>>>>
>>>>>> On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar 
>>>>>> wrote:
>>>>>>
>>>>>>> So guide me the write way ...
>>>>>>>
>>>>>>> On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELOPER, <
>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>
>>>>>>>> you are doing it the wrong way. totally the wrong way. I am not
>>>>>>>> being rude.
>>>>>>>>
>>>>>>>> On Mon, Jan 31, 2022 at 7:42 PM ramsha azhar <
>>>>>>>> ramshaazha...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Gide me Django develpers. I just want to display my pictures that
>>>>>>>>> are created each time new.
>>>>>>>>> My mages are created in my project folder, not in the static
>>>>>>>>> folder.
>>>>>>>>> how I display images on the HTML page by using the path of my
>>>>>>>>> project folder.
>>>>>>>>>
>>>>>>>>> views.py
>>>>>>>>>
>>>>>>>>> def Image_display(request):
>>>>>>>>>   BASE_DIR =
>>>>>>>>> os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>>>>>>>>>   filename = 'Tree.jpg'
>>>>>>>>>   filepath = BASE_DIR + '//' + filename
>>>>>>>>>   images = Image.objects.all('filepath')
>>>>>>>>>   return render(request, "xyz.html", {'images': images})
>>>>>>>>>
>>>>>>>>> url.py
>>>>>>>>> path('Image_display/', views.Image_display, name="Image_display"),
>>>>>>>>>
>>>>>>>>> HTML page
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> --

Re: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi,

Pass the pdf URL as a context variable in the views function. Then you can
easily access it in your HTML using jinja templating and HTML anchor tag 

All the best

On Wed, Feb 2, 2022 at 11:03 AM ramsha azhar 
wrote:

> still, I'm confused, Guide me what to write in views.py to display images
> on my HTML page.
> the main problem is how to set this path in views.py file to get image
> from this path. I jst want to display this tree.pdf file on my html page.
> Any one tell me what to write in views.py?
> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> filename = 'Tree.pdf'
> filepath = BASE_DIR + '//' + filename
> path = open(filepath, 'rb')
>
> On Mon, Jan 31, 2022 at 9:00 PM ramsha azhar 
> wrote:
>
>> yes, I set check the attached settings.py file
>>  just want to know In template page how I set the path od
>> back directory folder where tree.png is placed.
>>
>> On Mon, Jan 31, 2022 at 8:55 PM DJANGO DEVELOPER 
>> wrote:
>>
>>> have you set up the static files in settings.py ?
>>>
>>> On Mon, Jan 31, 2022 at 8:49 PM ramsha azhar 
>>> wrote:
>>>
 I just want to display the attached Tree.png image on the HTML page but
 this image is created each time new according to the user input file. guide
 me how to set the path of this mage on an HTML page or how to display this
 tree.png as a user output image.

 On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER <
 abubakarbr...@gmail.com> wrote:

> tell me what you want to get as a result? do you want to display
> multiple images on HTML template?
>
> On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar 
> wrote:
>
>> So guide me the write way ...
>>
>> On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELOPER, <
>> abubakarbr...@gmail.com> wrote:
>>
>>> you are doing it the wrong way. totally the wrong way. I am not
>>> being rude.
>>>
>>> On Mon, Jan 31, 2022 at 7:42 PM ramsha azhar <
>>> ramshaazha...@gmail.com> wrote:
>>>
 Gide me Django develpers. I just want to display my pictures that
 are created each time new.
 My mages are created in my project folder, not in the static folder.
 how I display images on the HTML page by using the path of my
 project folder.

 views.py

 def Image_display(request):
   BASE_DIR =
 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
   filename = 'Tree.jpg'
   filepath = BASE_DIR + '//' + filename
   images = Image.objects.all('filepath')
   return render(request, "xyz.html", {'images': images})

 url.py
 path('Image_display/', views.Image_display, name="Image_display"),

 HTML page
 
 
 
 

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/8da245ea-ea90-4730-83c0-accafc93b86bn%40googlegroups.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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKPY9p%3DE1FmUc%3Dqqy1tGYBJbimFX873XXSTDndnn4kVUjo3ZWg%40mail.gmail.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMyb2%3DheLgJo5dMxsCgQ8cm%3Dp0px5EHpLr2frYtDowV8mmC%2BbQ%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
>>>

Re: Gyftr api integration

2021-06-27 Thread RANGA BHARATH JINKA
https://business.gyft.com/developers/

On Sun, 27 Jun 2021, 10:48 pm RANGA BHARATH JINKA, 
wrote:

> Hi. Try this API. They have API documentation.
>
> https://business.gyft.com/developers/docs/
>
> On Sun, 27 Jun 2021, 10:03 pm Anuj Kumar,  wrote:
>
>> Hello,
>> Gyftr.com is gift voucher service website which provides online evouchers
>> on big brands, so I'm looking for its gift voucher API to integrate in my
>> app.
>> My app is service based application so this API Is useful for my users.
>>
>> How can I contact for their API?
>>
>> REGARDS
>> ANUJ KUMAR
>>
>> On Sun, 27 Jun 2021 at 9:59 PM, Puneet Makhija 
>> wrote:
>>
>>> What do you mean by 'gyftr' please let me know
>>> What do you want to achieve
>>>
>>> On Sun, Jun 27, 2021, 9:13 PM Anuj Kumar  wrote:
>>>
>>>> i also want api , please help me out
>>>>
>>>> On Friday, 30 October 2020 at 13:53:59 UTC+5:30 ankitba...@gmail.com
>>>> wrote:
>>>>
>>>>> Plz, Tell me how to integrate Gyftr api in rest-framework.
>>>>>
>>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/a0e05f9c-d3fb-4140-b98b-b89720da1412n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/a0e05f9c-d3fb-4140-b98b-b89720da1412n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHqz0_ar9_PC%3D7%2BTtuQKxWasQj9NYiAbCtQ4F%2BsZUus-SCxi_A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHqz0_ar9_PC%3D7%2BTtuQKxWasQj9NYiAbCtQ4F%2BsZUus-SCxi_A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CALN6RQEPdd7S-q-MMsCadhD%2BacHYuOhQcdo2iimQR%2B5WQcqBww%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALN6RQEPdd7S-q-MMsCadhD%2BacHYuOhQcdo2iimQR%2B5WQcqBww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316TA%3D%3DmZjH6ABzvO1dJK_R-qXpP7b%2B3Ba7gzq_3DvNucg%40mail.gmail.com.


Re: Gyftr api integration

2021-06-27 Thread RANGA BHARATH JINKA
Hi. Try this API. They have API documentation.

https://business.gyft.com/developers/docs/

On Sun, 27 Jun 2021, 10:03 pm Anuj Kumar,  wrote:

> Hello,
> Gyftr.com is gift voucher service website which provides online evouchers
> on big brands, so I'm looking for its gift voucher API to integrate in my
> app.
> My app is service based application so this API Is useful for my users.
>
> How can I contact for their API?
>
> REGARDS
> ANUJ KUMAR
>
> On Sun, 27 Jun 2021 at 9:59 PM, Puneet Makhija 
> wrote:
>
>> What do you mean by 'gyftr' please let me know
>> What do you want to achieve
>>
>> On Sun, Jun 27, 2021, 9:13 PM Anuj Kumar  wrote:
>>
>>> i also want api , please help me out
>>>
>>> On Friday, 30 October 2020 at 13:53:59 UTC+5:30 ankitba...@gmail.com
>>> wrote:
>>>
 Plz, Tell me how to integrate Gyftr api in rest-framework.

 --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/a0e05f9c-d3fb-4140-b98b-b89720da1412n%40googlegroups.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHqz0_ar9_PC%3D7%2BTtuQKxWasQj9NYiAbCtQ4F%2BsZUus-SCxi_A%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALN6RQEPdd7S-q-MMsCadhD%2BacHYuOhQcdo2iimQR%2B5WQcqBww%40mail.gmail.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315OMdJUuoa5FL9gVtRWGnNJhzqqwmgdN%3DQVNnsCvpT2pQ%40mail.gmail.com.


Re: struck at gettiing each product urls from addidas website

2021-06-21 Thread RANGA BHARATH JINKA
Hi,

Try to print all the variables one by one. You will get to know from where
the issue is coming from.
All the best

On Tue, Jun 22, 2021 at 10:06 AM ram manoj Vuyyuru <
rammanojvuyy...@gmail.com> wrote:

> Hi previous one prints nothing
>
> and this is another way but getting nothing
>
> import requests
> from bs4 import BeautifulSoup
>
> base_url="https://www.adidas.com.my/en/men-shoes/";
>
> headers = {
> 'User-Agent':
> 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
> Chrome/72.0.3626.121 Safari/537.36'
> }
> for x in range(0,18):
> x=x*(12*4)
> r = requests.get(f'https://www.adidas.com.my/en/men-shoes?start={x}')
> soup = BeautifulSoup(r.content,'lxml')
>
> productlist = soup.find_all('div', class_='grid-item___3rAkS')
>
> productlinks=[]
> for item in productlist:
> for link in item.find_all('a',href=True):
> productlinks.append(base_url+ link['href'])
>
> print(productlinks)
> thanks
> On Tue, Jun 22, 2021 at 9:52 AM Lalit Suthar 
> wrote:
>
>> print(links) outside for loop. Even then if nothing prints means your
>> `listings` is empty
>>
>> On Tue, 22 Jun 2021 at 08:51, ram manoj Vuyyuru <
>> rammanojvuyy...@gmail.com> wrote:
>>
>>> HI
>>> help me for getting urls for each product
>>> import pandas as pd
>>> import requests
>>> from bs4 import BeautifulSoup as bs
>>>
>>>
>>> url = "https://www.adidas.com.my/en/men-shoes?start=0";
>>> page = requests.get(url)
>>> soup = bs(page.text,"html.parser")
>>>
>>> links=[]
>>> listings = soup.find_all('div',{'class':'grid-item___3rAkS'})
>>> for listing in listings:
>>> shoes_link= listing.find_all("a").a.get("href")
>>> base_url="https://www.adidas.com.my/en/men-shoes/";
>>> cmplt_lnk=base_url+shoes_link
>>> links.append(cmplt_lnk)
>>> print(links)
>>>
>>>
>>> my code :
>>> when i run this i am not getting any result
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALJzFip9tmQTxygmWpqpc%3DqKHipNNf4HXhofGFXOPy3pp4bMCw%40mail.gmail.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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGp2JVH%2BioS8doxM77s8BPjZjkc-hh7YrXecVO4fztwgFSPjWw%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALJzFioVAbjZyaacEyc%2BjhbdRa1V7GmFTdd8eBC%3Dp-oN0sWpfg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315%2B3FKngm9mZEKSBCXj95TpMkxuHAR_54izjQEG%2Bg4Uzw%40mail.gmail.com.


Re: Announcing DjHTML: A Django template indender

2021-05-24 Thread RANGA BHARATH JINKA
Awesome

On Tue, May 25, 2021 at 10:13 AM lalit suthar 
wrote:

> This is looking pretty cool!
>
> On Monday, 24 May 2021 at 18:54:12 UTC+5:30 Jaap Joris Vens wrote:
>
>> Dear all,
>>
>> I would like to take this opportunity to announce my side project to
>> the Django community. It's a Django template indenter called DjHTML.
>> It's Black for Django templates!
>>
>> https://github.com/rtts/djhtml/
>>
>> Over the past year I have fallen in love with Black and pre-commit to
>> automatically format code upon each commit. However, I could not find
>> any tool that would do the same for HTML files and so I decided to
>> write one myself. Take for instance the following template:
>>
>> {% block content %}
>> > {% if index > 1 %}
>> class="extra"
>> {% endif %}
>> >
>> {% localize on %}
>> {% if clickable %}
>> 
>> {% endif %}
>> Blog post {{ nr }}
>> {% if clickable %}
>> 
>> {% endif %}
>> {% endlocalize %}
>> 
>> {% endblock %}
>>
>> This is what it looks like after processing by DjHTML:
>>
>> {% block content %}
>> > {% if index > 1 %}
>> class="extra"
>> {% endif %}
>> >
>> {% localize on %}
>> {% if clickable %}
>> 
>> {% endif %}
>> Blog post {{ nr }}
>> {% if clickable %}
>> 
>> {% endif %}
>> {% endlocalize %}
>> 
>> {% endblock %}
>>
>> Currently, DjHTML is able to parse DTL, HTML, CSS, Javascript and any
>> combinations of these inside the same template. The indentation rules
>> are similar to Emacs' web-mode.el but with better handling of some
>> edge cases.
>>
>> The difference with Black is that DjHTML is an indenter and not a
>> formatter: It will only add/remove whitespace and not insert newlines
>> or any other characters. The goal is to indent already well-structured
>> templates but not to fix broken ones. Also, unlike Black, the tabwidth
>> is configurable :-)
>>
>> I am hoping that some of you will give it a try and hopefully provide
>> me with some feedback, test cases, and bug reports that will help me
>> improve this tool.
>>
>> Greetings,
>> Jaap Joris Vens
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1c5db289-6978-49bd-a306-271997bd5154n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316w4rBMedgB%2BhJWJNRdh-ht2PZUWXLVmrJkvya7tdgP2g%40mail.gmail.com.


Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
You are welcome :-)

On Tue, May 25, 2021 at 3:41 AM Michał T. Lorenc 
wrote:

> Hi,
> Thank you it works.
>
> On Tue, May 25, 2021 at 12:31 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> hi,
>>
>> Run migrations. python manage.py makemigrations and python manage.py
>> migrate
>>
>> On Mon, May 24, 2021 at 7:20 PM Mic  wrote:
>>
>>> Hello,
>>> I found a Django project and failed to get it running in Docker
>>> container in the following way:
>>>
>>>  1. `*git clone git clone https://github.com/NAL-i5K/django-blast.git
>>> <https://github.com/NAL-i5K/django-blast.git>*`
>>>  2. `*$ cat requirements.txt*` in this files the below dependencies had
>>> to be updated:
>>> - psycopg2==2.8.6
>>>
>>> I have the following Dockerfile:
>>>
>>> ```
>>> *FROM python:2*
>>> *ENV PYTHONUNBUFFERED=1*
>>> *RUN apt-get update && apt-get install -y postgresql-client*
>>> *WORKDIR /code*
>>> *COPY requirements.txt /code/*
>>> *RUN pip install -r requirements.txt*
>>> *COPY . /code/*
>>> *RUN mkdir -p /var/log/django*
>>> *RUN mkdir -p /var/log/i5k*
>>> ```
>>>
>>> For `docker-compose.yml` I use:
>>>
>>> ```
>>> *version: "3"*
>>>
>>> *services:*
>>> *  db:*
>>> *image: postgres*
>>> *volumes:*
>>> *  - ./data/db:/var/lib/postgresql/data*
>>> *  -
>>> ./scripts/install-extensions.sql:/docker-entrypoint-initdb.d/install-extensions.sql*
>>>
>>> *environment:*
>>> *  - POSTGRES_DB=postgres*
>>> *  - POSTGRES_USER=postgres*
>>> *  - POSTGRES_PASSWORD=postgres*
>>>
>>> *  web:*
>>> *build: .*
>>> *command: python manage.py runserver 0.0.0.0:8000
>>> <http://0.0.0.0:8000>*
>>> *volumes:*
>>> *  - .:/code*
>>> *ports:*
>>> *  - "8000:8000"*
>>> *depends_on:*
>>> *  - db*
>>> *links:*
>>> *  - db*
>>> ```
>>>
>>> ```
>>> *$ cat scripts/install-extensions.sql *
>>> *CREATE EXTENSION hstore;*
>>> ```
>>>
>>> I had to change:
>>>
>>> ```
>>> *$ vim i5k/settings.py*
>>> *DATABASES = {*
>>> *'default': {*
>>> *'ENGINE': 'django.db.backends.postgresql_psycopg2',*
>>> *'NAME': 'postgres',*
>>> *'USER': 'postgres',*
>>> *'PASSWORD': 'postgres',*
>>> *'HOST': 'db',*
>>> *'PORT': '5432',*
>>> *}*
>>> *}*
>>> ```
>>>
>>> Next, I ran `*docker-compose up --build*` and opened in Browser 
>>> `*http://localhost:8000/admin/
>>> <http://localhost:8000/admin/>*` which caused:
>>>
>>> ```
>>> *Environment:*
>>>
>>>
>>> *Request Method: GET*
>>> *Request URL: http://localhost:8000/admin/
>>> <http://localhost:8000/admin/>*
>>>
>>> *Django Version: 1.8.12*
>>> *Python Version: 2.7.18*
>>> *Installed Applications:*
>>> *('django.contrib.auth',*
>>> * 'django.contrib.contenttypes',*
>>> * 'django.contrib.sessions',*
>>> * 'django.contrib.sites',*
>>> * 'django.contrib.messages',*
>>> * 'django.contrib.staticfiles',*
>>> * 'django.contrib.postgres',*
>>> * 'axes',*
>>> * 'rest_framework',*
>>> * 'rest_framework_swagger',*
>>> * 'pipeline',*
>>> * 'app',*
>>> * 'blast',*
>>> * 'migrate_account',*
>>> * 'suit',*
>>> * 'filebrowser',*
>>> * 'django.contrib.admin',*
>>> * 'django.contrib.admindocs',*
>>> * 'social.apps.django_app.default',*
>>> * 'captcha',*
>>> * 'dashboard',*
>>> * 'proxy',*
>>> * 'hmmer',*
>>> * 'clustal',*
>>> * 'webapollo_sso',*
>>> * 'drupal_sso')*
>>> *Installed Middleware:*
>>> *(

Re: Exception Value: relation "django_session" does not exist

2021-05-24 Thread RANGA BHARATH JINKA
hi,

Run migrations. python manage.py makemigrations and python manage.py migrate

On Mon, May 24, 2021 at 7:20 PM Mic  wrote:

> Hello,
> I found a Django project and failed to get it running in Docker container
> in the following way:
>
>  1. `*git clone git clone https://github.com/NAL-i5K/django-blast.git
> *`
>  2. `*$ cat requirements.txt*` in this files the below dependencies had
> to be updated:
> - psycopg2==2.8.6
>
> I have the following Dockerfile:
>
> ```
> *FROM python:2*
> *ENV PYTHONUNBUFFERED=1*
> *RUN apt-get update && apt-get install -y postgresql-client*
> *WORKDIR /code*
> *COPY requirements.txt /code/*
> *RUN pip install -r requirements.txt*
> *COPY . /code/*
> *RUN mkdir -p /var/log/django*
> *RUN mkdir -p /var/log/i5k*
> ```
>
> For `docker-compose.yml` I use:
>
> ```
> *version: "3"*
>
> *services:*
> *  db:*
> *image: postgres*
> *volumes:*
> *  - ./data/db:/var/lib/postgresql/data*
> *  -
> ./scripts/install-extensions.sql:/docker-entrypoint-initdb.d/install-extensions.sql*
>
> *environment:*
> *  - POSTGRES_DB=postgres*
> *  - POSTGRES_USER=postgres*
> *  - POSTGRES_PASSWORD=postgres*
>
> *  web:*
> *build: .*
> *command: python manage.py runserver 0.0.0.0:8000
> *
> *volumes:*
> *  - .:/code*
> *ports:*
> *  - "8000:8000"*
> *depends_on:*
> *  - db*
> *links:*
> *  - db*
> ```
>
> ```
> *$ cat scripts/install-extensions.sql *
> *CREATE EXTENSION hstore;*
> ```
>
> I had to change:
>
> ```
> *$ vim i5k/settings.py*
> *DATABASES = {*
> *'default': {*
> *'ENGINE': 'django.db.backends.postgresql_psycopg2',*
> *'NAME': 'postgres',*
> *'USER': 'postgres',*
> *'PASSWORD': 'postgres',*
> *'HOST': 'db',*
> *'PORT': '5432',*
> *}*
> *}*
> ```
>
> Next, I ran `*docker-compose up --build*` and opened in Browser 
> `*http://localhost:8000/admin/
> *` which caused:
>
> ```
> *Environment:*
>
>
> *Request Method: GET*
> *Request URL: http://localhost:8000/admin/ *
>
> *Django Version: 1.8.12*
> *Python Version: 2.7.18*
> *Installed Applications:*
> *('django.contrib.auth',*
> * 'django.contrib.contenttypes',*
> * 'django.contrib.sessions',*
> * 'django.contrib.sites',*
> * 'django.contrib.messages',*
> * 'django.contrib.staticfiles',*
> * 'django.contrib.postgres',*
> * 'axes',*
> * 'rest_framework',*
> * 'rest_framework_swagger',*
> * 'pipeline',*
> * 'app',*
> * 'blast',*
> * 'migrate_account',*
> * 'suit',*
> * 'filebrowser',*
> * 'django.contrib.admin',*
> * 'django.contrib.admindocs',*
> * 'social.apps.django_app.default',*
> * 'captcha',*
> * 'dashboard',*
> * 'proxy',*
> * 'hmmer',*
> * 'clustal',*
> * 'webapollo_sso',*
> * 'drupal_sso')*
> *Installed Middleware:*
> *('django.middleware.common.CommonMiddleware',*
> * 'django.contrib.sessions.middleware.SessionMiddleware',*
> * 'django.middleware.csrf.CsrfViewMiddleware',*
> * 'django.contrib.auth.middleware.AuthenticationMiddleware',*
> * 'django.contrib.messages.middleware.MessageMiddleware',*
> * 'axes.middleware.FailedLoginMiddleware',*
> * 'app.middleware.SocialAuthExceptionMiddleware')*
>
>
> *Traceback:*
> *File
> "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in
> get_response*
> *  132. response = wrapped_callback(request,
> *callback_args, **callback_kwargs)*
> *File
> "/usr/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in
> wrapper*
> *  254. return self.admin_view(view, cacheable)(*args,
> **kwargs)*
> *File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py"
> in _wrapped_view*
> *  110. response = view_func(request, *args, **kwargs)*
> *File
> "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py"
> in _wrapped_view_func*
> *  57. response = view_func(request, *args, **kwargs)*
> *File
> "/usr/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in
> inner*
> *  222. if not self.has_permission(request):*
> *File
> "/usr/local/lib/python2.7/site-packages/django/contrib/admin/sites.py" in
> has_permission*
> *  162. return request.user.is_active and request.user.is_staff*
> *File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py"
> in inner*
> *  225. self._setup()*
> *File "/usr/local/lib/python2.7/site-packages/django/utils/functional.py"
> in _setup*
> *  376. self._wrapped = self._setupfunc()*
> *File
> "/usr/local/lib/python2.7/site-packages/django/contrib/auth/middleware.py"
> in *
> *  22. request.user = SimpleLazyObject(lambda: get_user(request))*
> *File
> "/usr/local/lib/python2.7/site-packages/django/contrib/auth/middleware.py"
> in get_user*
> *  10. request._cached_user = auth.get_user(reque

Re: i need to show multiselectfields

2021-05-18 Thread RANGA BHARATH JINKA
What is the error you are facing. Please share the screenshots

On Tue, 18 May 2021, 10:17 pm Gegi Esitashvili, 
wrote:

> I tried it before posted here, It doesnt work unfortuntly :(
>
> On Tue, 18 May 2021 at 19:11, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> use {{ facilitie.name }} instead of {{ facilitie }}
>> {{ facilitie.name
>> }}
>>
>> On Tue, May 18, 2021 at 8:27 PM RANGA BHARATH JINKA <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please share screenshots. So that we can understand where you want to
>>> show
>>>
>>> On Tue, May 18, 2021 at 8:04 PM Gegi Esitashvili <
>>> gegiesitashv...@gmail.com> wrote:
>>>
>>>>
>>>> and i got it what i wanted but it is only facilitiess id and not its
>>>> name, so i need to show up its name and not id.
>>>> On Monday, 17 May 2021 at 08:21:25 UTC+4 bharath...@gmail.com wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Use a select box with multiple attribute instead of ul and li. Loop
>>>>> through options. Please go through this.
>>>>> https://www.w3schools.com/tags/att_select_multiple.asp#:~:text=For%20windows%3A%20Hold%20down%20the,button%20to%20select%20multiple%20options
>>>>>
>>>>> All the best
>>>>>
>>>>> On Sun, May 16, 2021 at 8:50 PM Gegi Esitashvili 
>>>>> wrote:
>>>>>
>>>>>> hello everyone, i am using django allauth, also i have installed
>>>>>> multiselectfield and trying show my facilities on the site.
>>>>>>
>>>>>> this is my models.py
>>>>>>
>>>>>> class Hotel(models.Model):
>>>>>> name = models.CharField(max_length=128)
>>>>>> description = models.TextField()
>>>>>> stars = models.IntegerField()
>>>>>> price = models.IntegerField()
>>>>>> picture = models.ImageField(upload_to='images',
>>>>>> default="images/124180566_3771168516249284_3976912378791517206_o.jpg")
>>>>>> HOTEL_TYPE = (
>>>>>> ("Free WiFi", "free wiFi"),
>>>>>> ("Free Parking", "Free Parking"),
>>>>>> )
>>>>>> popular_facilities = MultiSelectField(choices=HOTEL_TYPE)
>>>>>>
>>>>>>
>>>>>> this is my views.py
>>>>>>
>>>>>> def see_more(request, id):
>>>>>> seemore = Hotel.objects.get(id=id)
>>>>>> reviews = HotelReview.objects.filter(review=id, permission=True)[:2]
>>>>>> facilities = seemore.popular_facilities
>>>>>> form = HotelReviewForm()
>>>>>> if request.method == "GET":
>>>>>> form = HotelReviewForm(request.GET or None) #request.FILES მედიას
>>>>>> ატვირთვა თუ გვინდა
>>>>>> if form.is_valid():
>>>>>> data = form.save(commit=False)
>>>>>> data.review = seemore
>>>>>> data.name = form.cleaned_data.get("name")
>>>>>> data.email = form.cleaned_data.get('email')
>>>>>> data.comment = form.cleaned_data.get('comment')
>>>>>> data.rating_number = form.cleaned_data.get('rating_number')
>>>>>> data.permission = True
>>>>>> data.save()
>>>>>>
>>>>>> return redirect('hotel:seemore', id)
>>>>>>
>>>>>> context = {
>>>>>> 'seemore':seemore,
>>>>>> 'reviews':reviews,
>>>>>> 'form':form,
>>>>>> 'facilities':facilities
>>>>>> }
>>>>>> return render(request, 'hotel/seemore.html', context)
>>>>>>
>>>>>> and this is my html
>>>>>>
>>>>>> Popular Facilities
>>>>>> 
>>>>>> {% for facilitie in facilities %}
>>>>>> {{ facilitie
>>>>>> }}
>>>>>> {% endfor %}
>>>>>>
>>>>>> and this is what is showed up[image: 1.PNG]
>>>>>>
>>>>>>
>>>>>>
>>>>>> can anyone help me?
>>>>>>
>>>>>> --
>>>>&

Re: i need to show multiselectfields

2021-05-18 Thread RANGA BHARATH JINKA
use {{ facilitie.name }} instead of {{ facilitie }}
{{ facilitie.name
}}

On Tue, May 18, 2021 at 8:27 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Please share screenshots. So that we can understand where you want to show
>
> On Tue, May 18, 2021 at 8:04 PM Gegi Esitashvili <
> gegiesitashv...@gmail.com> wrote:
>
>>
>> and i got it what i wanted but it is only facilitiess id and not its
>> name, so i need to show up its name and not id.
>> On Monday, 17 May 2021 at 08:21:25 UTC+4 bharath...@gmail.com wrote:
>>
>>> Hi,
>>>
>>> Use a select box with multiple attribute instead of ul and li. Loop
>>> through options. Please go through this.
>>> https://www.w3schools.com/tags/att_select_multiple.asp#:~:text=For%20windows%3A%20Hold%20down%20the,button%20to%20select%20multiple%20options
>>>
>>> All the best
>>>
>>> On Sun, May 16, 2021 at 8:50 PM Gegi Esitashvili 
>>> wrote:
>>>
>>>> hello everyone, i am using django allauth, also i have installed
>>>> multiselectfield and trying show my facilities on the site.
>>>>
>>>> this is my models.py
>>>>
>>>> class Hotel(models.Model):
>>>> name = models.CharField(max_length=128)
>>>> description = models.TextField()
>>>> stars = models.IntegerField()
>>>> price = models.IntegerField()
>>>> picture = models.ImageField(upload_to='images',
>>>> default="images/124180566_3771168516249284_3976912378791517206_o.jpg")
>>>> HOTEL_TYPE = (
>>>> ("Free WiFi", "free wiFi"),
>>>> ("Free Parking", "Free Parking"),
>>>> )
>>>> popular_facilities = MultiSelectField(choices=HOTEL_TYPE)
>>>>
>>>>
>>>> this is my views.py
>>>>
>>>> def see_more(request, id):
>>>> seemore = Hotel.objects.get(id=id)
>>>> reviews = HotelReview.objects.filter(review=id, permission=True)[:2]
>>>> facilities = seemore.popular_facilities
>>>> form = HotelReviewForm()
>>>> if request.method == "GET":
>>>> form = HotelReviewForm(request.GET or None) #request.FILES მედიას
>>>> ატვირთვა თუ გვინდა
>>>> if form.is_valid():
>>>> data = form.save(commit=False)
>>>> data.review = seemore
>>>> data.name = form.cleaned_data.get("name")
>>>> data.email = form.cleaned_data.get('email')
>>>> data.comment = form.cleaned_data.get('comment')
>>>> data.rating_number = form.cleaned_data.get('rating_number')
>>>> data.permission = True
>>>> data.save()
>>>>
>>>> return redirect('hotel:seemore', id)
>>>>
>>>> context = {
>>>> 'seemore':seemore,
>>>> 'reviews':reviews,
>>>> 'form':form,
>>>> 'facilities':facilities
>>>> }
>>>> return render(request, 'hotel/seemore.html', context)
>>>>
>>>> and this is my html
>>>>
>>>> Popular Facilities
>>>> 
>>>> {% for facilitie in facilities %}
>>>> {{ facilitie
>>>> }}
>>>> {% endfor %}
>>>>
>>>> and this is what is showed up[image: 1.PNG]
>>>>
>>>>
>>>>
>>>> can anyone help 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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/db5fa916-7676-4ba8-bea0-05f4e0f8af8cn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/db5fa916-7676-4ba8-bea0-05f4e0f8af8cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> cell: 9110334114
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/ea022731-01bf-44ca-9b9a-dfb9bf4761ecn%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/ea022731-01bf-44ca-9b9a-dfb9bf4761ecn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316DHEKv954tZ2atwEOdPGK6WMquRqvGHnwW3ByK6PJY-A%40mail.gmail.com.


Re: i need to show multiselectfields

2021-05-18 Thread RANGA BHARATH JINKA
Hi,

Please share screenshots. So that we can understand where you want to show

On Tue, May 18, 2021 at 8:04 PM Gegi Esitashvili 
wrote:

>
> and i got it what i wanted but it is only facilitiess id and not its name,
> so i need to show up its name and not id.
> On Monday, 17 May 2021 at 08:21:25 UTC+4 bharath...@gmail.com wrote:
>
>> Hi,
>>
>> Use a select box with multiple attribute instead of ul and li. Loop
>> through options. Please go through this.
>> https://www.w3schools.com/tags/att_select_multiple.asp#:~:text=For%20windows%3A%20Hold%20down%20the,button%20to%20select%20multiple%20options
>>
>> All the best
>>
>> On Sun, May 16, 2021 at 8:50 PM Gegi Esitashvili 
>> wrote:
>>
>>> hello everyone, i am using django allauth, also i have installed
>>> multiselectfield and trying show my facilities on the site.
>>>
>>> this is my models.py
>>>
>>> class Hotel(models.Model):
>>> name = models.CharField(max_length=128)
>>> description = models.TextField()
>>> stars = models.IntegerField()
>>> price = models.IntegerField()
>>> picture = models.ImageField(upload_to='images',
>>> default="images/124180566_3771168516249284_3976912378791517206_o.jpg")
>>> HOTEL_TYPE = (
>>> ("Free WiFi", "free wiFi"),
>>> ("Free Parking", "Free Parking"),
>>> )
>>> popular_facilities = MultiSelectField(choices=HOTEL_TYPE)
>>>
>>>
>>> this is my views.py
>>>
>>> def see_more(request, id):
>>> seemore = Hotel.objects.get(id=id)
>>> reviews = HotelReview.objects.filter(review=id, permission=True)[:2]
>>> facilities = seemore.popular_facilities
>>> form = HotelReviewForm()
>>> if request.method == "GET":
>>> form = HotelReviewForm(request.GET or None) #request.FILES მედიას
>>> ატვირთვა თუ გვინდა
>>> if form.is_valid():
>>> data = form.save(commit=False)
>>> data.review = seemore
>>> data.name = form.cleaned_data.get("name")
>>> data.email = form.cleaned_data.get('email')
>>> data.comment = form.cleaned_data.get('comment')
>>> data.rating_number = form.cleaned_data.get('rating_number')
>>> data.permission = True
>>> data.save()
>>>
>>> return redirect('hotel:seemore', id)
>>>
>>> context = {
>>> 'seemore':seemore,
>>> 'reviews':reviews,
>>> 'form':form,
>>> 'facilities':facilities
>>> }
>>> return render(request, 'hotel/seemore.html', context)
>>>
>>> and this is my html
>>>
>>> Popular Facilities
>>> 
>>> {% for facilitie in facilities %}
>>> {{ facilitie
>>> }}
>>> {% endfor %}
>>>
>>> and this is what is showed up[image: 1.PNG]
>>>
>>>
>>>
>>> can anyone help 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/db5fa916-7676-4ba8-bea0-05f4e0f8af8cn%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ea022731-01bf-44ca-9b9a-dfb9bf4761ecn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314LDLg%2BMF3OFv%2B5%2BeU2kwibCY3VmP5-7HdGdeW%3DOP-%3DTQ%40mail.gmail.com.


Re: how to prevent Django do auto capitalize static text in templates

2021-05-18 Thread RANGA BHARATH JINKA
Hi,

Try this jinja templating lower filter

{{ 'helLo WOrlD'|lower }}


On Tue, May 18, 2021 at 6:26 PM David Tobrise  wrote:

> What happens if you try outputting the units from dynamically instead of
> hard-coding it?
>
> *Best Regards,*
> *David O. T.*
>
>
>
>
> On Tue, May 18, 2021 at 1:07 PM samuel nogueira bacelar <
> hu3mule...@gmail.com> wrote:
>
>> Hi guys!
>>
>> I have something that appears to be a simple problem but I didn’t find
>> anything useful anywhere. My problem is that my text in a template next to
>> a Django tag keeps auto capitalizing but I don’t want this to happen.
>>
>>
>>
>> In the image above you can see that m³/ano and m² is not capitalized at
>> all. But bellow my text keeps capitalizing.
>>
>>
>>
>>
>>
>> How can I prevent that to happen?
>>
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/55BF1950-88D1-47E5-9654-18039E00E75E%40hxcore.ol
>> 
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKeCWo_m7UqF-HLXr0Y%3DgzO9Puu%2BKCuA_mKF86-TPg3sv8QjXw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316_JKZ3hZFoZMm8zy01ZVm_wyeh%3DjtvYDNAYcpK7rMN3Q%40mail.gmail.com.


Re: Django multilinguial docs

2021-04-19 Thread RANGA BHARATH JINKA
Hi,

You can try using google translate.

https://www.geeksforgeeks.org/add-google-translate-button-webpage/

All the best

On Tue, Apr 20, 2021 at 1:26 AM Archana Singh 
wrote:

> Can anyone please guide how the django docs website has implemented the
> translating the content of the website to different languages.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8557448a-6306-4c79-bb46-484b44360440n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315tk98RKt_JH-kiKE2zszWMwxcjdPP6Bpp2D8gaxQANhg%40mail.gmail.com.


Re: How to embed logo on uploaded images

2021-04-19 Thread RANGA BHARATH JINKA
Hi,

Try this. This may be useful for you.
https://www.blog.pythonlibrary.org/2017/10/17/how-to-watermark-your-photos-with-python/

All the best

On Mon, Apr 19, 2021 at 12:09 PM Ram  wrote:

> Hi,
>
> Registered users in web application upload images to  sell market place
> items and we need to add our company logo to  pretect from  stealing
> against copy right. Is there any library availlable in Python to handle
> this feature.
>
> Best regards,
> ~Ram
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F0RkEWTeFP3HUfBM4-VKvuRk4TsJ6vneW_p7D-OZEhVWQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314jtyMYLb4OvGpm-Vh6FYndi23jrLsSOtKJ0qyDkQ1aRQ%40mail.gmail.com.


Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Hi,

Try providing a username and password. Check if it is working or not

On Thu, Apr 8, 2021 at 7:26 PM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:

> Hey Ranga,
>
> Below is the new output
>
> python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/
> 'Authorization: Token
> db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890'
>
> http: password for xxx.x...@.com@127.0.0.1:8000: *"this asked for the
> password, so I entered and hit return key. Below is the output"*
>
> HTTP/1.1 400 Bad Request
> Allow: POST, OPTIONS
> Content-Length: 79
> Content-Type: application/json
> Date: Thu, 08 Apr 2021 13:49:29 GMT
> Referrer-Policy: same-origin
> Server: WSGIServer/0.2 CPython/3.6.8
> Vary: Accept, Cookie
> X-Content-Type-Options: nosniff
> X-Frame-Options: DENY
>
> *{*
> *"password": [*
> *"This field is required."*
> *],*
> *"username": [*
> *"This field is required."*
> *]*
> *}*
>
> The above output is little surprising and interesting. I am using custom
> User model, where email is used in place of username and happens to be the
> unique constraint. SO I really do not understand the above output. If you
> need more data, do let me know.
>
> Regards,
> Amitesh
>
> On Thursday, 8 April, 2021, 06:44:54 pm IST, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>
> Hi, You have to specify the POST method in the command
>
> http -a USERNAME POST 
> https://api.github.com/repos/httpie/httpie/issues/83/comments body='HTTPie is 
> awesome! :heart:'
>
> All the best
>
>
> On Thu, Apr 8, 2021 at 6:18 PM 'Amitesh Sahay' via Django users <
> django-users@googlegroups.com> wrote:
>
> HI,
>
> I have created a simple login API through django rest framework. Below is
> the code snippet:
>
> from django.contrib.auth import login
> from rest_framework.generics import ListCreateAPIView
> from rest_framework import status
> from rest_framework.response import Response
> from rest_framework.authtoken.serializers import AuthTokenSerializer
> from rest_framework.permissions import IsAuthenticated, IsAdminUser, AllowAny
> from knox.views import LoginView as KLView
> from knox.models import AuthToken
> from .serializers import RegistrationSerializers
> from .models import NewEmployeeProfile
>
>
> class loginAPIView(KLView):
> permission_classes = [AllowAny]
>
> def post(self, request, format=None):
> serializer = AuthTokenSerializer(data=request.data)
> serializer.is_valid(raise_exception=True)
> user = serializer.validated_data['user']
> login(request, user)
> return super(loginAPIView, self).post(request, format=None)
>
>  *URLS.py*
> from django.urls import path
> from knox import views as knox_views
> from .views import UserRegisterView, loginAPIView
>
>
> urlpatterns = [
> path('register/', UserRegisterView.as_view(), name='register'),
> path('login/', loginAPIView.as_view(), name='login'),
> ]
>
>
> *Now when I do a POST request in postman with the email and the password.
> It throws error:*
>
> {
> "detail": "Invalid token."
> }
>
> *Note:: Since I am using knox to generate token. So, when I do a new
> registration I get token as well. See sample below:*
>
> {
> "status": "OK",
> "message": {
> "email": "test.t...@test.com",
> "first_name": "est",
> "last_name": "Sah",
> "employee_code": "6124368",
> "contact": "7500078619",
> "dob": null
> },
> "token":
> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
>
> *I tried both, password and token to authenticate, but I am getting the
> same error. In the cmd prompt where the dev server is running, I am seeing
> below message*
>
> 
> [08/Apr/2021 15:26:33] "POST /apii/login/ HTTP/1.1" 403 27
> Forbidden: /apii/login/
> 
> *In the postman raw body, I am inserting below json data*
>
> {
> "email": "test.t...@test.com",
> "password":
> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
> }
>
>
> *Below is the settings.py content for DRF*
>
> REST_FRAMEWORK = {
> 'D

Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Refer the docs

https://httpie.io/

On Thu, Apr 8, 2021 at 6:44 PM RANGA BHARATH JINKA 
wrote:

> Hi, You have to specify the POST method in the command
>
> http -a USERNAME POST 
> https://api.github.com/repos/httpie/httpie/issues/83/comments body='HTTPie is 
> awesome! :heart:'
>
> All the best
>
>
> On Thu, Apr 8, 2021 at 6:18 PM 'Amitesh Sahay' via Django users <
> django-users@googlegroups.com> wrote:
>
>> HI,
>>
>> I have created a simple login API through django rest framework. Below is
>> the code snippet:
>>
>> from django.contrib.auth import login
>> from rest_framework.generics import ListCreateAPIView
>> from rest_framework import status
>> from rest_framework.response import Response
>> from rest_framework.authtoken.serializers import AuthTokenSerializer
>> from rest_framework.permissions import IsAuthenticated, IsAdminUser, AllowAny
>> from knox.views import LoginView as KLView
>> from knox.models import AuthToken
>> from .serializers import RegistrationSerializers
>> from .models import NewEmployeeProfile
>>
>>
>> class loginAPIView(KLView):
>> permission_classes = [AllowAny]
>>
>> def post(self, request, format=None):
>> serializer = AuthTokenSerializer(data=request.data)
>> serializer.is_valid(raise_exception=True)
>> user = serializer.validated_data['user']
>> login(request, user)
>> return super(loginAPIView, self).post(request, format=None)
>>
>>  *URLS.py*
>> from django.urls import path
>> from knox import views as knox_views
>> from .views import UserRegisterView, loginAPIView
>>
>>
>> urlpatterns = [
>> path('register/', UserRegisterView.as_view(), name='register'),
>> path('login/', loginAPIView.as_view(), name='login'),
>> ]
>>
>>
>> *Now when I do a POST request in postman with the email and the password. It 
>> throws error:*
>>
>> {
>> "detail": "Invalid token."
>> }
>>
>> *Note:: Since I am using knox to generate token. So, when I do a new 
>> registration I get token as well. See sample below:*
>>
>> {
>> "status": "OK",
>> "message": {
>> "email": "test.t...@test.com",
>> "first_name": "est",
>> "last_name": "Sah",
>> "employee_code": "6124368",
>> "contact": "7500078619",
>> "dob": null
>> },
>> "token": 
>> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
>>
>> *I tried both, password and token to authenticate, but I am getting the same 
>> error. In the cmd prompt where the dev server is running, I am seeing below 
>> message*
>>
>> 
>> [08/Apr/2021 15:26:33] "POST /apii/login/ HTTP/1.1" 403 27
>> Forbidden: /apii/login/
>> 
>> *In the postman raw body, I am inserting below json data*
>>
>> {
>> "email": "test.t...@test.com",
>> "password": 
>> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
>> }
>>
>>
>> *Below is the settings.py content for DRF*
>>
>> REST_FRAMEWORK = {
>> 'DEFAULT_AUTHENTICATION_CLASSES': [
>> #'rest_framework.authentication.TokenAuthentication',
>> 'rest_framework.authentication.SessionAuthentication',
>> 'knox.auth.TokenAuthentication',
>> ],
>> }
>>
>>
>>
>> *httpie output*
>>
>> python.exe -m httpie 127.0.0.1:8000/apii/login/ 'Authorization: Token 
>> db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890'
>>
>> HTTP/1.1 405 Method Not Allowed
>> Allow: POST, OPTIONS
>> Content-Length: 40
>> Content-Type: application/json
>> Date: Thu, 08 Apr 2021 11:52:31 GMT
>> Referrer-Policy: same-origin
>> Server: WSGIServer/0.2 CPython/3.6.8
>> Vary: Accept, Cookie
>> X-Content-Type-Options: nosniff
>> X-Frame-Options: DENY
>>
>> {
>> "detail": "Method \"GET\" not allowed."
>> }
>>
>>
>> urlpatterns = [
>> path('register/', UserRegisterView.as_view(), name='register'),
>> path(

Re: reg: DRF login API

2021-04-08 Thread RANGA BHARATH JINKA
Hi, You have to specify the POST method in the command

http -a USERNAME POST
https://api.github.com/repos/httpie/httpie/issues/83/comments
body='HTTPie is awesome! :heart:'

All the best


On Thu, Apr 8, 2021 at 6:18 PM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:

> HI,
>
> I have created a simple login API through django rest framework. Below is
> the code snippet:
>
> from django.contrib.auth import login
> from rest_framework.generics import ListCreateAPIView
> from rest_framework import status
> from rest_framework.response import Response
> from rest_framework.authtoken.serializers import AuthTokenSerializer
> from rest_framework.permissions import IsAuthenticated, IsAdminUser, AllowAny
> from knox.views import LoginView as KLView
> from knox.models import AuthToken
> from .serializers import RegistrationSerializers
> from .models import NewEmployeeProfile
>
>
> class loginAPIView(KLView):
> permission_classes = [AllowAny]
>
> def post(self, request, format=None):
> serializer = AuthTokenSerializer(data=request.data)
> serializer.is_valid(raise_exception=True)
> user = serializer.validated_data['user']
> login(request, user)
> return super(loginAPIView, self).post(request, format=None)
>
>  *URLS.py*
> from django.urls import path
> from knox import views as knox_views
> from .views import UserRegisterView, loginAPIView
>
>
> urlpatterns = [
> path('register/', UserRegisterView.as_view(), name='register'),
> path('login/', loginAPIView.as_view(), name='login'),
> ]
>
>
> *Now when I do a POST request in postman with the email and the password. It 
> throws error:*
>
> {
> "detail": "Invalid token."
> }
>
> *Note:: Since I am using knox to generate token. So, when I do a new 
> registration I get token as well. See sample below:*
>
> {
> "status": "OK",
> "message": {
> "email": "test.t...@test.com",
> "first_name": "est",
> "last_name": "Sah",
> "employee_code": "6124368",
> "contact": "7500078619",
> "dob": null
> },
> "token": 
> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
>
> *I tried both, password and token to authenticate, but I am getting the same 
> error. In the cmd prompt where the dev server is running, I am seeing below 
> message*
>
> 
> [08/Apr/2021 15:26:33] "POST /apii/login/ HTTP/1.1" 403 27
> Forbidden: /apii/login/
> 
> *In the postman raw body, I am inserting below json data*
>
> {
> "email": "test.t...@test.com",
> "password": 
> "db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890"
> }
>
>
> *Below is the settings.py content for DRF*
>
> REST_FRAMEWORK = {
> 'DEFAULT_AUTHENTICATION_CLASSES': [
> #'rest_framework.authentication.TokenAuthentication',
> 'rest_framework.authentication.SessionAuthentication',
> 'knox.auth.TokenAuthentication',
> ],
> }
>
>
>
> *httpie output*
>
> python.exe -m httpie 127.0.0.1:8000/apii/login/ 'Authorization: Token 
> db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890'
>
> HTTP/1.1 405 Method Not Allowed
> Allow: POST, OPTIONS
> Content-Length: 40
> Content-Type: application/json
> Date: Thu, 08 Apr 2021 11:52:31 GMT
> Referrer-Policy: same-origin
> Server: WSGIServer/0.2 CPython/3.6.8
> Vary: Accept, Cookie
> X-Content-Type-Options: nosniff
> X-Frame-Options: DENY
>
> {
> "detail": "Method \"GET\" not allowed."
> }
>
>
> urlpatterns = [
> path('register/', UserRegisterView.as_view(), name='register'),
> path('login/', loginAPIView.as_view(), name='login'),
> ]
>
> *Not sure if I am doing it the right way, please suggest. 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2028966691.640551.1617886057684%40mail.yahoo.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315jezywPWVL585AmjGTX%3DKshQiQzEOBYE%3DbSBAVUpXciA%40mail.gmail.com.


Re: error

2021-04-05 Thread RANGA BHARATH JINKA
Hi,
I think you have to generate an app password from Gmail and use it instead
of your password.
Refer to this link. https://support.google.com/mail/answer/185833?hl=en
All the best

On Mon, Apr 5, 2021 at 7:28 PM Kissanth D 
wrote:

> My project description is using django to login via imap server and see
> the unread email in template method but Imeet the error for authentication
> faild but i enabled the gmail less secure app permission and gmail setting
> imap enable but error again
> [image: Capture.PNG]
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/21a06439-86d7-47d9-9a57-437703f4a654n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317onw_dYMxvFybtgyfkkMvvaQ_5pKCkQyePEX-VcXGnkA%40mail.gmail.com.


Re: Django dependent select without Ajax

2021-03-30 Thread RANGA BHARATH JINKA
Hi,

Try this https://www.youtube.com/watch?v=LmYDXgYK1so&ab_channel=CodeBand

On Wed, Mar 31, 2021 at 5:41 AM Ryan Nowakowski  wrote:

> About how many elements do you anticipate will be in the drop-down?
>
> On March 30, 2021 8:59:19 AM CDT, Sachin Kumar 
> wrote:
>>
>> Hi Experts,
>>
>> Does anyone knows Drop down list in Django without Ajax which is faster
>> enough to fetch data from Big DataBase.
>>
>> Please guide me on this.
>>
>> Regards
>> Sachin
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/84F1F92D-FEC1-42C9-BEE7-BB4FEE086506%40fattuba.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317cm7GjTi53CA0pQh9ximtmhVYAEc-72jPK%2BOWfdfosOw%40mail.gmail.com.


Re: Models not found error

2021-03-28 Thread RANGA BHARATH JINKA
Hi,

   In BloodBank\urls.py file, Please check the include. It should contain
.urls not .url at the end. So it is not able to find the urls file.

All the best

On Mon, Mar 29, 2021 at 2:06 AM Kasper Laudrup 
wrote:

> On 28/03/2021 18.57, Ritika Bokde wrote:
> > Can somebody help me to resolve this error
> >
> > ModuleNotFoundError: No module named 'BloodBankDetails'
> >
>
> It's hard to tell for sure since you're posting pictures of code instead
> of posting the actual code, but it seems like you haven't defined a
> class/module called BloodBankDetails.
>
> That could very well be the reason why the Python interpreter kindly
> throws a ModuleNotFoundError telling you that it couldn't find a module
> called BloodBankDetails.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c6570244-adee-fd9b-61f2-fd35b44d87c8%40stacktrace.dk
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314ntOD_EB6rhga4BUDU8G%3Dc3c8%3D8NRZ6Emv3v%3DRBcPd%3Dw%40mail.gmail.com.


Re: How to use .vue files in Django project

2021-02-26 Thread RANGA BHARATH JINKA
Hi,

Please follow this guide. This may be useful for you to integrate Vue
js in Django.


https://dafoster.net/articles/2021/02/16/building-web-apps-with-vue-and-django-the-ultimate-guide/?utm_campaign=Django%2BNewsletter&utm_medium=email&utm_source=Django_Newsletter_64

 All the best


On Fri, Feb 26, 2021 at 5:10 PM Luciano Martins  wrote:

> Good morning, in our project we created a folder called FRONTEND and
> inside it we put all Quasar / VueJs code and used the DRF (Django Rest
> Framework) to consume Django data.
>
> Em quinta-feira, 25 de fevereiro de 2021 às 19:35:42 UTC-3, Ryan
> Nowakowski escreveu:
>
>> On Thu, Feb 25, 2021 at 04:24:25PM +0530, Salima Begum wrote:
>> > I have developed a project by using django and for front end
>> functionality
>> > I am using vuejs so, how to use .vue files in django project in my
>> project
>> > .vue files are not accepting.
>>
>> Can you provide more details like the error messages you're seeing?
>>
>> You might need to use the Vue CLI[1] to transform the .vue files into .js
>> that you can then serve using Django's staticfiles. There are several[3]
>> tutorials[4] online.
>>
>> [1]
>> https://vuejs.org/v2/guide/single-file-components.html#For-Users-New-to-Module-Build-Systems-in-JavaScript
>> [2] https://docs.djangoproject.com/en/3.1/howto/static-files/
>> [3]
>> https://www.valentinog.com/blog/vue-django/#serving-the-single-page-with-django-in-production
>> [4] https://www.google.com/search?q=django+vuejs
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/04d66d78-f98a-42ed-975c-c41b8b48abf8n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316TFSTUM6XFwK-fdMEqvwKWFDk%3DWoXfkEEV3_Zp7U68bw%40mail.gmail.com.


Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
Hi,

Please follow these docs
https://docs.djangoproject.com/en/3.1/ref/urls/#include

On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny 
wrote:

> if self.pattern.name is not None and ":" in self.pattern.name:
> TypeError: argument of type 'type' is not iterable
>
> that's the error
>
> On Thu, 18 Feb 2021 at 09:39, Peter Kirieny 
> wrote:
>
>> thanks sir
>> that's done though the error still persists
>>
>> On Thu, 18 Feb 2021 at 09:32, RANGA BHARATH JINKA <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please check namespace='core' in project urls.py. For shops app also
>>> namespace is same. Please change this namesapce to Shops.
>>>
>>> All the best
>>>
>>> On Thu, Feb 18, 2021 at 11:56 AM Peter Kirieny 
>>> wrote:
>>>
>>>> in the projects urls.py
>>>>
>>>> from django.conf import settings
>>>> from django.conf.urls.static import static
>>>> from django.contrib import admin
>>>> from django.urls import path, include
>>>>
>>>> urlpatterns = [
>>>> path('admin/', admin.site.urls),
>>>> path('accounts/', include('allauth.urls')),
>>>> path('', include('core.urls', namespace='core')),
>>>> path('Shops/', include('Shops.urls', namespace='core')),
>>>>
>>>> ]
>>>>
>>>> if settings.DEBUG:
>>>> import debug_toolbar
>>>> urlpatterns += [path('__debug__/', include(debug_toolbar.urls))]
>>>> urlpatterns += static(settings.MEDIA_URL,
>>>>   document_root=settings.MEDIA_ROOT)
>>>> urlpatterns += static(settings.STATIC_URL,
>>>>   document_root=settings.STATIC_ROOT)
>>>>
>>>>
>>>> in the app's urls.py
>>>>
>>>> from django.urls import path
>>>> from .views import ShopsView
>>>>
>>>> app_name = 'Shops'
>>>>
>>>> urlpatterns = [
>>>> path('Shops/', ShopsView.as_view(), name=ShopsView)
>>>>
>>>>
>>>> On Wed, 17 Feb 2021 at 17:52, Nicolas nasr  wrote:
>>>>
>>>>> Can  you please show your urls.py file
>>>>>
>>>>> On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2
>>>>> kirien...@gmail.com wrote:
>>>>>
>>>>>> someone to help me to set up urls of two different apps in django
>>>>>> project please, i keep on getting errors
>>>>>> am new
>>>>>>
>>>>> --
>>>>> 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 view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/635506c8-35bc-4c76-a937-c992dd1312dbn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/635506c8-35bc-4c76-a937-c992dd1312dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> cell: 9110334114
>>>
>>> --
>>> 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...@

Re: setting up urls of many apps

2021-02-17 Thread RANGA BHARATH JINKA
Hi,

Please check namespace='core' in project urls.py. For shops app also
namespace is same. Please change this namesapce to Shops.

All the best

On Thu, Feb 18, 2021 at 11:56 AM Peter Kirieny 
wrote:

> in the projects urls.py
>
> from django.conf import settings
> from django.conf.urls.static import static
> from django.contrib import admin
> from django.urls import path, include
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('accounts/', include('allauth.urls')),
> path('', include('core.urls', namespace='core')),
> path('Shops/', include('Shops.urls', namespace='core')),
>
> ]
>
> if settings.DEBUG:
> import debug_toolbar
> urlpatterns += [path('__debug__/', include(debug_toolbar.urls))]
> urlpatterns += static(settings.MEDIA_URL,
>   document_root=settings.MEDIA_ROOT)
> urlpatterns += static(settings.STATIC_URL,
>   document_root=settings.STATIC_ROOT)
>
>
> in the app's urls.py
>
> from django.urls import path
> from .views import ShopsView
>
> app_name = 'Shops'
>
> urlpatterns = [
> path('Shops/', ShopsView.as_view(), name=ShopsView)
>
>
> On Wed, 17 Feb 2021 at 17:52, Nicolas nasr  wrote:
>
>> Can  you please show your urls.py file
>>
>> On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2 kirien...@gmail.com
>> wrote:
>>
>>> someone to help me to set up urls of two different apps in django
>>> project please, i keep on getting errors
>>> am new
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/635506c8-35bc-4c76-a937-c992dd1312dbn%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316xfF43VCU%2B6NczvpHPxSKeRsg7XFQa3GpAfHKaf2JENg%40mail.gmail.com.


Re: how create new django project with windows 10 and Python 3.9.1

2021-01-27 Thread RANGA BHARATH JINKA
Hi,

Don't use py in front. Try with django-admin startproject .
Also create a virtual environment and install modules inside that

All the best

On Wed, Jan 27, 2021 at 7:33 PM Fabio Fidone 
wrote:

> [image: image.png]
>
> please, Can Someone help me to create a new project with python 3.9.1 and
> windows 10?
> every time, receive same output.
> thanks a lot
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPOyAVVC8ej_%3DSU2zmeMzjAxTDfitocCdwiD_bFX4eF49xcYuw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314OBmD0U6AXuJp4_8TvQMeB6Z13%3DshfC-ANE2_iMSVUDw%40mail.gmail.com.


Re: attempt to write a readonly database

2020-12-30 Thread RANGA BHARATH JINKA
hi,

Try running as the root user using sudo permissions.

All the best

On Wed, Dec 30, 2020 at 8:18 PM Steven Mapes  wrote:

> This normally means that the user you are running your project as does not
> have access to the SQLLite database file. I can see that you are running on
> windows so fine the database in the file system and check and change the
> owner as well as ensuring that the owner/group has read/write access to the
> file.
>
> On Thursday, 24 December 2020 at 07:23:24 UTC parul@gmail.com wrote:
>
>> Can anyone help with this?
>>
>>
>> OperationalError at /users/
>> Request Method: POST
>> Request URL: http://localhost:8000/users/
>> Django Version: 3.0.3
>> Exception Type: OperationalError
>> Exception Value:
>>
>> attempt to write a readonly database
>>
>> Exception Location: 
>> C:\Users\parul\anaconda\envs\MyDjangoEnv\lib\site-packages\django\db\backends\sqlite3\base.py
>> in execute, line 396
>> Python Executable: C:\Users\parul\anaconda\envs\MyDjangoEnv\python.exe
>> Python Version: 3.8.5
>> Python Path:
>>
>> ['C:\\Users\\parul\\Desktop\\Djangoforms\\ProTwo',
>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\python38.zip',
>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\DLLs',
>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib',
>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv',
>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib\\site-packages']
>>
>> Server time: Wed, 23 Dec 2020 16:14:46 +
>>
>>
>>
>> ->>> Also, i checked the properties in db.sqlite3, all the
>> permissions are checked...write permission also
>> can anyone help
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/e5d80366-037b-4ebc-a4ac-9bc1e32bf5ben%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3151VcaY1uoYhapa5e8cRdNwtzm8OND3Gf9k7qxtwOP_6Q%40mail.gmail.com.


Re: Error After Heroku Deployment

2020-12-30 Thread RANGA BHARATH JINKA
Hi,

Run
heroku run python manage.py makemigrations
 heroku run python manage.py migrate

All the best

On Wed, Dec 30, 2020 at 8:18 PM Sumit Pande <2018bit...@sggs.ac.in> wrote:

> ProgrammingError at /accounts/login/
> relation "django_site" does not exist
> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>  ^
> Request Method:  GET
> Request URL:  https://carbonapp7.herokuapp.com/accounts/login/
> Django Version:  3.1.1
> Exception Type:  ProgrammingError
> Exception Value:
> relation "django_site" does not exist
> LINE 1: ..."django_site"."domain", "django_site"."name" FROM "django_si...
>  ^
>  I have used *allauth*.
>
> *Please help me with this error.*
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BPixk%2Bhk3-X3J4SsM%3Dz9az_KntBinoJNOPDWp8mdMf5Abr%2BGg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315Q5g2XUNJHm4Ui2EbQDV4F9bAKGzR74--7wmo1B16jiA%40mail.gmail.com.


Re: Is it possible to use REST API on Django template ?

2020-11-28 Thread RANGA BHARATH JINKA
Hi
Use JavaScript or jQuery to call APIs in frontend of Django template.
You can use fetch API using vanilla JavaScript.
You can perform all CRUD operations.
All the best 👍

On Sun, 29 Nov 2020, 11:57 am Aman Modi,  wrote:

> I know how to create API but i just want to know how to use in Django
> template.
>
> On Wednesday, November 25, 2020 at 8:07:47 PM UTC+5:30 omkar...@gmail.com
> wrote:
>
>> Creating REST API in Django is similar to any app on Django. All you need
>> to do is, install the djangorestframework library, and serialize your
>> models.
>>
>> YT video 👇
>> https://youtu.be/TmsD8QExZ84
>> On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:
>>
>>>
>>>
>>> Hello Django lovers.
>>>
>>> I want to use REST API  on the Django template but I have no idea how
>>> can I do that.
>>> I want to use the same API on the android app and the Django template.
>>>
>>> Any suggestion.
>>>
>>
>>> Thanks and regard
>>> Aman Modi
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9219ddfb-a07d-40b4-9e64-8324520043f7n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315JpwQ%3DJsts0QtXd6mZy%3Dxbduv4Auzk50tk8GKO%2BXMWZw%40mail.gmail.com.


Re: Debbuging

2020-11-15 Thread RANGA BHARATH JINKA
Hi,

Run
python manage.py makemigrations

python manage.py migrate

It will create tables in database using your models

All the best

On Mon, Nov 16, 2020 at 8:58 AM Sidy Mactar  wrote:

> it's done
>
> Le lundi 16 novembre 2020 à 03:22:48 UTC, zica...@gmail.com a écrit :
>
>> please post your repository
>>
>> Em domingo, 15 de novembro de 2020 às 19:42:30 UTC-3, sidymo...@gmail.com
>> escreveu:
>>
>>> OperationalError at /admin/products/products/add/no such table:
>>> main.auth_user__old
>>> Can u help me plz?
>>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/de49ec22-08fe-4731-80c8-9a8c2d112a1bn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316jLQg_dKOwn3RH7QdFrtW889TrnuTAnEuiBBpSyL%3DhYA%40mail.gmail.com.


Re: QUIZ APP

2020-11-05 Thread RANGA BHARATH JINKA
Hi,
You can refer this. All the best 👍
https://youtu.be/bHnT1apz8u8

On Thu, 5 Nov 2020, 7:36 pm jassija...@gmail.com, 
wrote:

> hello, I'm Jaspreet singh
> I'm learning Django for my College Project
>
> Can anyone help me with it im working on QUIZ APP
> IT WOULD BE GREAT IF SOMEONE HELPS OR MENTORS ME ON THIS
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8bdd6c82-5de2-4374-b681-b51207660481n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314ntiphP%2BY1L%3D7k%2BkMrW%3Da19UAXXe5yB%3DinZFzKuA%2B6eQ%40mail.gmail.com.


Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi,

Refer to this too. All the best 👍

https://youtu.be/J3MuH6xaDjI

On Tue, Oct 27, 2020 at 7:29 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Refer this forGenerating PDF from HTML with image
>
> https://youtu.be/txlKYeLEflY
>
> On Tue, Oct 27, 2020 at 7:27 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Refer to this.
>>
>> https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy
>>
>> On Tue, Oct 27, 2020 at 7:24 PM Senthil Kumar 
>> wrote:
>>
>>> Thanks a lot. We will check it out & get back to you
>>>
>>> On Tue, Oct 27, 2020 at 6:43 PM Derek  wrote:
>>>
>>>> You can try : https://pypi.org/project/xhtml2pdf/
>>>>
>>>> On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com
>>>> wrote:
>>>>
>>>>> Hi Everyone,
>>>>>
>>>>> Hope you are doing well
>>>>>
>>>>> We need help to generate the PDF from the HTML tag with images. Let us
>>>>> know if any package available to do this requirement.
>>>>>
>>>>> Thanks 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/02111ef7-0e42-40ff-930f-282599c37594n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/02111ef7-0e42-40ff-930f-282599c37594n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3142VUA%3DoxMHaYZZemuzsRsfF4H-Pc%3DwFC2Q%3Dw%2B2MfEtCg%40mail.gmail.com.


Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi,

Refer this forGenerating PDF from HTML with image

https://youtu.be/txlKYeLEflY

On Tue, Oct 27, 2020 at 7:27 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Refer to this.
>
> https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy
>
> On Tue, Oct 27, 2020 at 7:24 PM Senthil Kumar 
> wrote:
>
>> Thanks a lot. We will check it out & get back to you
>>
>> On Tue, Oct 27, 2020 at 6:43 PM Derek  wrote:
>>
>>> You can try : https://pypi.org/project/xhtml2pdf/
>>>
>>> On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com
>>> wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> Hope you are doing well
>>>>
>>>> We need help to generate the PDF from the HTML tag with images. Let us
>>>> know if any package available to do this requirement.
>>>>
>>>> Thanks 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/02111ef7-0e42-40ff-930f-282599c37594n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/02111ef7-0e42-40ff-930f-282599c37594n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314udjnRYkJf0FwrRsh1%3DqCBR6FJLnnjkkneMhKBxCbpbA%40mail.gmail.com.


Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi,

Refer to this.

https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy

On Tue, Oct 27, 2020 at 7:24 PM Senthil Kumar 
wrote:

> Thanks a lot. We will check it out & get back to you
>
> On Tue, Oct 27, 2020 at 6:43 PM Derek  wrote:
>
>> You can try : https://pypi.org/project/xhtml2pdf/
>>
>> On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com wrote:
>>
>>> Hi Everyone,
>>>
>>> Hope you are doing well
>>>
>>> We need help to generate the PDF from the HTML tag with images. Let us
>>> know if any package available to do this requirement.
>>>
>>> Thanks 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/02111ef7-0e42-40ff-930f-282599c37594n%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3148xXjuvcr1bEyP9NhaJC3YHwjPB4f1H21Pyejgzz7aDQ%40mail.gmail.com.


Re: django template forloop

2020-10-14 Thread RANGA BHARATH JINKA
Hi,

 You have to end for loop for second for loop

On Wed, Oct 14, 2020 at 4:23 PM luca72.b...@gmail.com <
luca72.bertolo...@gmail.com> wrote:

> Hello
> I have this:
> {% for x in lista_form %}
> {% if forloop.counter < 100 %}
> {% for fieldi in formone %}
> {{ fieldi.label }} {{ fieldi }}
> {% endfor %}
> Immagine 
>  {% endif %}
> {% if forloop.counter|divisibleby:"2" %}
> 
> {% endif %}
>
> The second forloop is not executed, where i have to apply it?
>
> Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314L9XN-xiXXzDtx2sr9TZTysY9oyxLjF2De7zCfQ8MAmA%40mail.gmail.com.


Re: E Commerce Website Assistance

2020-10-09 Thread RANGA BHARATH JINKA
Hi,

Check this.

https://www.youtube.com/playlist?list=PL-51WBLyFTg0omnamUjL1TCVov7yDTRng

All the best

On Sat, Oct 10, 2020 at 11:29 AM Farai M  wrote:

> Hello all
>
> I am doing an ecommerce  app can any one who have done a commercial
> project assist with maybe documentation and architecture and packages l can
> use.
>
> Thanks in advance
>
> DM me on +263779046006
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMeub5PeaY_xeLntMo0K2%3DMQwDFsydb5wB685u%3D6te3r-Rqqwg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314ewH%2BLA4LeibUzKEkmCTPpUZLshZ5y%2Bxie2kqxxze9vQ%40mail.gmail.com.


Re: Ajax, jQuery and Django

2020-10-05 Thread RANGA BHARATH JINKA
Hi,

Check this. This may be useful for you.

All the best

https://www.youtube.com/results?search_query=django+dependent+drop+down+list+from+database

On Mon, Oct 5, 2020 at 1:56 PM Kunal Solanke 
wrote:

> Rather than sending ajax every time handle it on frontend in javascript
>
> On Mon, Oct 5, 2020, 13:35 Salima Begum 
> wrote:
>
>> Hi all,
>> I have database of zip code for example,
>> INSERT INTO pages_zip_code (id, zip, city, st) VALUES
>> (1, '00501', 'Holtsville', 'NY'),
>> (2, '00544', 'Holtsville', 'NY'),
>> (3, '00601', 'Adjuntas', 'PR'),
>> (4, '00602', 'Aguada', 'PR'),
>> (5, '00603', 'Aguadilla', 'PR'),
>> (6, '00604', 'Aguadilla', 'PR'),
>> (7, '00605', 'Aguadilla', 'PR'),
>> (8, '00606', 'Maricao', 'PR'),
>> (9, '00610', 'Anasco', 'PR'),
>> (10, '00611', 'Angeles', 'PR'),
>> (11, '00612', 'Arecibo', 'PR'),
>> (12, '00613', 'Arecibo', 'PR'),
>> (13, '00614', 'Arecibo', 'PR'),
>> (14, '00616', 'Bajadero', 'PR'),
>> (15, '00617', 'Barceloneta', 'PR'),
>> (16, '00622', 'Boqueron', 'PR'),
>> (17, '00623', 'Cabo Rojo', 'PR'),
>> (18, '00624', 'Penuelas', 'PR'),
>> (19, '00627', 'Camuy', 'PR');
>> If user enters zipcode, Then state and city column should be auto fill by
>> using database of zip code in django and jQuery .
>> Please let me know how to do this.
>>
>> Thank You,
>> ~Salima
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMSz6b%3DceNs7rk3zY4aNAS2MpUtAnamPi%2BzsfBx5maK9NZPo%2Bw%40mail.gmail.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAOecAny6XS%2B7wrvTDbEDdVOwC76Umv02nQ4AxnDeEwXUAArMUA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316JmU0i_CkUMkUE93VwAN-cyTGSMAPBMxDg%2BJ6OcLSG-Q%40mail.gmail.com.


Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
https://github.com/sherzberg/django-emailer

On Thu, Oct 1, 2020 at 1:18 PM RANGA BHARATH JINKA 
wrote:

> Hi,
>
> Try these. This may be useful
>
> https://pypi.org/project/django-massmailer/
>
> https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail
>
>
> https://stackoverflow.com/questions/8659131/how-does-one-send-an-email-to-10-000-users-in-django
>
> All the best
>
> On Thu, Oct 1, 2020 at 1:11 PM degnon...@gmail.com <
> degnonfran...@gmail.com> wrote:
>
>>
>> Hi, hope every one is doing fine, I have an issue that I have not been
>> able to resolve for several months now. I have two apps where  I need to
>> send a bunch of emails on a monthly basis, The first app is host on heroku
>> and the second on DigitalOcean with dokku, for async task I'm using
>> Django_Q and Redis is used as broker, when I need to send 1 or 2 emails, or
>> even something like 100, there is no issue, the emails are sent and the
>> task is marked as successful in the Django_q admin section, but when I need
>> to send just 200 or 500 (send 500 is supposed to be nothing), the task is
>> never accomplished, I don't receive any error message sand even if I wait
>> for days the task is never marked completed and all emails are not sent, at
>> first I think it was a resources issue, in the case of my first app I'm
>> using the heroku hobby-dev plan, maybe this is two low for the work I need
>> to get done, but for my second app I'm using the 15$ plan on DigitalOcean,
>> for just 500 emails i think that's enough, Maybe I should use celery
>> instead of Django_q, I don't know, I need to know what are the minimum
>> requirements to send a lot(and by a lot I mean something like 50k for
>> example) emails with a Django app, and how to do this efficiently. An
>> article, a package name, anything would be helpful. I'm using amazon SES
>> for both apps. Thanks
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317kbs6SBhs6cEC6voPS-UAvL-xDkEfsDA%3D0M16P4JYEAQ%40mail.gmail.com.


Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
Hi,

Try these. This may be useful

https://pypi.org/project/django-massmailer/

https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail


https://stackoverflow.com/questions/8659131/how-does-one-send-an-email-to-10-000-users-in-django

All the best

On Thu, Oct 1, 2020 at 1:11 PM degnon...@gmail.com 
wrote:

>
> Hi, hope every one is doing fine, I have an issue that I have not been
> able to resolve for several months now. I have two apps where  I need to
> send a bunch of emails on a monthly basis, The first app is host on heroku
> and the second on DigitalOcean with dokku, for async task I'm using
> Django_Q and Redis is used as broker, when I need to send 1 or 2 emails, or
> even something like 100, there is no issue, the emails are sent and the
> task is marked as successful in the Django_q admin section, but when I need
> to send just 200 or 500 (send 500 is supposed to be nothing), the task is
> never accomplished, I don't receive any error message sand even if I wait
> for days the task is never marked completed and all emails are not sent, at
> first I think it was a resources issue, in the case of my first app I'm
> using the heroku hobby-dev plan, maybe this is two low for the work I need
> to get done, but for my second app I'm using the 15$ plan on DigitalOcean,
> for just 500 emails i think that's enough, Maybe I should use celery
> instead of Django_q, I don't know, I need to know what are the minimum
> requirements to send a lot(and by a lot I mean something like 50k for
> example) emails with a Django app, and how to do this efficiently. An
> article, a package name, anything would be helpful. I'm using amazon SES
> for both apps. Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315pRcmYAHS7K8ZmTe8K_OxWBr8Uv9dwz%3DYA3yeANGb-Dg%40mail.gmail.com.


Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
I think you can find out city name using IP address. Use JavaScript or
there are some python modules also.
All the best 👍

On Thu, 1 Oct 2020, 11:34 am Ram,  wrote:

> Thank you very much, Ranga for the pointer. We actually need to capture
> the location of the IP address, like "Where" attribute in this  example. So
> where attribute should also include nearest city name in that country.
>
> [image: image.png]
>
>
> Best Regards,
> ~Ram
>
> On Wed, Sep 30, 2020 at 10:36 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>Use javascript location api
>>https://www.w3schools.com/html/html5_geolocation.asp
>>
>>All the best
>>
>> On Thu, Oct 1, 2020 at 9:59 AM Ram  wrote:
>>
>>> Hi All,
>>>
>>> I'm looking for a way to capture location of logged in users in our Web
>>> App and save that location into our database.
>>>
>>> Basically if we could capture this location, we would like to use it
>>> around members account features.
>>>
>>> Please let me know if you have suitable pointers for this.
>>>
>>> Thanks in advance,
>>> ~Ram
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316QhbiWzXA3NvOt6981ohFrcdNJiBu%2BCyFL4rm4zzkRig%40mail.gmail.com.


Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
Hi,

   Use javascript location api
   https://www.w3schools.com/html/html5_geolocation.asp

   All the best

On Thu, Oct 1, 2020 at 9:59 AM Ram  wrote:

> Hi All,
>
> I'm looking for a way to capture location of logged in users in our Web
> App and save that location into our database.
>
> Basically if we could capture this location, we would like to use it
> around members account features.
>
> Please let me know if you have suitable pointers for this.
>
> Thanks in advance,
> ~Ram
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com.


Re: Send csrf token and retrieve with javascript?

2020-09-30 Thread RANGA BHARATH JINKA
Hi,

   Check the docs link. This will be useful. All the best
  https://docs.djangoproject.com/en/3.1/ref/csrf/

On Thu, Oct 1, 2020 at 5:10 AM Alexandro Gonçalves Dos Santos <
alexandrogon...@gmail.com> wrote:

> I am building a django api to be used in a front end of another server,
> how do I send the csrf token and how do I retrieve it in the front end with
> javascript?
>
> Currently my posts.py file looks like this:
> ```python
> from django.http import HttpResponse
> from django.views.decorators.csrf import ensure_csrf_cookie
>
> @ensure_csrf_cookie
> def index(request):
> return HttpResponse('ok')
> ```
>
> And the header that the javascript receives when making the request is:
> ```
> content-length: 2
> content-type: text/html; charset=utf-8
> date: Wed, 30 Sep 2020 22:37:40 GMT
> server: WSGIServer/0.2 CPython/3.7.3
> vary: Cookie
> x-content-type-options: nosniff
> x-frame-options: DENY
> ```
>
> Thank you so much for your help.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fd412572-d35c-460e-934f-6fb684d1c0c9n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316v0c_cZ7E%3DKEWDieJ-f1N2bsUoB57r%3DuafAFWKdhodPg%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-30 Thread RANGA BHARATH JINKA
https://youtu.be/inQyZ7zFMHM

Check this out. All the best 👍😁

On Thu, 1 Oct 2020, 5:10 am abhay santra,  wrote:

> Thank you man...
> have you worked with Amazon s3 in django?
>
> On Wednesday, September 30, 2020, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> I saw a video to upload images to cloudinary. Check it out.
>>
>>https://youtu.be/1T6G7Znrbfg
>>
>>
>> On Tue, Sep 29, 2020 at 7:12 PM abhay santra 
>> wrote:
>>
>>> Thank you everyone...
>>>
>>> On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup
>>> wrote:
>>>
>>>> Hi Abbay,
>>>>
>>>> On 25/09/2020 16.21, abhay santra wrote:
>>>> >
>>>> > Hi,
>>>> > I would like to know how to resize any image when uploading to the
>>>> > cloudinary in django?
>>>> >
>>>>
>>>> You use Pillow:
>>>>
>>>> https://pillow.readthedocs.io/en/stable/
>>>>
>>>> It's hard for anyone to give you a better answer until you try to write
>>>> a better question.
>>>>
>>>> Kind regards,
>>>>
>>>> Kasper Laudrup
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/0xfYS71IurM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3157Tj6ZxuozDGExf06Cwu-YP4_U-uaS4VCrUnkpEq2THA%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-29 Thread RANGA BHARATH JINKA
Hi,

I saw a video to upload images to cloudinary. Check it out.

   https://youtu.be/1T6G7Znrbfg


On Tue, Sep 29, 2020 at 7:12 PM abhay santra  wrote:

> Thank you everyone...
>
> On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
>
>> Hi Abbay,
>>
>> On 25/09/2020 16.21, abhay santra wrote:
>> >
>> > Hi,
>> > I would like to know how to resize any image when uploading to the
>> > cloudinary in django?
>> >
>>
>> You use Pillow:
>>
>> https://pillow.readthedocs.io/en/stable/
>>
>> It's hard for anyone to give you a better answer until you try to write
>> a better question.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.


Re: Limit the choices for a ForeignKey

2020-09-27 Thread RANGA BHARATH JINKA
Hi,

Check this. This may be useful for you. It is based on dependent
dropdown.

https://www.youtube.com/watch?v=U_qPp6vPl-g

On Sun, Sep 27, 2020 at 10:09 PM Marco Paradisi  wrote:

> Hi Everyone!
>
> I need to filter the choices for a foreign key.
>
> My Model has an attribute SEX that could be M or F, and two Foreign keys (
> FATHER and MOTHER ), I want both filtered for sex.
>
> How can I achieve it?
>
> Thanks 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFCTdWp0xJE_J-r%3DmHbHzVmeAsGvotFc1%3DyQBGuyEzjfiiVxTA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314V6rMaarKnx3rV4uNO%3DfKo-24JsNLczFddDNShN65mmw%40mail.gmail.com.


Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Check the whole logs by going up

On Sun, Sep 27, 2020 at 11:07 AM dum dum  wrote:

> [image: image.png]
> This is what I got from heroku logs --tail.
>
> Thanks.
>
> On Sun, Sep 27, 2020 at 12:30 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Run heroku logs --tail in terminal
>> All the best
>>
>> On Sun, Sep 27, 2020 at 10:51 AM dum dum  wrote:
>>
>>> what do you mean "log files"?
>>> Is that logs in terminal or ?
>>>
>>> In my terminal it works normal, no problem at all.
>>> in localhost it works normal, but in production I got http error 500
>>> [image: image.png]
>>>
>>> I'm using heroku.
>>>
>>> Thanks
>>>
>>>
>>> On Sun, Sep 27, 2020 at 1:20 AM Kasper Laudrup 
>>> wrote:
>>>
>>>> Hi Dum Dum,
>>>>
>>>> On 26/09/2020 18.56, dum dum wrote:
>>>> > I followed the solution on the internet
>>>> >
>>>> https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r
>>>> >
>>>> > image.png
>>>> > by commented django.contrib.sites. But still got the same error.
>>>> > Please advise. Thanks
>>>> >
>>>>
>>>> What did you find in your log files?
>>>>
>>>> Kind regards,
>>>>
>>>> Kasper Laudrup
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/ada20960-af21-f42b-700f-40d6c2abccb7%40stacktrace.dk
>>>> .
>>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANV3w%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANV3w%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314OwG2fuJ5Qg7PAqfKeaXYCwBZcWQMB9w5yzJfFhvKtCw%40mail.gmail.com.


Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Hi,

Run heroku logs --tail in terminal
All the best

On Sun, Sep 27, 2020 at 10:51 AM dum dum  wrote:

> what do you mean "log files"?
> Is that logs in terminal or ?
>
> In my terminal it works normal, no problem at all.
> in localhost it works normal, but in production I got http error 500
> [image: image.png]
>
> I'm using heroku.
>
> Thanks
>
>
> On Sun, Sep 27, 2020 at 1:20 AM Kasper Laudrup 
> wrote:
>
>> Hi Dum Dum,
>>
>> On 26/09/2020 18.56, dum dum wrote:
>> > I followed the solution on the internet
>> >
>> https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r
>> >
>> > image.png
>> > by commented django.contrib.sites. But still got the same error.
>> > Please advise. Thanks
>> >
>>
>> What did you find in your log files?
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/ada20960-af21-f42b-700f-40d6c2abccb7%40stacktrace.dk
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-25 Thread RANGA BHARATH JINKA
Hi,

Check this.
https://cloudinary.com/documentation/django_image_manipulation

On Fri, Sep 25, 2020 at 8:49 PM abhay santra  wrote:

>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d9eaaea0-b3e3-42a5-8ccf-884662258ddcn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314P%2BimAdbk4yeGm0BuLtsvc-QA4tFppUSpfoummOgbMSA%40mail.gmail.com.


Re: Recruitment

2020-09-23 Thread RANGA BHARATH JINKA
I am interested

On Wed, Sep 23, 2020 at 8:14 PM Anh Nguyen  wrote:

> I’m, interested!
>
> On Sep 23, 2020, at 14:23, Harish Thiyagharajan <
> harishthiyagh...@gmail.com> wrote:
>
> I want a interested django user , DM mail for more details , all the
> details including payment can be discussed ...looking for for you guys .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7b7956bc-d239-4b63-9194-0644b8a6eeben%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CE1F0D68-DFB1-43DF-BF25-269F030896FD%40gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314ejBypTU5BHmKy2bMva%2B0sRvGseNT4K3xhFmPJ3SmQFg%40mail.gmail.com.


Re: Help in deploying my app!!!!!!!

2020-09-22 Thread RANGA BHARATH JINKA
Sure 👍

On Tue, 22 Sep 2020, 8:06 pm Vishwajit Bhagat, 
wrote:

> Thanks bro. I will reach you if I got errors.
>
> On Tue, Sep 22, 2020, 7:55 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> For deploying both as a single, you have to run npm run build.
>> Then Link in django settings templates the build path of the dist
>> folder.
>> Every time you make a change run, npm run build.
>> All the best.
>>
>> On Tue, Sep 22, 2020 at 7:35 PM Vishwajit Bhagat <
>> vishwajit20bha...@gmail.com> wrote:
>>
>>> Hey developers!
>>> I am a beginner .I have created an app actually two separate apps
>>> backend django api and frontend using react and the api requests for crud
>>> operations are made through axios.Now I wanna deploy it but the problem is
>>> should I deploy it separately or as single app . If single app, then how
>>> should I configure them together.
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m314vAGYUwHJbNuMk2Jm4LLLd1Cek5H%2BN2fENVuKDRPhieA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m314vAGYUwHJbNuMk2Jm4LLLd1Cek5H%2BN2fENVuKDRPhieA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGYiv2sfK-g%2BMdBwCb_Ou8fUDdxSGO7pRw00mq3FWb4ufX-nZA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGYiv2sfK-g%2BMdBwCb_Ou8fUDdxSGO7pRw00mq3FWb4ufX-nZA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3141%3DweSSjSVQ0_QMXDkQ9zuenjtvhqSm9mUxCZo9YeDtQ%40mail.gmail.com.


Re: Help in deploying my app!!!!!!!

2020-09-22 Thread RANGA BHARATH JINKA
Hi,

For deploying both as a single, you have to run npm run build.
Then Link in django settings templates the build path of the dist
folder.
Every time you make a change run, npm run build.
All the best.

On Tue, Sep 22, 2020 at 7:35 PM Vishwajit Bhagat <
vishwajit20bha...@gmail.com> wrote:

> Hey developers!
> I am a beginner .I have created an app actually two separate apps  backend
> django api and frontend using react and the api requests for crud
> operations are made through axios.Now I wanna deploy it but the problem is
> should I deploy it separately or as single app . If single app, then how
> should I configure them together.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314vAGYUwHJbNuMk2Jm4LLLd1Cek5H%2BN2fENVuKDRPhieA%40mail.gmail.com.


Re: Django compatibility with Django 3.0

2020-09-21 Thread RANGA BHARATH JINKA
Hi,

   Check this official docs from oracle.
  https://developer.oracle.com/dsl/vasiliev-django.html

On Mon, Sep 21, 2020 at 3:49 PM Vishnu Bhandari 
wrote:

> Hi folks,
> Does django 3.0 support oracle 19c database.
> If not, How can we achieve this?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CALeETXKrCfaXJRcTgOBNV2PfTN%3DLyh-uvgmjhofCcZL%3D3ASN6A%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314PwwxqkUWQBLcOFAEh6dnWn9E2kRrY9q4eAt-JC86Wiw%40mail.gmail.com.


Re: New Users Unable to Use Website

2020-09-20 Thread RANGA BHARATH JINKA
You are welcome 😀

On Sun, Sep 20, 2020 at 9:08 PM King Niko 
wrote:

> This method works! Thank you!
>
> On Sat, Sep 19, 2020 at 23:32 RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Try this.
>>
>> https://stackoverflow.com/questions/36317816/relatedobjectdoesnotexist-user-has-no-userprofile
>>
>>
>>  All the best 👍
>>
>> On Sun, 20 Sep 2020, 8:50 am Lightning Bit, <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Encountering a lot of errors here. Here is the spill:
>>>
>>>
>>> *THE CASE:*
>>> So, I have created the base site with an operational store. However, now
>>> I am trying to add new users.
>>>
>>> I completed about half of the "setting up user accounts" tutorial,
>>> however, now, whenever a new user logs in, he/she is unable to access any
>>> of the pages on the website.
>>>
>>> *THE CAUSE*
>>> In fact, an "Exception Type: RelatedObjectDoesNotExist" and "Exception
>>> Value: User has no customer" appears.. This is stopping the website from
>>> being operational for new users.
>>>
>>> In the traceback, I am shown the following from "views.py" - "data =
>>> cartData(request)". Then, I am shown the following form "utils.py" -
>>> "customer = request.user.customer". This seems to be what is causing the
>>> errors.
>>>
>>> *Views.py *
>>>
>>> def about(request):
>>>
>>> data= cartData(request)
>>>
>>> items=data['items']
>>> order=data['order']
>>> cartItems=data['cartItems']
>>>
>>> context = {'items':items, 'order':order, 'cartItems':cartItems}
>>> return render(request, 'store/about.html', context)
>>>
>>>
>>>
>>> *CartData from Utils.py*
>>>
>>>
>>> def cartData(request):
>>> if request.user.is_authenticated:
>>> customer = request.user.customer
>>>
>>> order, created = 
>>> Order.objects.get_or_create(customer=customer, complete=False)
>>> items = order.orderitem_set.all()
>>> cartItems=order.get_cart_items
>>> else:
>>> cookieData = cookieCart(request)
>>> cartItems = cookieData['cartItems']
>>> order = cookieData['order']
>>> items = cookieData['items']
>>>
>>> return{'cartItems':cartItems, 'order':order, 'items':items}
>>>
>>>
>>> *THE CONFUSION*
>>> However, the store will not operate if I get rid of the
>>> cartData(request). How can I reconfigure the "views.py" or "utils.py" to
>>> make the cartData(request) operational for both admin and customers w/o
>>> this error appearing?
>>>
>>> Thanks everyone, I hope that someone knows how to bypass this.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6f1e5336-8ffe-4955-989e-ec166649de82n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/6f1e5336-8ffe-4955-989e-ec166649de82n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO1EWpGvcgVwkPSFzQ6Tk826yu7BfDyn_CgogFzPnMwKBHu%3DSA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO1EWpGvcgVwkPSFzQ6Tk826yu7BfDyn_CgogFzPnMwKBHu%3DSA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315XU1fFjZEn5yMQtFOom%2BC0qb2j4JQT1HR45yxWioMU_g%40mail.gmail.com.


Re: New Users Unable to Use Website

2020-09-19 Thread RANGA BHARATH JINKA
Hi,

Try this.

https://stackoverflow.com/questions/36317816/relatedobjectdoesnotexist-user-has-no-userprofile


 All the best 👍

On Sun, 20 Sep 2020, 8:50 am Lightning Bit, <
thelegendofearthretu...@gmail.com> wrote:

> Encountering a lot of errors here. Here is the spill:
>
>
> *THE CASE:*
> So, I have created the base site with an operational store. However, now I
> am trying to add new users.
>
> I completed about half of the "setting up user accounts" tutorial,
> however, now, whenever a new user logs in, he/she is unable to access any
> of the pages on the website.
>
> *THE CAUSE*
> In fact, an "Exception Type: RelatedObjectDoesNotExist" and "Exception
> Value: User has no customer" appears.. This is stopping the website from
> being operational for new users.
>
> In the traceback, I am shown the following from "views.py" - "data =
> cartData(request)". Then, I am shown the following form "utils.py" -
> "customer = request.user.customer". This seems to be what is causing the
> errors.
>
> *Views.py *
>
> def about(request):
>
> data= cartData(request)
>
> items=data['items']
> order=data['order']
> cartItems=data['cartItems']
>
> context = {'items':items, 'order':order, 'cartItems':cartItems}
> return render(request, 'store/about.html', context)
>
>
>
> *CartData from Utils.py*
>
>
> def cartData(request):
> if request.user.is_authenticated:
> customer = request.user.customer
>
> order, created = 
> Order.objects.get_or_create(customer=customer, complete=False)
> items = order.orderitem_set.all()
> cartItems=order.get_cart_items
> else:
> cookieData = cookieCart(request)
> cartItems = cookieData['cartItems']
> order = cookieData['order']
> items = cookieData['items']
>
> return{'cartItems':cartItems, 'order':order, 'items':items}
>
>
> *THE CONFUSION*
> However, the store will not operate if I get rid of the cartData(request).
> How can I reconfigure the "views.py" or "utils.py" to make the
> cartData(request) operational for both admin and customers w/o this error
> appearing?
>
> Thanks everyone, I hope that someone knows how to bypass this.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6f1e5336-8ffe-4955-989e-ec166649de82n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com.


Re: how to create url helloworld

2020-09-19 Thread RANGA BHARATH JINKA
Hi,

   Please check the typo.

   It is django.http

On Sun, 20 Sep 2020, 12:11 am coolguy, 
wrote:

> Instead of
> from pages import views
>
> use
> from . import views
> On Saturday, September 19, 2020 at 11:15:34 AM UTC-4 leoa...@gmail.com
> wrote:
>
>> *file views.py in folder pages
>>
>> from django.htpp import HtppResponse
>> from django.shortcuts import render
>>
>> # Create your views here.
>> def home_view(*args, **kwargs): # *args, **kwargs
>> return HtppResponse("hello world")
>>
>>
>> C:\Users\leo>C:/python37/python.exe
>> c:/python37/Try-Django-master/src/pages/views.py
>> Traceback (most recent call last):
>>   File "c:/python37/Try-Django-master/src/pages/views.py", line 1, in
>> 
>> from django.htpp import HtppResponse
>> ModuleNotFoundError: No module named 'django.htpp'
>>
>> from django.htpp import HtppResponse
>> from django.shortcuts import render
>>
>> *files urls.py
>>
>> from django.contrib import admin
>> from django.urls import path
>>
>> from pages import views
>>
>> urlpatterns = [
>> path('', views.home_view, name='home'),
>> path('admin/', admin.site.urls),
>> ]
>>
>> file setting
>> INSTALLED_APPS = [
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>>
>> # third party
>> # own
>> 'pages',
>> 'products',
>> ]
>>
>> error :
>> File "C:\python37\Try-Django-master\src\trydjango\urls.py", line 19, in
>> 
>> from pages import views
>>   File "C:\python37\Try-Django-master\src\pages\views.py", line 1, in
>> 
>> from django.htpp import HtppResponse
>> ModuleNotFoundError: No module named 'django.htpp'
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/64c882b9-9ab4-49a5-9a72-347cdadd324dn%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315eBUKiQA22O27JxuDQ3-p4sqBq0MEcWYCHiaSrLhh3wQ%40mail.gmail.com.


Re: Upload Imagae

2020-09-17 Thread RANGA BHARATH JINKA
Hi,

Watch the django part of this video

https://youtu.be/1Hc7KlLiU9w

All the best

On Thu, Sep 17, 2020 at 12:42 PM Kasper Laudrup 
wrote:

> Hi kkwaqar007,
>
> On 17/09/2020 08.17, kkwaq...@gmail.com wrote:
> > *How To Upload  Image  and save the file and save the databases *
> > I have a record table for student,
> > i wanna add column IMAGE every each row upload image..
> >
>
> Did you do any research at all?
>
> Maybe this could help:
>
> https://learndjango.com/tutorials/django-file-and-image-uploads-tutorial
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d5b0e733-d461-a54a-3755-1f76d2887663%40stacktrace.dk
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315-LKSyJm05nikcWKP-dM8uxo0omxHZa4Ph3bkvwvk3xg%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread RANGA BHARATH JINKA
Check django documentation to store images to the folder.

Use upload_to in models.py

You have to update your models.

All the best

On Wed, Sep 16, 2020 at 1:50 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Store the images in a folder.
> Store the images folder path in the database.
> Don't store the images directly in db.
> It is not a good practice.
> Instead use aws for storing images.
>
> Follow this tutorial series.
>
> https://www.youtube.com/watch?v=inQyZ7zFMHM
>
> All the best
>
> On Wed, Sep 16, 2020 at 1:43 PM waqar khan  wrote:
>
>> [image: s.JPG]
>>
>> Please Guys Reply Me .
>>
>> On Wed, Sep 16, 2020 at 1:36 PM waqar khan  wrote:
>>
>>> *I am Using dataBase Sql*
>>>
>>> On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
>>> wrote:
>>>
>>>> *Problem :- I have Create table and add ImageField , i wanna
>>>> upload_image Front-end  and save database.*.
>>>>
>>>>
>>>> html file: But Image Not save
>>>> *I am upload using database*
>>>>
>>>>
>>>> [image: u.JPG]
>>>> *models.py*
>>>>
>>>> [image: i.JPG]
>>>>
>>>> Html Coding file
>>>> [image: j.JPG]
>>>>
>>>> *urls.py*
>>>>
>>>> [image: g.JPG]
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314eFb6mVjGV7n%3DPvFhxTE%3Dhi44XRQJB%2BvNg9%3D4D6nRr6g%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread RANGA BHARATH JINKA
Hi,

Store the images in a folder.
Store the images folder path in the database.
Don't store the images directly in db.
It is not a good practice.
Instead use aws for storing images.

Follow this tutorial series.

https://www.youtube.com/watch?v=inQyZ7zFMHM

All the best

On Wed, Sep 16, 2020 at 1:43 PM waqar khan  wrote:

> [image: s.JPG]
>
> Please Guys Reply Me .
>
> On Wed, Sep 16, 2020 at 1:36 PM waqar khan  wrote:
>
>> *I am Using dataBase Sql*
>>
>> On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
>> wrote:
>>
>>> *Problem :- I have Create table and add ImageField , i wanna
>>> upload_image Front-end  and save database.*.
>>>
>>>
>>> html file: But Image Not save
>>> *I am upload using database*
>>>
>>>
>>> [image: u.JPG]
>>> *models.py*
>>>
>>> [image: i.JPG]
>>>
>>> Html Coding file
>>> [image: j.JPG]
>>>
>>> *urls.py*
>>>
>>> [image: g.JPG]
>>>
>>>
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314vcpNU6S0rDdKE%2Bhgvx%3DWuK8JQS%2B2bjZ%2BHL7%3DzhvthtA%40mail.gmail.com.


Re: Help:What is the problem in this code?

2020-09-13 Thread RANGA BHARATH JINKA
Hi,

   Create a virtual environment and install django in a virtual environment.

  All the best

On Sun, Sep 13, 2020 at 9:11 PM Hassan Shuvo  wrote:

> [image: manage.PNG][image: code.PNG]
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d3fa106f-2db2-4c63-a12e-178f5bce9ca9n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3169Tpe-e07PixNm62u-b9aO%2BErry1F33xBpXgE%3DYde5tw%40mail.gmail.com.


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

   You can configure it.
   https://django-jazzmin.readthedocs.io/configuration/

  All the best

On Thu, Sep 10, 2020 at 2:38 AM Emmanuel Oppong Ntiamoah <
ladamo...@gmail.com> wrote:

> Thanks a lot. Please i have installed it and it’s working but i have these
> challenges:
> 1. How to remove the Jazzmin version from the footer
> 2. I have a tabular inline which allows me to add more fields but it has
> removed the add more button.
>
>
> On 9 Sep 2020, at 4:24 PM, RANGA BHARATH JINKA 
> wrote:
>
> 
> Hi,
>
> Use this.
> https://pypi.org/project/django-jazzmin/
>
> All the best
>
> On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
> wrote:
>
>> Hello friends, I am developing a system and i want to use bootstrap admin
>> dashboard but i dont want to loose the features of django admin please how
>> do i go about it
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com
> <https://groups.google.com/d/msgid/django-users/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314dfD_gNxdFRd3pe3LQYgjTrT%3Dj-i2X_wJ7YORF5FwXag%40mail.gmail.com.


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

Use this.
https://pypi.org/project/django-jazzmin/

All the best

On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
wrote:

> Hello friends, I am developing a system and i want to use bootstrap admin
> dashboard but i dont want to loose the features of django admin please how
> do i go about it
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com.


Re: Rocket chat with python: imp

2020-09-08 Thread RANGA BHARATH JINKA
Hi,

   Try this.

   https://pypi.org/project/rocket-python/

  All the best

On Wed, Sep 9, 2020 at 11:00 AM Chander shekhar  wrote:

> Can anyone help me in integrating rocket chat with python any link
> ,videos,or any personal suggestion.
> I have to make a chat with it,really imp
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/db50ed7d-2058-4bff-818c-5677fa6ab62an%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317Y18mYiatjkNM_A-nLwcy9aqZ2v4SUSKT0YC%2B5fAauFQ%40mail.gmail.com.


Re:

2020-09-08 Thread RANGA BHARATH JINKA
Delete the Virtual Environment  venv (or) env folder and create a
new Virtual Environment using

python3.7 -m venv venv

Install all modules again.

Since it doesn't support python3.8.

All the best


On Tue, Sep 8, 2020 at 4:55 PM hans alexander  wrote:

> I have seen that link, still got errors after trying to install twisted.
> Guess the problem is that I'm using python 3.8.5. Guess it's not supported
> for Django Channels.
> Is there any safe way to downgrade python version ?
> Or how to separate Global Python Version and Virtual Environment Python
> Version?
> I already have my virtual env for my project.
>
> Please advise. Thanks
>
> On Tue, Sep 8, 2020 at 5:48 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>See this link.
>>
>> https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
>>   All the best
>>
>> On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:
>>
>>> I got errors when installing Django Channels.
>>> I'm using Python 3.8.5, Django 3.1
>>>
>>> Installing using :
>>> pip install channels
>>>
>>> I got error like this:
>>>
>>> Installing collected packages: twisted, daphne, channels
>>> Running setup.py install for twisted ... error
>>> ERROR: Command errored out with exit status 1:
>>>(many error lines below)
>>>
>>> Please help. Thanks
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANV3w%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANV3w%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317FyLYrMo-FLWDjORHXgrmpDFtj_CgTT5x3aZt4MuFAAQ%40mail.gmail.com.


Re:

2020-09-08 Thread RANGA BHARATH JINKA
Hi,
   See this link.

https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
  All the best

On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:

> I got errors when installing Django Channels.
> I'm using Python 3.8.5, Django 3.1
>
> Installing using :
> pip install channels
>
> I got error like this:
>
> Installing collected packages: twisted, daphne, channels
> Running setup.py install for twisted ... error
> ERROR: Command errored out with exit status 1:
>(many error lines below)
>
> Please help. Thanks
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%40mail.gmail.com.


Re: ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread RANGA BHARATH JINKA
Hi,
Go through this. This will help you. The error is because of
foreign key.

https://stackoverflow.com/questions/37839867/django-error-cannot-assign-must-be-an-instance

On Thu, Sep 3, 2020 at 8:46 PM Abdu-H  wrote:

> Hello,
>
> I am working on an app where car owner will list their car and drivers
> interested in renting them will make a request to rent the cars…
>
> i basically have three models the *users*(car owners and drivers) *car*
> listed by owners, and *rent, *i have a listView to list all the car
> available and a detailView for each car, i have a button on the detailed
> view, when clicked i want it to take some of the information on the
> detailed view and save it in the* rent *model… But i am getting a
> ValueError (Cannot query "testuser1": Must be "Listing" instance). But i
> also need to store the driver(testuser1 in this case) in the Rent model.
>
> Thanks in advance... any help is hugely appreciated
>
> Below are my view.py, models.py and error messages:
>
>
>
> *view.py*
>
> class ListingDetailView(DetailView):
>
> model = Listing
>
>
> def post_rent(self, request, pk, *args, **kwargs):
>
> user = request.User
>
> listing = get_object_or_404(Listing, pk=pk)
>
> rent, created = Rent.objects.get_or_create(
>
> car_owner=listing.car_owner,
>
> driver=request.user,
>
> car_id=listing.pk)
>
> rent.save(request.POST)
>
> messages.info(request, *"Rent request has been made succesfully."*
> )
>
> return redirect(*'/'*)
>
>
>
> *models.py*
>
> class Listing(models.Model):
>
> DEF_YEAR = *'2003'*
>
> CAR_YEAR_CHOICES = [(*'2002'*, *'2002'*), (*'2003'*, *'2003'*), (
> *'2004'*, *'2004'*), (*'2005'*, *'2005'*),
>
> (*'2006'*, *'2006'*), (*'2007'*, *'2007'*), (
> *'2008'*, *'2008'*), (*'2009'*, *'2009'*),
>
> (*'2010'*, *'2010'*), (*'2011'*, *'2011'*), (
> *'2012'*, *'2012'*), (*'2013'*, *'2013'*),
>
> (*'2014'*, *'2014'*), (*'2015'*, *'2015'*), (
> *'2016'*, *'2016'*), (*'2017'*, *'2017'*),
>
> (*'2018'*, *'2018'*), (*'2019'*, *'2019'*), (
> *'2020'*, *'2020'*), ]
>
>
> NEW = *'New'*
>
> USED = *'Used'*
>
> OLD = *'Old'*
>
> CAR_CONDITION_CHOICES = [(*'NEW'*, *'New'*), (*'USED'*, *'Used'*), (
> *'OLD'*, *'Old'*)]
>
>
> car_owner = models.ForeignKey(User, on_delete=models.CASCADE)
>
> car_make = models.CharField(max_length=50)
>
> car_model = models.CharField(max_length=50)
>
> car_year = models.CharField(max_length=4, choices=CAR_YEAR_CHOICES,
> default=DEF_YEAR)
>
> car_condition = models.CharField(max_length=4,
> choices=CAR_CONDITION_CHOICES, default=OLD)
>
> car_pic1 = models.ImageField(default=*'car.png'*, upload_to=
> *"car_listing-photos"*)
>
> weekly_charges = models.FloatField()
>
>
> def __str__(self):
>
> return *f'*{self.car_year}  {self.car_make}  {self.car_model}*'*
>
>
> def get_absolute_url(self):
>
> return reverse(*'listing-detail'*, kwargs={*'pk'*: self.pk})
>
>
>
> class Rent(models.Model):
>
> car_id = models.BigIntegerField(null=True, blank=True)
>
> car_owner = models.ForeignKey(Listing, on_delete=models.SET_NULL,
> null=True, blank=True)
>
> driver = models.ForeignKey(User, on_delete=models.SET_NULL, null=True,
> blank=True)
>
> start_date = models.DateField(null=True, blank=True)
>
> end_date = models.DateField(null=True, blank=True)
>
> approved = models.BooleanField(default=False)
>
>
> *listing_detail.html*
>
> 
>
> {% csrf_token %}
>
> Rent
> Car
>
>  
>
>
>
> *Error Message*
>
>
> *ValueError at /listing/2/*
>
> Cannot query "testuser1": Must be "Listing" instance.
>
> *Request Method:*
>
> POST
>
> *Request URL:*
>
> http://127.0.0.1:8000/listing/2/
>
> *Django Version:*
>
> 3.1
>
> *Exception Type:*
>
> ValueError
>
> *Exception Value:*
>
> Cannot query "testuser1": Must be "Listing" instance.
>
>
> *More Error Dump:*
>
>
> Environment:
>
>
>
> Request Method: POST
>
> Request URL: http://127.0.0.1:8000/listing/2/
>
>
> Django Version: 3.1
>
> Python Version: 3.8.5
>
> Installed Applications:
>
> ['accounts.apps.AccountsConfig',
>
>  'django.contrib.admin',
>
>  'django.contrib.auth',
>
>  'django.contrib.contenttypes',
>
>  'django.contrib.sessions',
>
>  'django.contrib.messages',
>
>  'django.contrib.staticfiles',
>
>  'app.apps.AppConfig',
>
>  'crispy_forms']
>
> Installed Middleware:
>
> ['django.middleware.security.SecurityMiddleware',
>
>  'django.contrib.sessions.middleware.SessionMiddleware',
>
>  'django.middleware.common.CommonMiddleware',
>
>  'django.middleware.csrf.CsrfViewMiddleware',
>
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>
>  'django.contrib.messages.middleware.MessageMiddleware',
>
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
>
>
> Traceback (most recent call last):
>
>   File
> "/Users/ChuzzyOfficial/PycharmPr

Re: How to get client or user side details

2020-09-02 Thread RANGA BHARATH JINKA
Hi,

There is a javascript library called Detect.js
Detect.js Github: https://github.com/darcyclarke/Detect.js
Video Tutorial : https://youtu.be/QukFW1qymSA

All the best


On Thu, Sep 3, 2020 at 10:49 AM Salima Begum 
wrote:

> Hi,
> We are trying to extract new login attempts done by application users from
> new devices. That means if an application user tries to login other than
> their regular devices ( laptop, mobile phone etc.), we need to extract that
> particular new device details. So the details that we need are
> 1. Browser Name
> 2. IP address of the client's device
> 3. Location from where login is attempted
> 4. Date and Time Stamp
>
> Is there any suitable and latest package available in Django to achieve
> the above use case?
>
> Thank You
> ~ Salima
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6b%3D0-LT69BroKq3u%3DOsG5NaVNNkzoRhW5pvMuAp%2BNOrZNA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316WMfJPXpC9Z7Y_hsnuToReB60SKj5rgvkhM_qD_mH8AQ%40mail.gmail.com.


Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
open console tab not elements tab

On Tue, Sep 1, 2020 at 10:13 AM King Niko 
wrote:

> Interesting, the browser console states the following:
>
> 
> 
> 
>   Server Error (500)
> 
> 
>   Server Error (500)
> 
> 
>
> How could the *title* and *header 1* be causing the Server Error (500)?
>
> On Tue, Sep 1, 2020 at 12:39 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>  check in browser console for errors
>>
>> On Tue, Sep 1, 2020 at 2:27 AM Lightning Bit <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> I logged into the ADMIN PORTAL and saw that there was an image for each
>>> item in the ADMIN PORTAL.
>>>
>>> Strangely, when returning to the website, I am unable to actually "see"
>>> the pictures - they are blank with the no file icon in the top left. This
>>> was not the case back in the testing environment.
>>>
>>> Why would this occur only upon publishing the website? It does not seem
>>> to be registering the images from DJANGO ADMINISTRATION. Also, when I click
>>> my  cart icon after adding one of the non-image showing items, I receive an
>>> error 500 stating that the cart.html and only the cart.html
>>> TemplateDoesNotExist. It has the same settings as every other html page,
>>> what makes this single page unique to becoming an error 500?
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m317sPQakSxmtQVHWO8cMXWCss6F3d_FX2Gj8T-%2BELo0-Dw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m317sPQakSxmtQVHWO8cMXWCss6F3d_FX2Gj8T-%2BELo0-Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO1EWpEJbYvqaEdZ7rkd_B%2BocXjjAsbDTKZ0Aw1HxUCieqqN9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO1EWpEJbYvqaEdZ7rkd_B%2BocXjjAsbDTKZ0Aw1HxUCieqqN9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315oAbkVLDFOh_DUOt5WQJg9krn9QSOv-UX2sDNeA5xBWw%40mail.gmail.com.


Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
Hi,
 check in browser console for errors

On Tue, Sep 1, 2020 at 2:27 AM Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:

> I logged into the ADMIN PORTAL and saw that there was an image for each
> item in the ADMIN PORTAL.
>
> Strangely, when returning to the website, I am unable to actually "see"
> the pictures - they are blank with the no file icon in the top left. This
> was not the case back in the testing environment.
>
> Why would this occur only upon publishing the website? It does not seem to
> be registering the images from DJANGO ADMINISTRATION. Also, when I click
> my  cart icon after adding one of the non-image showing items, I receive an
> error 500 stating that the cart.html and only the cart.html
> TemplateDoesNotExist. It has the same settings as every other html page,
> what makes this single page unique to becoming an error 500?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317sPQakSxmtQVHWO8cMXWCss6F3d_FX2Gj8T-%2BELo0-Dw%40mail.gmail.com.


Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread RANGA BHARATH JINKA
No problem.
All the best 😀

On Mon, Aug 31, 2020 at 11:35 PM Patrick Carra  wrote:

> Thanks bharath for the info I'm going to dig more in to these.
>
> On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote:
>
>> Hi,
>>
>> Please check this package. This may help you. All the best
>>
>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>
>>
>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>
>>> Hello All!  I need some help with a problem I have been struggling
>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>> working on integrating an export to csv button(link) on my template to
>>> export filtered data from one of my tables.  I have previously only been
>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>> my thoughts were to place a button/link on the template passes a
>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>> The view then calls a function that I have defined to perform my filtered
>>> query to the table and then writes outs to csv.  In theory I thought this
>>> should work but I keep getting errors that I have not been able to resolve
>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>> Did I mention THANK YOU
>>>
>>> *From searchLit/urls.py*
>>> from django.urls import include, path
>>> from . import views
>>> from .views import search
>>>
>>> app_name= "searchLit"
>>>
>>> urlpatterns=[
>>> path('customsearch/', views.search, name='search'),
>>> path('customsearch//', views.search, name='search'),
>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>> path('customsearch/export/', views.searchLit_export,
>>> name='SearchLit_export'),
>>> path('customsearch/exportSearch//', views.exportSearch,
>>> name='exportSearch'),
>>> ]
>>>
>>> *From searchLit/views.py*
>>> def filterCircuits(params, search_vector):
>>> circuits=[]
>>> if(params['circuitid']==None and params['bandwidth']==None and
>>> params['region']==None and params['carrier']==None and
>>> params['status']==None and params['segmentname']==None and
>>> params['mrcnew']==None):
>>> circuits=Circuitinfotable.objects.all()
>>> else:
>>> if(params['multipleSearch']!=None and
>>> params['multipleSearch']!=""):
>>>
>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>> else:
>>> circuits = Circuitinfotable.objects.all()
>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>> circuits = Circuitinfotable.objects.all()
>>>
>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>> params['bandwidth']!='Select Bandwidth'):
>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>> if(params['region']!=None and params['region']!="" and
>>> params['region']!='Select Region'):
>>> circuits=circuits.filter(region=params['region'])
>>> if(params['carrier']!=None and params['carrier']!="" and
>>> params['carrier']!='Select Carrier'):
>>> circuits=circuits.filter(carrier=params['carrier'])
>>> if(params['status']!=None and params['status']!="" and
>>> params['status']!='Select Status'):
>>> circuits=circuits.filter(status=params['status'])
>>> if(params['segmentname']!=None and params['segmentname']!="" and
>>> params['segmentname']!='Select Segment'):
>>> circuits=circuits.filter(segmentname=params['segmentname'])
>>> if(params['mrcnew']!=None and params['mrcnew']!=""):
>>> circuits=circuits.filter(mrcnew=params['mrcnew'])
>>> if(params['diversity']!='Select Option'):
>>> if(params['diversity']=='None'):
>>> circuits=circuits.filter(diversity=None)
>>> else:
>>>
>>> circuits=circuits.filter(diversity__icontains=params['diversity'])
>>> if(params['kmz']!='Select YES/NO'):
>>> if(params['kmz']=='No'):
>>> circuits=circuits.filter(kmz=None)
>>> else:
>>> circuits=circuits.filter(kmz__isnull=False)
>>> return(circuits)
>>>
>>>
>>> def search(request):
>>> form = CircuitForm
>>> template =  'customsearch/customsearch.html'
>>> search_vector = SearchVector('circuitid', 'carrier', 'pathname',
>>> 'segmentname', 'segmentid', 'alocationaddress', 'alocationcity', 'alocst',
>>> 'zlocationaddress', 'zlocationcity', 'zlocst', 'handoffalocaddress',
>>> 'handoffalocst',
>>>  'handoffaloccity',
>>> 'handoffzlocaddress', 'handoffzloccity', 'handoffzlocst',
>>> 'latestjiraticket', 'installciopsticket', 'retermciopsticket',
>>> 'discociopsticket', 'notes', 'diversitynotes')
>>>
>>> params={'circ

Re: Need help in Linode server setup.

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

   Please check this.

https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server

On Mon, Aug 31, 2020 at 12:15 PM Vikas Sri  wrote:

> We have pushed the codes on a Linode server. But the project is not
> getting Live.
> Sharing screenshots on the Linode console and the Home page error(it says
> access forbidden).
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANOk8kJ0XadfB4mw5786LED7fU04r4y2j2M-pUqGmRcp_LPSww%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317OW2enWMzPfyET%3Dr4V3TQ8tCC_2oTu0i%2BFvO3T39h5zQ%40mail.gmail.com.


Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

Please check this.

https://stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico

On Mon, Aug 31, 2020 at 9:28 AM Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:

> Hello all,
>
> Does anyone know how to add a manifest entry for a staticfile? I have used:
>
> *> python manage.py collectstatic --noinput *
>
> From this I got the  "*staticfiles"* folder. However, when I perform a
> logging on the website, this 505 error appears:
>
> *> raise ValueError("Missing staticfiles manifest entry for '%s'" %
> clean_name)*
>
>
> I tried deleting the *"staticfiles"  *folder and restarting the 
> "*collectstatic
> " *process but that does not seem to work either. Any resolutions?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b9738987-daa9-403f-b1f6-ec27e076cff8n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315Y1aKjDrXepn_iT2A_rL5R6jmQM9KJ8n5GnJLRd%2B6Z6g%40mail.gmail.com.


Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

You have to add templates location in settings.py as  'DIRS':
[os.path.join(BASE_DIR, 'templates')].

 Create a templates folder where manage.py file exists i.e. your
project root directory and move all your templates there like html files.

 All the best.


On Mon, Aug 31, 2020 at 12:00 AM King Niko <
thelegendofearthretu...@gmail.com> wrote:

> Okay, so I added a logging to:
>
> > python manage.py runserver
>
> And I found the error (which also now appears in "heroku logs --tail").
> Interestingly, this thing states that:
>
> > django.template.exceptions.TemplateDoesNotExist: store/main.html
>
> This is impossible because in  urls.py I have my main as my base url:
>
> > urlpatterns = [
>  path('  ' , views.main, name="main")
> ]
>
> Also, in views.py I have main instantiated as:
>
> > def main(request):
>
> data= cartData(request)
>
> items=data['items']
> order=data['order']
> cartItems=data['cartItems']
>
> context = {'items':items, 'order':order, 'cartItems':cartItems}
> return render(request, 'store/main.html', context)
>
>
> Thus I am confused as to how the Template could be non-existent if it does
> in fact exist. Would you all happen to know of any solutions to this?
>
>
> On Sun, Aug 30, 2020 at 9:17 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Please check the whole log errors line by line. Then only u can find
>> the exact error
>>
>> On Sun, Aug 30, 2020 at 6:37 PM King Niko <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Hi Ranga,
>>>
>>> These are the last two log errors:
>>>
>>> *>* *"GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64;
>>> x64) AppleWebKit/ - (KHTML, like Gecko) Chrome/ - Safari/ -"*
>>>
>>> *> at=info method=GET path="/" host=samplesite.herokuapp.com
>>> <http://samplesite.herokuapp.com/> request_id=private fwd="private"
>>> dyno=web.1 connect=1ms service=116ms status=500 bytes=477 protocol=https*
>>>
>>> Thanks Ranga!
>>>
>>> On Sun, Aug 30, 2020 at 8:33 AM RANGA BHARATH JINKA <
>>> bharathjink...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>>Copy and paste your log errors . I will check once
>>>>
>>>> On Sun, Aug 30, 2020 at 5:23 PM King Niko <
>>>> thelegendofearthretu...@gmail.com> wrote:
>>>>
>>>>> Thanks for the suggestion Kasper.
>>>>> Unfortunately I have not been able to resolve the above bugs utilizing
>>>>> the recommended logging technique. The:
>>>>>
>>>>> > heroku logs —tail
>>>>>
>>>>> Works to give me the errors mentioned previously. I just wish that
>>>>> there was a way for heroku itself to provide more detailed and precise 500
>>>>> server errors. The current logs for Heroku is not informative enough.
>>>>>
>>>>> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
>>>>> wrote:
>>>>>
>>>>>> Hi King Niko,
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 29/08/2020 20.31, King Niko wrote:
>>>>>>
>>>>>> >
>>>>>>
>>>>>> > Both of these errors are very vague and provide no direction for
>>>>>>
>>>>>> > resolution. Has anyone ever encountered this before?
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> I don't know anything about deploying on Heroku, but as others have
>>>>>>
>>>>>> pointed out, you should definitely look into how to get some more
>>>>>>
>>>>>> detailed log information:
>>>>>>
>>>>>>
>>>>>>
>>>>>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>>>>>
>>>>>>
>>>>>>
>>>>>> I've personal set up my logging so I get an email with detailed
>>>>>>
>>>>>> information in case of an internal server error. That works quite
>>>>>> well
>>>>>>
>>>>>> for my use

Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

Please check the whole log errors line by line. Then only u can find
the exact error

On Sun, Aug 30, 2020 at 6:37 PM King Niko 
wrote:

> Hi Ranga,
>
> These are the last two log errors:
>
> *>* *"GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64;
> x64) AppleWebKit/ - (KHTML, like Gecko) Chrome/ - Safari/ -"*
>
> *> at=info method=GET path="/" host=samplesite.herokuapp.com
> <http://samplesite.herokuapp.com/> request_id=private fwd="private"
> dyno=web.1 connect=1ms service=116ms status=500 bytes=477 protocol=https*
>
> Thanks Ranga!
>
> On Sun, Aug 30, 2020 at 8:33 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>Copy and paste your log errors . I will check once
>>
>> On Sun, Aug 30, 2020 at 5:23 PM King Niko <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Thanks for the suggestion Kasper.
>>> Unfortunately I have not been able to resolve the above bugs utilizing
>>> the recommended logging technique. The:
>>>
>>> > heroku logs —tail
>>>
>>> Works to give me the errors mentioned previously. I just wish that there
>>> was a way for heroku itself to provide more detailed and precise 500 server
>>> errors. The current logs for Heroku is not informative enough.
>>>
>>> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
>>> wrote:
>>>
>>>> Hi King Niko,
>>>>
>>>>
>>>>
>>>> On 29/08/2020 20.31, King Niko wrote:
>>>>
>>>> >
>>>>
>>>> > Both of these errors are very vague and provide no direction for
>>>>
>>>> > resolution. Has anyone ever encountered this before?
>>>>
>>>> >
>>>>
>>>>
>>>>
>>>> I don't know anything about deploying on Heroku, but as others have
>>>>
>>>> pointed out, you should definitely look into how to get some more
>>>>
>>>> detailed log information:
>>>>
>>>>
>>>>
>>>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>>>
>>>>
>>>>
>>>> I've personal set up my logging so I get an email with detailed
>>>>
>>>> information in case of an internal server error. That works quite well
>>>>
>>>> for my use case, but yours might be very different.
>>>>
>>>>
>>>>
>>>> There's no reason wasting time trying to guess what is wrong, you want
>>>>
>>>> to be able to get hold of the detailed error information sooner or
>>>> later
>>>>
>>>> anyway so start by figuring out how you can do that as the very first
>>>> thing.
>>>>
>>>>
>>>>
>>>> Kind regards,
>>>>
>>>>
>>>>
>>>> Kasper Laudrup
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/840b420f-9457-f173-87e7-bad43b3b4d92%40stacktrace.dk
>>>> .
>>>>
>>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> 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

Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

   Copy and paste your log errors . I will check once

On Sun, Aug 30, 2020 at 5:23 PM King Niko 
wrote:

> Thanks for the suggestion Kasper.
> Unfortunately I have not been able to resolve the above bugs utilizing the
> recommended logging technique. The:
>
> > heroku logs —tail
>
> Works to give me the errors mentioned previously. I just wish that there
> was a way for heroku itself to provide more detailed and precise 500 server
> errors. The current logs for Heroku is not informative enough.
>
> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
> wrote:
>
>> Hi King Niko,
>>
>>
>>
>> On 29/08/2020 20.31, King Niko wrote:
>>
>> >
>>
>> > Both of these errors are very vague and provide no direction for
>>
>> > resolution. Has anyone ever encountered this before?
>>
>> >
>>
>>
>>
>> I don't know anything about deploying on Heroku, but as others have
>>
>> pointed out, you should definitely look into how to get some more
>>
>> detailed log information:
>>
>>
>>
>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>
>>
>>
>> I've personal set up my logging so I get an email with detailed
>>
>> information in case of an internal server error. That works quite well
>>
>> for my use case, but yours might be very different.
>>
>>
>>
>> There's no reason wasting time trying to guess what is wrong, you want
>>
>> to be able to get hold of the detailed error information sooner or later
>>
>> anyway so start by figuring out how you can do that as the very first
>> thing.
>>
>>
>>
>> Kind regards,
>>
>>
>>
>> Kasper Laudrup
>>
>>
>>
>> --
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/840b420f-9457-f173-87e7-bad43b3b4d92%40stacktrace.dk
>> .
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317Q7rWCgPRXV%3Df2ai3HKzvsvGCUkJ3v%3DsrkUEV678pcXA%40mail.gmail.com.


Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,


 There is a django module.
 https://pypi.org/project/django-datatables-view/

On Sat, 29 Aug 2020, 8:25 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
> Use jQuery datatable for this. It is easy to use and has inbuilt
> search and export to CSV, Excel options also.
>
> https://datatables.net/extensions/buttons/examples/initialisation/export.html
>
> On Sat, 29 Aug 2020, 7:54 am RANGA BHARATH JINKA, <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>  Check this.
>>  https://pypi.org/project/django-queryset-csv/
>>
>>
>> On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please check this package. This may help you. All the best
>>>
>>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>>
>>>
>>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>>
>>>> Hello All!  I need some help with a problem I have been struggling
>>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>>> working on integrating an export to csv button(link) on my template to
>>>> export filtered data from one of my tables.  I have previously only been
>>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>>> my thoughts were to place a button/link on the template passes a
>>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>>> The view then calls a function that I have defined to perform my filtered
>>>> query to the table and then writes outs to csv.  In theory I thought this
>>>> should work but I keep getting errors that I have not been able to resolve
>>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>>> Did I mention THANK YOU
>>>>
>>>> *From searchLit/urls.py*
>>>> from django.urls import include, path
>>>> from . import views
>>>> from .views import search
>>>>
>>>> app_name= "searchLit"
>>>>
>>>> urlpatterns=[
>>>> path('customsearch/', views.search, name='search'),
>>>> path('customsearch//', views.search, name='search'),
>>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>>> path('customsearch/export/', views.searchLit_export,
>>>> name='SearchLit_export'),
>>>> path('customsearch/exportSearch//', views.exportSearch,
>>>> name='exportSearch'),
>>>> ]
>>>>
>>>> *From searchLit/views.py*
>>>> def filterCircuits(params, search_vector):
>>>> circuits=[]
>>>> if(params['circuitid']==None and params['bandwidth']==None and
>>>> params['region']==None and params['carrier']==None and
>>>> params['status']==None and params['segmentname']==None and
>>>> params['mrcnew']==None):
>>>> circuits=Circuitinfotable.objects.all()
>>>> else:
>>>> if(params['multipleSearch']!=None and
>>>> params['multipleSearch']!=""):
>>>>
>>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>>> else:
>>>> circuits = Circuitinfotable.objects.all()
>>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>>> circuits = Circuitinfotable.objects.all()
>>>>
>>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>>> params['bandwidth']!='Select Bandwidth'):
>>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>>> if(params['region']!=None and params['region']!="" and
>>>> params['region']!='Select Region'):
>>>> circuits=circuits.filter(region=params['region'])
>>>> if(params['carrier']!=None and params['

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Use jQuery datatable for this. It is easy to use and has inbuilt search
and export to CSV, Excel options also.
https://datatables.net/extensions/buttons/examples/initialisation/export.html

On Sat, 29 Aug 2020, 7:54 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
>  Check this.
>  https://pypi.org/project/django-queryset-csv/
>
>
> On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Please check this package. This may help you. All the best
>>
>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>
>>
>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>
>>> Hello All!  I need some help with a problem I have been struggling
>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>> working on integrating an export to csv button(link) on my template to
>>> export filtered data from one of my tables.  I have previously only been
>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>> my thoughts were to place a button/link on the template passes a
>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>> The view then calls a function that I have defined to perform my filtered
>>> query to the table and then writes outs to csv.  In theory I thought this
>>> should work but I keep getting errors that I have not been able to resolve
>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>> Did I mention THANK YOU
>>>
>>> *From searchLit/urls.py*
>>> from django.urls import include, path
>>> from . import views
>>> from .views import search
>>>
>>> app_name= "searchLit"
>>>
>>> urlpatterns=[
>>> path('customsearch/', views.search, name='search'),
>>> path('customsearch//', views.search, name='search'),
>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>> path('customsearch/export/', views.searchLit_export,
>>> name='SearchLit_export'),
>>> path('customsearch/exportSearch//', views.exportSearch,
>>> name='exportSearch'),
>>> ]
>>>
>>> *From searchLit/views.py*
>>> def filterCircuits(params, search_vector):
>>> circuits=[]
>>> if(params['circuitid']==None and params['bandwidth']==None and
>>> params['region']==None and params['carrier']==None and
>>> params['status']==None and params['segmentname']==None and
>>> params['mrcnew']==None):
>>> circuits=Circuitinfotable.objects.all()
>>> else:
>>> if(params['multipleSearch']!=None and
>>> params['multipleSearch']!=""):
>>>
>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>> else:
>>> circuits = Circuitinfotable.objects.all()
>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>> circuits = Circuitinfotable.objects.all()
>>>
>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>> params['bandwidth']!='Select Bandwidth'):
>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>> if(params['region']!=None and params['region']!="" and
>>> params['region']!='Select Region'):
>>> circuits=circuits.filter(region=params['region'])
>>> if(params['carrier']!=None and params['carrier']!="" and
>>> params['carrier']!='Select Carrier'):
>>> circuits=circuits.filter(carrier=params['carrier'])
>>> if(params['status']!=None and params['status']!="" and
>>> params['status']!='Select Status'):
>>> circuits=circuits.filter(status=params['status'])
>>> if(params['segmentname']!=None and params['segm

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

 Check this.
 https://pypi.org/project/django-queryset-csv/


On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
> Please check this package. This may help you. All the best
>
> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>
>
> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>
>> Hello All!  I need some help with a problem I have been struggling with.
>> One of you generous geniuses has the answer I'm sure of it.  I am working
>> on integrating an export to csv button(link) on my template to export
>> filtered data from one of my tables.  I have previously only been able to
>> dump the entire table to csv which isn't exactly what I need.  So my
>> thoughts were to place a button/link on the template passes a
>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>> The view then calls a function that I have defined to perform my filtered
>> query to the table and then writes outs to csv.  In theory I thought this
>> should work but I keep getting errors that I have not been able to resolve
>> and I am at the end of my knowledge capacity here.  Applicable code below.
>> Did I mention THANK YOU
>>
>> *From searchLit/urls.py*
>> from django.urls import include, path
>> from . import views
>> from .views import search
>>
>> app_name= "searchLit"
>>
>> urlpatterns=[
>> path('customsearch/', views.search, name='search'),
>> path('customsearch//', views.search, name='search'),
>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>> path('nocreport/export/', views.noc_export, name='noc_export'),
>> path('customsearch/export/', views.searchLit_export,
>> name='SearchLit_export'),
>> path('customsearch/exportSearch//', views.exportSearch,
>> name='exportSearch'),
>> ]
>>
>> *From searchLit/views.py*
>> def filterCircuits(params, search_vector):
>> circuits=[]
>> if(params['circuitid']==None and params['bandwidth']==None and
>> params['region']==None and params['carrier']==None and
>> params['status']==None and params['segmentname']==None and
>> params['mrcnew']==None):
>> circuits=Circuitinfotable.objects.all()
>> else:
>> if(params['multipleSearch']!=None and
>> params['multipleSearch']!=""):
>>
>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>> else:
>> circuits = Circuitinfotable.objects.all()
>> if(params['circuitid']!=None and params['circuitid']!=""):
>> circuits = Circuitinfotable.objects.all()
>>
>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>> params['bandwidth']!='Select Bandwidth'):
>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>> if(params['region']!=None and params['region']!="" and
>> params['region']!='Select Region'):
>> circuits=circuits.filter(region=params['region'])
>> if(params['carrier']!=None and params['carrier']!="" and
>> params['carrier']!='Select Carrier'):
>> circuits=circuits.filter(carrier=params['carrier'])
>> if(params['status']!=None and params['status']!="" and
>> params['status']!='Select Status'):
>> circuits=circuits.filter(status=params['status'])
>> if(params['segmentname']!=None and params['segmentname']!="" and
>> params['segmentname']!='Select Segment'):
>> circuits=circuits.filter(segmentname=params['segmentname'])
>> if(params['mrcnew']!=None and params['mrcnew']!=""):
>> circuits=circuits.filter(mrcnew=params['mrcnew'])
>> if(params['diversity']!='Select Option'):
>> if(params['diversity']=='None'):
>> circuits=circuits.filter(diversity=None)
>> else:
&g

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Please check this package. This may help you. All the best

https://django-tables2.readthedocs.io/en/latest/pages/filtering.html


On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:

> Hello All!  I need some help with a problem I have been struggling with.
> One of you generous geniuses has the answer I'm sure of it.  I am working
> on integrating an export to csv button(link) on my template to export
> filtered data from one of my tables.  I have previously only been able to
> dump the entire table to csv which isn't exactly what I need.  So my
> thoughts were to place a button/link on the template passes a
> parameter(dictionary of my filter criteria) to a view named ExportSearch.
> The view then calls a function that I have defined to perform my filtered
> query to the table and then writes outs to csv.  In theory I thought this
> should work but I keep getting errors that I have not been able to resolve
> and I am at the end of my knowledge capacity here.  Applicable code below.
> Did I mention THANK YOU
>
> *From searchLit/urls.py*
> from django.urls import include, path
> from . import views
> from .views import search
>
> app_name= "searchLit"
>
> urlpatterns=[
> path('customsearch/', views.search, name='search'),
> path('customsearch//', views.search, name='search'),
> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
> path('nocreport/export/', views.noc_export, name='noc_export'),
> path('customsearch/export/', views.searchLit_export,
> name='SearchLit_export'),
> path('customsearch/exportSearch//', views.exportSearch,
> name='exportSearch'),
> ]
>
> *From searchLit/views.py*
> def filterCircuits(params, search_vector):
> circuits=[]
> if(params['circuitid']==None and params['bandwidth']==None and
> params['region']==None and params['carrier']==None and
> params['status']==None and params['segmentname']==None and
> params['mrcnew']==None):
> circuits=Circuitinfotable.objects.all()
> else:
> if(params['multipleSearch']!=None and
> params['multipleSearch']!=""):
>
> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
> else:
> circuits = Circuitinfotable.objects.all()
> if(params['circuitid']!=None and params['circuitid']!=""):
> circuits = Circuitinfotable.objects.all()
>
> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
> if(params['bandwidth']!=None and params['bandwidth']!="" and
> params['bandwidth']!='Select Bandwidth'):
> circuits=circuits.filter(bandwidth=params['bandwidth'])
> if(params['region']!=None and params['region']!="" and
> params['region']!='Select Region'):
> circuits=circuits.filter(region=params['region'])
> if(params['carrier']!=None and params['carrier']!="" and
> params['carrier']!='Select Carrier'):
> circuits=circuits.filter(carrier=params['carrier'])
> if(params['status']!=None and params['status']!="" and
> params['status']!='Select Status'):
> circuits=circuits.filter(status=params['status'])
> if(params['segmentname']!=None and params['segmentname']!="" and
> params['segmentname']!='Select Segment'):
> circuits=circuits.filter(segmentname=params['segmentname'])
> if(params['mrcnew']!=None and params['mrcnew']!=""):
> circuits=circuits.filter(mrcnew=params['mrcnew'])
> if(params['diversity']!='Select Option'):
> if(params['diversity']=='None'):
> circuits=circuits.filter(diversity=None)
> else:
>
> circuits=circuits.filter(diversity__icontains=params['diversity'])
> if(params['kmz']!='Select YES/NO'):
> if(params['kmz']=='No'):
> circuits=circuits.filter(kmz=None)
> else:
> circuits=circuits.filter(kmz__isnull=False)
> return(circuits)
>
>
> def search(request):
> form = CircuitForm
> template =  'customsearch/customsearch.html'
> search_vector = SearchVector('circuitid', 'carrier', 'pathname',
> 'segmentname', 'segmentid', 'alocationaddress', 'alocationcity', 'alocst',
> 'zlocationaddress', 'zlocationcity', 'zlocst', 'handoffalocaddress',
> 'handoffalocst',
>  'handoffaloccity', 'handoffzlocaddress',
> 'handoffzloccity', 'handoffzlocst', 'latestjiraticket',
> 'installciopsticket', 'retermciopsticket', 'discociopsticket', 'notes',
> 'diversitynotes')
>
> params={'circuitid': request.GET.get('circuitid'),
> 'bandwidth': request.GET.get('bandwidth'),
> 'region': request.GET.get('region'),
> 'carrier': request.GET.get('carrier'),
> 'status': request.GET.get('status'),
> 'segmentname': request.GET.get('segmentname'),
> 'mrcnew': request.GET.get('mrcnew'),
> 'diversity': request.GET.get('diversity'),
> 'kmz': r

Re: 500 Server Error | Impossible to Fix

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

In settings turn the debug to True. Then check the error in terminal.

In heroku you have to check the logs in the terminal using heroku logs
--tail

All the best 👍

On Sat, 29 Aug 2020, 4:35 am Lightning Bit, <
thelegendofearthretu...@gmail.com> wrote:

> Greetings all,
>
> I finally finished developing a Django website.
>
> In the terminal I checked:
>
> > python manage.py check --deploy
>
> There were no errors and the program was ready for deployment. I even ran
> a:
>
> > python manage.py runserver
>
> There were also no errors on this end. Upon successfully porting the
> website to Heroku, I unfortunately got a 500 Server Error and then after
> editing, a 400 Server Error. I resolved the 400 Server Error by returning
> to the terminal and doing the following:
>
> >python manage.py collectstatic
>
> This resolved the 400 Server Error after pushing the data to the Heroku
> Master. Sadly, the 500 Server Error remained. I did a bit more research and
> discovered that 500 Server Errors usually arise from a syntax error in an
> HTML file or external file. I sifted for hours and did not find a syntax
> error.
>
> Could there be an alternative fix to the 500 Server Error that appears on
> the website? Does anyone know how to fix this? At this point, I feel as
> though I spent months developing this website for nothing.
>
> Please help if possible. Thank you!
>
> - Lightning Bit
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cbe73ae9-c7c7-41de-95d5-1fab09ffdc17n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315%3DfBPaX57c%2BMMf8%2BDUmh9oVNXeN%3DuK_P6gAnLqeJDT9w%40mail.gmail.com.


Re: Page 3

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

 You are closing the para thesis before.
  path('/results/', views.results, name='results'),
This is the correct syntax. All the best 👍

On Sat, 29 Aug 2020, 3:03 am rbarh...@gmail.com, 
wrote:

> The error message claims invalid syntax and point to the equal sign
> between name and 'results.'
>
> On Thursday, August 27, 2020 at 5:12:53 PM UTC-7 rbarh...@gmail.com wrote:
>
>> My code inspector tells me that "from django.urls import path" is unused
>> so the path statements must not work, I guess.  But the tutorials presents
>> that code.
>>
>> BTW, it's Maxim who helped
>>
>> On Thursday, August 27, 2020 at 5:07:38 PM UTC-7 rbarh...@gmail.com
>> wrote:
>>
>>> Thanks to Maxi, I could move on and immediately found a new problem on
>>> Part 3.
>>>
>>> I have studied this error message for over an hour and cannot figure it
>>> out.  Here is the code.  There are two pieces, one in polls/views.py and
>>> one in polls/urls.py.
>>> ```
>>> polls/views.py
>>> from django.http import HttpResponse
>>>
>>> # Create your views here.
>>> def index(request):
>>> return HttpResponse("I have a BIG present for you.")
>>>
>>>
>>> def detail(request, question_id):
>>> return HttpResponse("You are looking at question %s." % question_id)
>>>
>>>
>>> def results(request, question_id):
>>> response = "You are looking at the results of question %s."
>>> return HttpResponse(response % question_id)
>>>
>>> def vote(request, question_id):
>>> return HttpResponse("You are voting on question %s." %
>>> question_id)
>>> ```
>>>
>>> urls.py;
>>> ```
>>> from django.urls import path
>>>
>>> from . import views
>>>
>>>
>>> urlpatterns = [
>>> # ex: /polls/
>>> path('', views.index, name='index'),
>>> # ex: /polls/5
>>> path('/', views.detail, name='detail'),
>>> # ex: /polls/5/results/
>>> path('/results/'), views.results, name='results'),
>>> #ex: /polls/5/vote/
>>> path('/vote/', views.vote, name='vote'),
>>> ]
>>> ```
>>> produces this error message:
>>> ```
>>>  File
>>> "/Users/reb/Desktop/PycharmProjects/081920/djangoProject0/mysite/polls/urls.py",
>>> line 12
>>> path('/results/'), views.results, name='results'),
>>> ```
>>> I cannot see the error.  Please help.  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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/75c28487-1d92-4488-a9b7-b3e7a8cc2bc5n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317kf8-QBwAsCNUMSpMAdQuy5cHUi8OM-HbD3LFcECEO%2BA%40mail.gmail.com.


Re: plz help i found this kinda problem when i run

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Create a templates folder in your base directory where manage.py
exists. Change the templates folder path in settings.py as 'DIRS':
[os.path.join(BASE_DIR,'templates')]

All the best


On Thu, Aug 27, 2020 at 10:04 PM Ogunsanya Opeyemi <
ogunsanyaopeye...@gmail.com> wrote:

> This means that your current_datetime.html template does not exists in any
> of those directory in the defined directory under templates in your
> setting.py file.
>
>
>
> On Thu, Aug 27, 2020 at 4:01 PM ALAKO ABIYO  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/time/
>>
>> Django Version: 1.8
>> Python Version: 2.7.17
>> Installed Applications:
>> ('django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles')
>> Installed Middleware:
>> ('django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware',
>>  'django.middleware.security.SecurityMiddleware')
>>
>> Template Loader Error:
>> Django tried loading these templates, in this order:
>> Using loader django.template.loaders.filesystem.Loader:
>> /home/django/mysite/templates/current_datetime.html (File does not exist)
>> /home/html/example.com/current_datetime.html (File does not exist)
>> Using loader django.template.loaders.app_directories.Loader:
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/admin/templates/current_datetime.html
>> (File does not exist)
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/auth/templates/current_datetime.html
>> (File does not exist)
>>
>>
>>
>> Traceback:
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/core/handlers/base.py"
>> in get_response
>>   132. response = wrapped_callback(request,
>> *callback_args, **callback_kwargs)
>> File "/home/aa/mysite/mysite/views.py" in current_datetime
>>   12. t=get_template('current_datetime.html')
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/template/loader.py" in
>> get_template
>>   46. raise TemplateDoesNotExist(template_name)
>>
>> Exception Type: TemplateDoesNotExist at /time/
>> Exception Value: current_datetime.html
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/898d34f9-b67c-40aa-9dc9-32fab2e5f50cn%40googlegroups.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABJxPrFbRGNKBYog9HCL2AdNKe5DVtN0WZ1y5x0jrhM3O%3DixMg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315b6U-Q-sVs7EH_v3U63zayO%3DczWDMs_TXWYrRd-ihVUw%40mail.gmail.com.


Re: Python/Django, "The 'poster' attribute has no file associated with it"

2020-08-28 Thread RANGA BHARATH JINKA
Hi,
Add a default image in models.

On Thu, Aug 27, 2020 at 8:34 PM Tony Hall  wrote:

> I'm relatively new to programming and I'm having some trouble with the
> ImageField in my models.py.
>
> I keep getting the error in the attachment every time I load the
> local:8000.
>
> My models.py is:
>
> from django.db import models
>
> class Pilot(models.Model):
> title = models.CharField(max_length=200)
> description = models.TextField()
> count = models.IntegerField()
> writer = models.CharField(max_length=200)
> year = models.IntegerField()
> script = models.FileField(blank=True, null=True, upload_to="scripts")
> poster = models.ImageField(blank=True, null=True, upload_to="posters")
> created_at = models.DateTimeField(auto_now_add=True)
> updated_at = models.DateTimeField(auto_now=True)
>
> def __str__(self):
> return self.title
>
> @property
> def imageURL(self):
> try:
> url = self.poster.url
> except:
> url = ''
> print('URL:', url)
> return url
>
> The settings.py :
> STATIC_URL = '/static/'
>
> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
> MEDIA_URL = '/media/'
>
> STATICFILES_DIR = [
> os.path.join(BASE_DIR, 'static')
> ]
>
> The urls.py:
> from django.contrib import admin
> from django.urls import path, include
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', include('script_app.urls')),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.STATIC_URL,
> document_root=settings.STATIC_ROOT)
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
>
> How do I fix this?!!!
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2aae39fa-8fe5-4f83-b139-60918022ae61n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316V_u%3D6qrOMVnQgMU1aSGr7F7RMp47wgvMPjL2FLUxmew%40mail.gmail.com.


  1   2   >