I have sqlite database in a django project and everything works fine.
But seeing django dbshell does not work with sqlite I found pycharm has a database connector/manager but I can't find where I can input sql commands or see the schema.
Thanks
Ok found it it is on the far right side of the window there is a "database" tab
In pycharm 5 pro at least
TL;DR: For anyone coming across this problem, I fixed it with JetBrains toolbox. Just upgrade PyCharm, using default configurations.
Detailed Instructions
Download JetBrains Toolbox, if you don't have it already.
If you installed PyCharm via JetBrains Toolbox, then skip this step. Otherwise, uninstall PyCharm and then reboot.
Launch Jetrbrains Toolbox, and enter your license information.
Install / Update PyCharm using the Toolbox.
Launch PyCharm using JetBrains Toolbox.
If you are prompted to import configuration files from an older version of PyCharm, do not import. If you need those configurations, then I recommend manually setting them afterward.
Open your existing project.
Open the Database tool window (View -> Tool Windows -> Database)
PyCharm should autodetect the Django Sqlite3 database.
Click the notification, and it should add a data-source called Django default.
Related
I just installed Visual Studio a few days ago and for some reason I can't create anything but a class.
When I go to create a new User Control the pop up window lets me do everything except for click the "Add" Button to close the window and create the control.
If I double-click the User Control selector to create automatically, it pops up an alert box that says I need to go to the installer to get the .NET Framework target libraries. But when I go to the project's properties I see that I am already targeting .NET Core 3.1 and the only other option I have to target is .NET Core 3.0.... I assume this is because I'm in a .NET Core WPF application but I have no idea why it won't let me create a new control. It won't let me create anything except for a new class.
What is going on here? How can I work around this bug?
I've faced your problem recently. most of the templates were not installed after installation.
something you have to do is Modify your installation.
open Visual Studio Installer and click on Modify then choose the features(.Net core,Asp.net, Desktop Application and etc) in order to re-install them.
keep it in mind that, if installer encounters any problem or missing dll. installation instantly will be completed that should not happen.
keep your eyes close to your installer process and make sure all packages are installed.
a successful installation MUST not have any warning otherwise there are packages not installed.
it's better to install packages one by one NOT totally. I mean if you want the Asp.Net Core feature then try to install it at first. then try to install another feature.
Actually, I was not able to install whole features in a single installation and I don't know why. in short, don't heavy your installation.
If the problem still exists then:
1. Close all open solutions
2. Run InstallCleanup.exe
C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe
3. Remove all existing Visual Studio programs from Control Panel -> program features
4. Restart pc and re-install Visual Studio
5. Make sure you have connected to the network
6. Choose only one feature(Don't select all) to install + Visual Studio Editor
vs bug
Extensions don't work properly in VS 2019 and make it hang. it's may happen because the Extensions have to be updated to be compatible with vs 2019 or it's vs bug.
I am having an issue with Visual Studio 2017 RC where when I run an MVC and/or WebAPI app using IIS Express the app never actually runs. Instead I get stuck with a page in the browser indicating it is trying to attach and from there it goes no further. If I open another tab/window in the browser and try to navigate directly to the launch URL, it just spins forever. Likewise when I run this using the dot net run command, the app launches and runs fine.
There do not seem to be any errors that I can see, just that the browser spins indefinitely without actually ever loading the page/endpoint.
Note: this occurs for most any circumstance. Newly created project in VS with no changes, known working project from previous versions, etc.
You could follow or upvote the issue: https://developercommunity.visualstudio.com/content/problem/11391/aspnet-core-iis-express-httplocalhost51733-failed.html
Looks like our workarounds meanwhile are
dotnet run
Publish to local IIS. Which is working for me.
(Untested: downgrade from core-1.1 to core-1.0)
If you aren't familiar with VS2017/asp.net:
You have, or can reveal via View Menu-->Other Toolbars :
Debug toolbar --> dropdowncombobutton saying "[green arrow>] IIS Express"
Click on the dropdown downarrow part of the button.
You should see a Run {yourprojectname} option.
This is the equivalent of dotnet run {yourprojectname} from the commandline.
You can configure the options that appear in the dropdown with
Right-click on project in solution explorer --> Properties --> Debug
I had this same issue and after digging around for a while I discovered that I had dotnet preview v1.0.0-preview2 installed under Programs Files (x86) and a non-preview version in x64. I think VS is launching the x86 (preview) version but expecting to see the full version. To fix this, I did the following.
from programs and feature uninstall every visible dotnet core. (note: for me this did not remove the x86 preview)
go to https://www.microsoft.com/net/download/core#/sdk and install BOTH x86 and x64 SDK packages
open command line and from the root directory check run: dotnet --version (at the time of writing it was 1.0.4)
fire up .net core project in VS 2017 and run.
When I did all of the above, I was able to start up the site in IIS Express from VS.
I use SQLite in my UWP App.
All work good on my PC in debug mode.
After installation on a W10 Device the APP close itselfs when I try to create a SQLite's Database.
I think it's a write-problem on the device.
Perhaps no write rights?
Where and How can I set it on my package?
Thanks a lot
Daniele Pinai
Right-click your UWP project in the Solution Explorer and choose Add -> Reference....
In the dialog window choose Universal Windows and below select Extensions.
In this list ensure that Visual C++ 2015 Runtime for Universal Windows and SQLite for Universal Windows Platform are checked.
In case you can't find the SQLite for Universal Windows Platform there, you will have to install this extension. You can do this using the Extensions and Updates window in Visual Studio, or by downloading and installing the latest sqlite-uwp- package from the SQLite website.
In my project where i am using sqlite i get this error.
An exception of type System.IO.FileNotFoundException occurred in SQLite.Net.Platform.WindowsPhone8.DLL but was not handled in user code
Here is a screenshot.
P.S. i got value in variable path as C:\Data\Users\DefApps\AppData{F8267584-1051-4816-8195-EE018BA5155E}\local\Student.db3
Thanks
You're missing Sqlite for Windows Phone. iOS and Android have Sqlite "build in", meaning it is available directly on the platform. Windows Phone ships without Sqlite.
To add it, first prepare your development machine by using Tools -> Extensions and Updates in Visual Studio. Search online for "sqlite windows phone". You must install the one for WP8 (not 8.1). When done, your machine is ready to deploy Sqlite with a WP project.
Next, add a reference to Sqlite to your WP app. Right click References in your WP project. Select Add references and in the menu select Windows Phone SDK -> Extensions and select Sqlite for Windows Phone.
I'm starting to work with Phonegap and I've installed Visual Studio with Apache Cordova Tools.
I can create new Cordova project and change the project files. I can save the files it works well untill I run the project in debugger. After I stop the debugger and edit the project files every save takes about a minute - extremely slow.
I've downloaded an excample project form Microsoft site and I see the same problem with files save.
Does anybody familiar with the problem? Maybe I have to chang something in the Visual Studio configuration?
Try turning off ripple. That seemed to help me